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)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
L'homme sans visage (225)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
The Best of Maker (196)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
okaya (103)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
kilari (26)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
apocalypse (8)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
Shaymin (6)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
EM!R'Ald (4)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
yojoqc (3)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle I_vote_rcap 
fandbz13 (3)
Statistiques post-battle I_vote_lcapStatistiques post-battle I_voting_barStatistiques post-battle 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
Statistiques post-battle Icon_minitime1Mar 19 Juin 2012 - 19:07 par apocalypse

» parodie des jeux pokemon
Statistiques post-battle Icon_minitime1Ven 8 Juin 2012 - 18:56 par apocalypse

» Rpg maker xp
Statistiques post-battle Icon_minitime1Jeu 14 Juil 2011 - 4:56 par kaplio0777

» Présentation de kaplio0777
Statistiques post-battle Icon_minitime1Jeu 14 Juil 2011 - 4:43 par kaplio0777

» me presenté
Statistiques post-battle Icon_minitime1Ven 17 Juin 2011 - 17:12 par apocalypse

» créer un jeu de rôle
Statistiques post-battle Icon_minitime1Ven 17 Juin 2011 - 17:09 par apocalypse

» se presenter
Statistiques post-battle Icon_minitime1Mer 19 Jan 2011 - 21:54 par apocalypse

» Serment du Juge actuel
Statistiques post-battle Icon_minitime1Dim 26 Déc 2010 - 15:52 par Yosura

» Le Réseau Social - Parodie de la BA de The Social Network
Statistiques post-battle 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 ?

Statistiques post-battle I_vote_lcap75%Statistiques post-battle I_vote_rcap 75% [ 18 ]
Statistiques post-battle I_vote_lcap0%Statistiques post-battle I_vote_rcap 0% [ 0 ]
Statistiques post-battle I_vote_lcap4%Statistiques post-battle I_vote_rcap 4% [ 1 ]
Statistiques post-battle I_vote_lcap4%Statistiques post-battle I_vote_rcap 4% [ 1 ]
Statistiques post-battle I_vote_lcap17%Statistiques post-battle I_vote_rcap 17% [ 4 ]

Total des votes : 24

Lutter contre le SPAM
-45%
Le deal à ne pas rater :
WHIRLPOOL OWFC3C26X – Lave-vaisselle pose libre 14 couverts – ...
339 € 622 €
Voir le deal

Statistiques post-battle

Aller en bas

Normal Statistiques post-battle

Message par Yosura Jeu 12 Fév 2009 - 21:58

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
Yosura
Yosura
Ambassadeur
Ambassadeur

Masculin
Nombre de messages : 252
Age : 27
Localisation : dans le chateaux des tenebre de mon cousin Soron
Avertissement :
Statistiques post-battle Left_bar_bleue0 / 1000 / 100Statistiques post-battle Right_bar_bleue

Points : 12769
Date d'inscription : 19/12/2008

Revenir en haut Aller en bas

Revenir en haut


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