Connexion
Meilleurs posteurs
Yosura (252) | ||||
L'homme sans visage (225) | ||||
The Best of Maker (196) | ||||
okaya (103) | ||||
kilari (26) | ||||
apocalypse (8) | ||||
Shaymin (6) | ||||
EM!R'Ald (4) | ||||
yojoqc (3) | ||||
fandbz13 (3) |
Horloge Socratienne
Nombre de Visiteurs
Derniers sujets
[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 ) :
Super RPG
Il parle de RPG maker (vous l'aurez sûrement devinez ) :
Super RPG
Commentaires: 0
Statistiques post-battle
RPG Socrate :: Général :: Scripts :: Combat
Page 1 sur 1
Statistiques post-battle
Fonction:
Permet d'ouvrir une fenêtre pour afficher certaine staistiques.
Auteur: Eothean
Etat: Test et Marche
Screen:
Utilisation :
Créez un évent et collez ce script :
Code:
$scene = Scene_BilanDeCombat.new
Copiez ce code au dessus de "Main" et appelez le "Window_BilanDeCombat" :
Code:
Code:
# -------------------------------------------------------------
# Window_BilanDeCombat
# Script par : Eothéan (site de Eothéan : http://rpgmaker-otherworld.forumpro.fr)
# -------------------------------------------------------------
class Window_BilanDeCombat < Window_Base
# -------------------------------------------------------------
$nombredevictoires = 0
$nombredefuitestentees = 0
$nombredefuitesreussies = 0
$nombredefuitesratees = 0
$nombredecoupsechanges = 0
$nombredecompetencesutilisees = 0
def initialize
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
refresh
end
# -------------------------------------------------------------
def refresh
for i in 0...$game_party.actors.size
x = 230
y = i * 100 + 48
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
# ----------------------
self.contents.font.color = system_color
self.contents.font.size = 32
self.contents.draw_text(200, 0, 450, 32, "Bilan de Combat!")
# ----------------------
self.contents.font.size = 24
self.contents.draw_text(4, 64, 120, 32, "Victoires :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 96, 120, 32, $nombredevictoires = 0.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 128, 150, 32, "Fuites tentées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 160, 120, 32, $nombredefuitestentees.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 192, 170, 32, "Fuites réussies :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 224, 120, 32, $nombredefuitesreussies.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 256, 140, 32, "Fuites ratées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 288, 120, 32, $nombredefuitesratees.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 320, 180, 32, "Coups échangés :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 352, 120, 32, $nombredecoupsechanges.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 374, 180, 32, "Compét. utilisées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 406, 120, 32, $nombredecompetencesutilisees.to_s, 2)
# ---------------------
end
# -------------------------------------------------------------
end
Puis celui-ci (Scene_BilanDeCombat) :
Code:
Code:
# -------------------------------------------------------------
# Scene_BilanDeCombat
# Script de : Eothéan (http://rpgmaker-otherworld.forumpro.fr)
# -------------------------------------------------------------
class Scene_BilanDeCombat
# -------------------------------------------------------------
def main
@bilandecombat_window = Window_BilanDeCombat.new
@bilandecombat_window.x = 0
@bilandecombat_window.y = 0
# ------------------------------
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
# ------------------------------
@bilandecombat_window.dispose
end
# -------------------------------------------------------------
def update
@bilandecombat_window.update
if @bilandecombat_window.active
update_bilandecombat
return
end
end
# -------------------------------------------------------------
def update_bilandecombat
# B ボタンが押された場合
if Input.trigger?(Input::B)
# キャンセル SE を演奏
$game_system.se_play($data_system.cancel_se)
# メニュー画面に切り替え
$scene = Scene_Map.new
return
end
end
# -------------------------------------------------------------
end # Fin de la classe
Ajoutez dans "Scene_Battle2" :
ligne 78 :
Code:
Code:
$nombredefuitestentees += 1
ligne 119 :
Code:
Code:
$nombredefuitesreussies += 1
ligne 128 :
Code:
Code:
$nombredefuitesratees += 1
ligne 140 :
Code:
Code:
$nombredevictoires += 1
Dans "Scene_Battle4" :
ligne 188 :
Code:
Code:
$nombredecoupsechanges += 1
ligne 350 :
Code:
Code:
$nombredecompetencesutilisees += 1
Permet d'ouvrir une fenêtre pour afficher certaine staistiques.
Auteur: Eothean
Etat: Test et Marche
Screen:
Utilisation :
Créez un évent et collez ce script :
Code:
$scene = Scene_BilanDeCombat.new
Copiez ce code au dessus de "Main" et appelez le "Window_BilanDeCombat" :
Code:
Code:
# -------------------------------------------------------------
# Window_BilanDeCombat
# Script par : Eothéan (site de Eothéan : http://rpgmaker-otherworld.forumpro.fr)
# -------------------------------------------------------------
class Window_BilanDeCombat < Window_Base
# -------------------------------------------------------------
$nombredevictoires = 0
$nombredefuitestentees = 0
$nombredefuitesreussies = 0
$nombredefuitesratees = 0
$nombredecoupsechanges = 0
$nombredecompetencesutilisees = 0
def initialize
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
refresh
end
# -------------------------------------------------------------
def refresh
for i in 0...$game_party.actors.size
x = 230
y = i * 100 + 48
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
# ----------------------
self.contents.font.color = system_color
self.contents.font.size = 32
self.contents.draw_text(200, 0, 450, 32, "Bilan de Combat!")
# ----------------------
self.contents.font.size = 24
self.contents.draw_text(4, 64, 120, 32, "Victoires :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 96, 120, 32, $nombredevictoires = 0.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 128, 150, 32, "Fuites tentées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 160, 120, 32, $nombredefuitestentees.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 192, 170, 32, "Fuites réussies :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 224, 120, 32, $nombredefuitesreussies.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 256, 140, 32, "Fuites ratées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 288, 120, 32, $nombredefuitesratees.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 320, 180, 32, "Coups échangés :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 352, 120, 32, $nombredecoupsechanges.to_s, 2)
# ---------------------
self.contents.font.size = 24
self.contents.font.color = system_color
self.contents.draw_text(4, 374, 180, 32, "Compét. utilisées :")
self.contents.font.color = normal_color
self.contents.draw_text(4, 406, 120, 32, $nombredecompetencesutilisees.to_s, 2)
# ---------------------
end
# -------------------------------------------------------------
end
Puis celui-ci (Scene_BilanDeCombat) :
Code:
Code:
# -------------------------------------------------------------
# Scene_BilanDeCombat
# Script de : Eothéan (http://rpgmaker-otherworld.forumpro.fr)
# -------------------------------------------------------------
class Scene_BilanDeCombat
# -------------------------------------------------------------
def main
@bilandecombat_window = Window_BilanDeCombat.new
@bilandecombat_window.x = 0
@bilandecombat_window.y = 0
# ------------------------------
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
# ------------------------------
@bilandecombat_window.dispose
end
# -------------------------------------------------------------
def update
@bilandecombat_window.update
if @bilandecombat_window.active
update_bilandecombat
return
end
end
# -------------------------------------------------------------
def update_bilandecombat
# B ボタンが押された場合
if Input.trigger?(Input::B)
# キャンセル SE を演奏
$game_system.se_play($data_system.cancel_se)
# メニュー画面に切り替え
$scene = Scene_Map.new
return
end
end
# -------------------------------------------------------------
end # Fin de la classe
Ajoutez dans "Scene_Battle2" :
ligne 78 :
Code:
Code:
$nombredefuitestentees += 1
ligne 119 :
Code:
Code:
$nombredefuitesreussies += 1
ligne 128 :
Code:
Code:
$nombredefuitesratees += 1
ligne 140 :
Code:
Code:
$nombredevictoires += 1
Dans "Scene_Battle4" :
ligne 188 :
Code:
Code:
$nombredecoupsechanges += 1
ligne 350 :
Code:
Code:
$nombredecompetencesutilisees += 1
Yosura- Ambassadeur
-
Nombre de messages : 252
Age : 27
Localisation : dans le chateaux des tenebre de mon cousin Soron
Avertissement :
Points : 12769
Date d'inscription : 19/12/2008
RPG Socrate :: Général :: Scripts :: Combat
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|
Mar 19 Juin 2012 - 19:07 par apocalypse
» parodie des jeux pokemon
Ven 8 Juin 2012 - 18:56 par apocalypse
» Rpg maker xp
Jeu 14 Juil 2011 - 4:56 par kaplio0777
» Présentation de kaplio0777
Jeu 14 Juil 2011 - 4:43 par kaplio0777
» me presenté
Ven 17 Juin 2011 - 17:12 par apocalypse
» créer un jeu de rôle
Ven 17 Juin 2011 - 17:09 par apocalypse
» se presenter
Mer 19 Jan 2011 - 21:54 par apocalypse
» Serment du Juge actuel
Dim 26 Déc 2010 - 15:52 par Yosura
» Le Réseau Social - Parodie de la BA de The Social Network
Dim 26 Déc 2010 - 15:42 par Yosura