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

» parodie des jeux pokemon
Auto combat Icon_minitime1Ven 8 Juin 2012 - 18:56 par apocalypse

» Rpg maker xp
Auto combat Icon_minitime1Jeu 14 Juil 2011 - 4:56 par kaplio0777

» Présentation de kaplio0777
Auto combat Icon_minitime1Jeu 14 Juil 2011 - 4:43 par kaplio0777

» me presenté
Auto combat Icon_minitime1Ven 17 Juin 2011 - 17:12 par apocalypse

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

» se presenter
Auto combat Icon_minitime1Mer 19 Jan 2011 - 21:54 par apocalypse

» Serment du Juge actuel
Auto combat Icon_minitime1Dim 26 Déc 2010 - 15:52 par Yosura

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

Auto combat I_vote_lcap75%Auto combat I_vote_rcap 75% [ 18 ]
Auto combat I_vote_lcap0%Auto combat I_vote_rcap 0% [ 0 ]
Auto combat I_vote_lcap4%Auto combat I_vote_rcap 4% [ 1 ]
Auto combat I_vote_lcap4%Auto combat I_vote_rcap 4% [ 1 ]
Auto combat I_vote_lcap17%Auto combat I_vote_rcap 17% [ 4 ]

Total des votes : 24

Lutter contre le SPAM
Le Deal du moment : -40%
-40% sur le Pack Gaming Mario PDP Manette filaire + ...
Voir le deal
29.99 €

Auto combat

Aller en bas

Normal Auto combat

Message par Yosura Jeu 8 Jan 2009 - 20:06

Fonction : Permet de rajouter dans les combats l'option auto-combat qui fait combattre vos personnages automatiquement comme dans Rpg maker 2000/2003.
Installation : Allez dans l'éditeur de script ( F11 ) et créez un script au dessus de "Main" , nommez le " Auto_Battle " et collez ce script.

Code:
#==============================================================================
# ¦ Auto_Battle
#------------------------------------------------------------------------------
# Edited from default scripts by Thousand Dragoon Link and Sir_KnightDragoon
# Comments by Thousand Dragoon Link
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# ? Renewal of a frame (party command phase)
#--------------------------------------------------------------------------
def update_phase2
if Input.trigger?(Input::C)
case @party_command_window.index
when 0 # Fight
# Determine if a SE is performed.
$game_system.se_play($data_system.decision_se)
start_phase3
when 1 # Escape.
# escape is not possible
if $game_temp.battle_can_escape == false
$game_system.se_play($data_system.buzzer_se)
return
end
$game_system.se_play($data_system.decision_se)
update_phase2_escape
when 2 # Auto-Battle
$game_system.se_play($data_system.decision_se)
update_phase2_auto
end
return
end
end
#--------------------------------------------------------------------------
# Renewal of a frame (party command phase : auto)
#--------------------------------------------------------------------------
def update_phase2_auto
loop do
if @actor_index == $game_party.actors.size-1
start_phase4
return
end
@actor_index += 1
$game_party.actors[@actor_index].current_action.kind = 0
$game_party.actors[@actor_index].current_action.basic = 0
$game_party.actors[@actor_index].current_action.decide_random_target_for_actor
end
end
end

class Window_PartyCommand < Window_Selectable
#--------------------------------------------------------------------------
# object initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 64)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 160
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
#Change the commands to what you want them to say
@commands = ["Combat", "Fuite", "Auto-Combat"]
@item_max = 3
@column_max = 3
draw_item(0, normal_color)
draw_item(1, $game_temp.battle_can_escape ? normal_color : disabled_color)
draw_item(2, normal_color)
self.active = false
self.visible = false
self.index = 0
end
#--------------------------------------------------------------------------
def draw_item(index, color)
self.contents.font.color = color
rect = Rect.new(80 + index * 160 + 4, 0, 128 - 10, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#--------------------------------------------------------------------------
# Renewal of the rectangle cursor
#--------------------------------------------------------------------------
def update_cursor_rect
self.cursor_rect.set(80 + index * 160, 0, 128, 32)
end
end
Yosura
Yosura
Ambassadeur
Ambassadeur

Masculin
Nombre de messages : 252
Age : 27
Localisation : dans le chateaux des tenebre de mon cousin Soron
Avertissement :
Auto combat Left_bar_bleue0 / 1000 / 100Auto combat Right_bar_bleue

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

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

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