RPG Socrate
Bonjour et Bienvenue sur RPG Socrate !!!




Si tu es déjà inscrit, connecte toi ci-dessous.

Sinon, inscrit-toi vite (en cliquant sur "s'enregistrer").

Nous serons ravis de t'accueillir parmi nous !!!




L'homme sans visage

Rejoignez le forum, c’est rapide et facile

RPG Socrate
Bonjour et Bienvenue sur RPG Socrate !!!




Si tu es déjà inscrit, connecte toi ci-dessous.

Sinon, inscrit-toi vite (en cliquant sur "s'enregistrer").

Nous serons ravis de t'accueillir parmi nous !!!




L'homme sans visage
RPG Socrate
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Connexion

Récupérer mon mot de passe

Meilleurs posteurs
Yosura (252)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
L'homme sans visage (225)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
The Best of Maker (196)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
okaya (103)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
kilari (26)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
apocalypse (8)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
Shaymin (6)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
EM!R'Ald (4)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
yojoqc (3)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 
fandbz13 (3)
Pommes de vie I_vote_lcapPommes de vie I_voting_barPommes de vie I_vote_rcap 

Horloge Socratienne
Voter pour nôtre site avec un écart de 2h entre chaque vote. MERCI

TOP GAMEMAKING
L'Hymne de RPG Socrate

Découvrez Tryo!
Nombre de Visiteurs
Derniers sujets
» L'avenir de RPG Socrate
Pommes de vie Icon_minitime1Mar 19 Juin 2012 - 19:07 par apocalypse

» parodie des jeux pokemon
Pommes de vie Icon_minitime1Ven 8 Juin 2012 - 18:56 par apocalypse

» Rpg maker xp
Pommes de vie Icon_minitime1Jeu 14 Juil 2011 - 4:56 par kaplio0777

» Présentation de kaplio0777
Pommes de vie Icon_minitime1Jeu 14 Juil 2011 - 4:43 par kaplio0777

» me presenté
Pommes de vie Icon_minitime1Ven 17 Juin 2011 - 17:12 par apocalypse

» créer un jeu de rôle
Pommes de vie Icon_minitime1Ven 17 Juin 2011 - 17:09 par apocalypse

» se presenter
Pommes de vie Icon_minitime1Mer 19 Jan 2011 - 21:54 par apocalypse

» Serment du Juge actuel
Pommes de vie Icon_minitime1Dim 26 Déc 2010 - 15:52 par Yosura

» Le Réseau Social - Parodie de la BA de The Social Network
Pommes de vie Icon_minitime1Dim 26 Déc 2010 - 15:42 par Yosura

[Partenaire] Feuille d'RPG

Mer 28 Jan 2009 - 0:42 par L\'homme sans visage

Un site crée part kilari spécialisé dans les scénarios.

Feuille d'RPG

Commentaires: 0

[Partenaire] RPG Alliance

Lun 26 Jan 2009 - 20:45 par L\'homme sans visage

Voici le site que nous avons créer en partenariat avec The Best of Maker :

RPG Alliance

Commentaires: 0

[Partenaire] Super RPG

Sam 24 Jan 2009 - 0:38 par L\'homme sans visage

Voici le site de nôtre ami The Best of Maker.
Il parle de RPG maker (vous l'aurez sûrement devinez Laughing) :

Super RPG

Commentaires: 0

Sondage

Quel est la version de RPG maker que vous préférez ?

Pommes de vie I_vote_lcap75%Pommes de vie I_vote_rcap 75% [ 18 ]
Pommes de vie I_vote_lcap0%Pommes de vie I_vote_rcap 0% [ 0 ]
Pommes de vie I_vote_lcap4%Pommes de vie I_vote_rcap 4% [ 1 ]
Pommes de vie I_vote_lcap4%Pommes de vie I_vote_rcap 4% [ 1 ]
Pommes de vie I_vote_lcap17%Pommes de vie I_vote_rcap 17% [ 4 ]

Total des votes : 24

Lutter contre le SPAM
Le deal à ne pas rater :
Jeux, jouets et Lego : le deuxième à -50% (large sélection)
Voir le deal

Pommes de vie

Aller en bas

Normal Pommes de vie

Message par okaya Ven 27 Fév 2009 - 10:38

Voici un script fort utile. En effet, celui-ci va affiché en haut à gauche de votre écran de jeu des pommes qui indiqueront la vie du héros (comme dans Zelda en gros).

Avant de vous livrer le code, voici comment le configurer :

Vous pouvez configurer le script à ces lignes :

#=== Options ===
corazones = 10
opacidad = 255
opcion = 2
#=== Options end ==
Corazones est le nombre de cœurs qui seront affichés. Opacidad correspond à l'opacité des cœurs (très visible ou transparent parexemple). Opcion c'est le texte qui est affiché en dessous des cœurs (1 = nom du héros, 2 = PV actuels ou max du héros, 3 = Nombre de cœurs pleins, 4 =% de vie, 5 = ne rien afficher).

Enfin, dans le script scène_map, en dessous de la ligne 15, rajoutez le bout de code suivant :

@corazones = Window_Corazones.new
En dessous de la ligne 37, ce code :

@corazones.dispose
Enfin, en dessous de la ligne 75, ce code :

@corazones.refresh
Voici le code à mettre :



--------------------------------------------------------------------------------



#==========================================
# Pommes de vie
#
# Script téléchargé sur www.rpg-creation.com
#
# Window_Corazones
# Par DarkRog
#-----------------------------------------
#==========================================

class Window_Corazones < Window_Base
def initialize
super(-8, -8, 640, 96)
#=== Options ===
corazones = 10
opacidad = 255
opcion = 2
#=== Options fin ==
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
self.opacity = 0
@hearts = corazones
@opacity = opacidad
@option = opcion
@hr = 0
refresh
end
#----------------------------------------
# - Actualisation
#----------------------------------------
def refresh
self.contents.clear
@n = $game_party.actors[0].hp
@mn = $game_party.actors[0].maxhp
#n is the value, and mn the maxvalue:
@hr = 0
@lh = 0
for i in 0..@hearts-1
self.contents.fill_rect(i*14, 4, 1, 2, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+1, 3, 1, 4, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+2, 2, 1, 6, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+3, 1, 1, 8, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+4, 0, 1, 10, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+5, 1, 1, 10, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+6, 2, 1, 10, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+7, 1, 1, 10, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+8, 0, 1, 10, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+9, 1, 1, 8, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+10, 2, 1, 6, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+11, 3, 1, 4, Color.new(0, 0, 0, @opacity))
self.contents.fill_rect(i*14+12, 4, 1, 2, Color.new(0, 0, 0, @opacity))
#
self.contents.fill_rect(i*14+1, 4, 1, 2, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+2, 3, 1, 4, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+3, 2, 1, 6, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+4, 1, 1, 8, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+5, 2, 1, 8, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+6, 3, 1, 8, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+7, 2, 1, 8, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+8, 1, 1, 8, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+9, 2, 1, 6, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+10, 3, 1, 4, Color.new(255, 255, 255, @opacity))
self.contents.fill_rect(i*14+11, 4, 1, 2, Color.new(255, 255, 255, @opacity))
#
#@c = 255
@l = @n*100/@mn
@ho = @l*@hearts
c_color(1)
self.contents.fill_rect(i*14+2, 4, 1, 2, Color.new(@c, 0, 0, @opacity))
c_color(2)
self.contents.fill_rect(i*14+3, 3, 1, 4, Color.new(@c, 0, 0, @opacity))
c_color(3)
self.contents.fill_rect(i*14+4, 2, 1, 6, Color.new(@c, 0, 0, @opacity))
c_color(4)
self.contents.fill_rect(i*14+5, 3, 1, 6, Color.new(@c, 0, 0, @opacity))
c_color(5)
self.contents.fill_rect(i*14+6, 4, 1, 6, Color.new(@c, 0, 0, @opacity))
c_color(6)
self.contents.fill_rect(i*14+7, 3, 1, 6, Color.new(@c, 0, 0, @opacity))
c_color(7)
self.contents.fill_rect(i*14+8, 2, 1, 6, Color.new(@c, 0, 0, @opacity))
c_color(Cool
self.contents.fill_rect(i*14+9, 3, 1, 4, Color.new(@c, 0, 0, @opacity))
c_color(9)
self.contents.fill_rect(i*14+10, 4, 1, 2, Color.new(@c, 0, 0, @opacity))

@hr += 1
end
if @option == 1
self.contents.font.color.set(0, 0, 0)
self.contents.draw_text(0 - 1, 7 - 1, 160, 32, $game_party.actors[0].name, 0)
self.contents.draw_text(0 - 1, 7 + 1, 160, 32, $game_party.actors[0].name, 0)
self.contents.draw_text(0 + 1, 7 - 1, 160, 32, $game_party.actors[0].name, 0)
self.contents.draw_text(0 + 1, 7 + 1, 160, 32, $game_party.actors[0].name, 0)
self.contents.font.color = normal_color
self.contents.draw_text(0, 7, 160, 32, $game_party.actors[0].name, 0)
elsif @option == 2
self.contents.font.color.set(0, 0, 0)
self.contents.draw_text(0 - 1, 7 - 1, 160, 32, "#{@n}/#{@mn}", 0)
self.contents.draw_text(0 - 1, 7 + 1, 160, 32, "#{@n}/#{@mn}", 0)
self.contents.draw_text(0 + 1, 7 - 1, 160, 32, "#{@n}/#{@mn}", 0)
self.contents.draw_text(0 + 1, 7 + 1, 160, 32, "#{@n}/#{@mn}", 0)
self.contents.font.color = normal_color
self.contents.draw_text(0, 7, 160, 32, "#{@n}/#{@mn}", 0)
elsif @option == 3
self.contents.font.color.set(0, 0, 0)
self.contents.draw_text(0 - 1, 7 - 1, 160, 32, "#{@ho/100}/#{@hearts}", 0)
self.contents.draw_text(0 - 1, 7 + 1, 160, 32, "#{@ho/100}/#{@hearts}", 0)
self.contents.draw_text(0 + 1, 7 - 1, 160, 32, "#{@ho/100}/#{@hearts}", 0)
self.contents.draw_text(0 + 1, 7 + 1, 160, 32, "#{@ho/100}/#{@hearts}", 0)
self.contents.font.color = normal_color
self.contents.draw_text(0, 7, 160, 32, "#{@ho/100}/#{@hearts}", 0)
elsif @option == 4
self.contents.font.color.set(0, 0, 0)
self.contents.draw_text(0 - 1, 7 - 1, 160, 32, "#{@l}%", 0)
self.contents.draw_text(0 - 1, 7 + 1, 160, 32, "#{@l}%", 0)
self.contents.draw_text(0 + 1, 7 - 1, 160, 32, "#{@l}%", 0)
self.contents.draw_text(0 + 1, 7 + 1, 160, 32, "#{@l}%", 0)
self.contents.font.color = normal_color
self.contents.draw_text(0, 7, 160, 32, "#{@l}%", 0)
end
end

def c_color(a)
if @hr <= (@ho/100)-1
@c = 255
else
if @ho/10-@hr*10 >= a and @ho/10-@hr*10 <= 9

@c = 255
else
@c = 0
end
end
end

def corazones(corazones)
@hearts = corazones
end
end
okaya
okaya
Secrétaire Général
Secrétaire Général

Masculin
Nombre de messages : 103
Age : 26
Localisation : BOULOGNE-BILLANCOURT
Avertissement :
Pommes de vie Left_bar_bleue0 / 1000 / 100Pommes de vie Right_bar_bleue

Points : 7598
Date d'inscription : 09/01/2009

Revenir en haut Aller en bas

Revenir en haut


 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum