Últimos temas
» Script de menupor maxi Jue 04 Dic 2014, 1:44 pm
» Ayuda intro animado!!!
por maxi Miér 03 Dic 2014, 9:41 pm
» ayuda con este engin
por maxi Miér 03 Dic 2014, 8:42 am
» Hud de Vida 100% Personalizable - Engine Sencillo! Sin Scripts :)
por davidaikago Jue 20 Nov 2014, 10:58 am
» Ultimate parallax control by:GDS [ace]
por arellano Miér 08 Oct 2014, 8:28 pm
» Script Touhou (animated) Map name (v1.4)
por davidaikago Miér 08 Oct 2014, 2:09 pm
» tutorial puerta nueva
por davidaikago Miér 08 Oct 2014, 9:08 am
» cámara de fotos
por davidaikago Miér 08 Oct 2014, 9:05 am
» Imperial Action System II Demo
por davidaikago Miér 08 Oct 2014, 8:47 am
» VE Batalla animada [ACE]
por FhierusIV Jue 18 Sep 2014, 10:57 am
» Nuevo Reglamento del Foro [Vigente desde Septiembre 2014]
por maxi Miér 17 Sep 2014, 8:37 am
» MOG|Animated Title
por Souta21 Mar 09 Sep 2014, 7:24 pm
» Tutorial Engine - Cambiar Character al Equipar Objeto
por maxi Lun 21 Jul 2014, 10:19 am
» Script de climas
por gambasoxd Sáb 19 Jul 2014, 8:58 am
» Script de contraseña(codigo) para abrir un cofre
por rpgame Jue 03 Jul 2014, 6:03 pm
¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado Ninguno
El record de usuarios en línea fue de 117 durante el Mar 09 Ago 2011, 3:39 pm
auto-battle
2 participantes
RPG maker VX :: Scripts ::
Página 1 de 1.
auto-battle
muy bn scrip que agrega la obcion de auto-battle solo ataca automoticamente
espero que lo disfruten
- Spoiler:
- #==============================================================================
# ** Auto_Batalla (por 2008 TYPE74RX-T) (Editado por ERZENGEL)
#==============================================================================
AUTOBATTLE = "Auto-Batalla" # Auto-Batalla
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
# アクターを扱うクラスです。このクラスは Game_Actors クラス ($game_actors)
# の内部で使用され、Game_Party クラス ($game_party) からも参照されます。
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * SSeetup
# actor_id : Actor ID
#--------------------------------------------------------------------------
alias rgss2b3_setup setup
def setup(actor_id)
# メソッドを呼び戻す
rgss2b3_setup(actor_id)
# オートバトルフラグ(コピー用)
@rx_auto_battle = false
end
#--------------------------------------------------------------------------
# * オートバトルフラグ(コピー用)
#--------------------------------------------------------------------------
def rx_auto_battle
return @rx_auto_battle
end
#--------------------------------------------------------------------------
# * アクターのオートバトルフラグをコピー
#--------------------------------------------------------------------------
def rx_auto_battle_copy
@rx_auto_battle = actor.auto_battle
end
#--------------------------------------------------------------------------
# * アクターのオートバトルフラグをオン
#--------------------------------------------------------------------------
def rx_auto_battle_on
actor.auto_battle = true
end
#--------------------------------------------------------------------------
# * アクターのオートバトルフラグを修復
#--------------------------------------------------------------------------
def rx_auto_battle_recover
actor.auto_battle = @rx_auto_battle
end
end
#==============================================================================
# ** Window_PartyCommand
#------------------------------------------------------------------------------
# バトル画面で、戦うか逃げるかを選択するウィンドウです。
#==============================================================================
class Window_PartyCommand < Window_Command
#--------------------------------------------------------------------------
# * Initialize
#--------------------------------------------------------------------------
def initialize
s1 = Vocab::fight
s2 = AUTOBATTLE
s3 = Vocab::escape
super(128, [s1, s2, s3], 1, 4)
draw_item(0, true)
draw_item(1, $game_troop.can_escape)
self.active = false
end
end
#==============================================================================
# * Scene_Battle
#------------------------------------------------------------------------------
# バトル画面の処理を行うクラスです。
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Battle End
# result : 結果 (0:勝利 1:逃走 2:敗北)
#--------------------------------------------------------------------------
alias rgss2b3_battle_end battle_end
def battle_end(result)
# ★ パーティ全員の自動戦闘フラグを復元
for actor in $game_party.members
actor.rx_auto_battle_recover
end
# ★ メソッドを呼び戻す
rgss2b3_battle_end(result)
end
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
def update_party_command_selection
if Input.trigger?(Input::C)
case @party_command_window.index
when 0 # Fight
# ★ 自動戦闘フラグを待避
for actor in $game_party.members
actor.rx_auto_battle_copy
end
Sound.play_decision
@status_window.index = @actor_index = -1
next_actor
when 1 # Auto-Battle
Sound.play_decision
@status_window.index = @actor_index = -1
# ★ 自動戦闘フラグを待避した後、パーティ全員の自動戦闘フラグをON
for actor in $game_party.members
actor.rx_auto_battle_copy
actor.rx_auto_battle_on
end
next_actor
when 2 # Escape
# ★ 自動戦闘フラグを待避
for actor in $game_party.members
actor.rx_auto_battle_copy
end
if $game_troop.can_escape == false
Sound.play_buzzer
return
end
Sound.play_decision
process_escape
end
end
end
#--------------------------------------------------------------------------
# * Turn end
#--------------------------------------------------------------------------
alias rgss2b3_turn_end turn_end
def turn_end
# ★ パーティ全員の自動戦闘フラグを復元
for actor in $game_party.members
actor.rx_auto_battle_recover
end
# メソッドを呼び戻す
rgss2b3_turn_end
end
end
espero que lo disfruten
llcarlos13- 30
-
32
46
82
7
Re: auto-battle
no es compatible con el menu de batalla en anillo pero los demas creo que si =D
llcarlos13- 30
-
32
46
82
7
Temas similares
» Battle Symphony [ACE]
» ABS (action battle system) script
» Synthesize Battle Backgrounds
» [Aporte]Battle back 3D
» Enu Sideview Battle System [ACE]
» ABS (action battle system) script
» Synthesize Battle Backgrounds
» [Aporte]Battle back 3D
» Enu Sideview Battle System [ACE]
RPG maker VX :: Scripts ::
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.