- Mensajes
- 129
- Reacciones
- 2
- Puntos
- 0
Re: ◄ Base de datos de Scripts & Recursos a La carta [Pedidos V6] ►
-Nombre Del Script: No más Lider Zombie
-Rpg Maker: Vx
-Introducion:
En muchos casos en una batalla el lider de la batalla muere, este script reemplazara el lider de el party por el siguiente miembro de la misma que aun este con vida.
-ScreenShot: No hay
-Script:
#==============================================================================# No Zombie Leaders!# Version: 1.0# Author: modern algebra (rmrk.net)# Date: May 6, 2010#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Description:## By default, if the lead actor of the party is killed, it will still be # his/her graphic being used on the map. This script changes it so that if # the leader of the party dies, replaces his/her sprite with that of the next# living actor.#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Instructions:## Place this script in its own slot in the Script Editor (F11) above Main # and below Materials. That's all.#==============================================================================#==============================================================================# ** Game_Actor#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Summary of Changes:# aliased method - add_state; remove_state#==============================================================================class Game_Actor #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Add State #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias modara_potat_leadded_adst_1gb3 add_state def add_state (state_id, *args) modara_potat_leadded_adst_1gb3 (state_id, *args) # Run Original Method $game_player.refresh if state_id == 1 end #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Remove State #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias mdala_pat_deledr_rmvst_5xc2 remove_state def remove_state (state_id, *args) mdala_pat_deledr_rmvst_5xc2 (state_id, *args) # Run Original Method $game_player.refresh if state_id == 1 endend#==============================================================================# ** Game_Player#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Summary of Changes:# aliased method - refresh#==============================================================================class Game_Player #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Refresh #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias malg_lpot_dedlead_rfsh_7uj2 refresh def refresh (*args) if $game_party.members.size > 1 && $game_party.members[0].dead? # Get first party member that isn't dead i = 1 while i != $game_party.members.size && $game_party.members.dead? i += 1 end i = 0 if i == $game_party.members.size actor = $game_party.members @character_name = actor.character_name @character_index = actor.character_index if self.methods.include? ("composite_character") @composite_character = $game_party.members[0].composite_character end else malg_lpot_dedlead_rfsh_7uj2 (*args) # Refresh end endend
Código:
-Instrucciones:
Pegar Sobre El Main. En añadir scripts.
-Creditos:
modern algebra
-Nombre Del Script: No más Lider Zombie
-Rpg Maker: Vx
-Introducion:
En muchos casos en una batalla el lider de la batalla muere, este script reemplazara el lider de el party por el siguiente miembro de la misma que aun este con vida.
-ScreenShot: No hay
-Script:
#==============================================================================# No Zombie Leaders!# Version: 1.0# Author: modern algebra (rmrk.net)# Date: May 6, 2010#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Description:## By default, if the lead actor of the party is killed, it will still be # his/her graphic being used on the map. This script changes it so that if # the leader of the party dies, replaces his/her sprite with that of the next# living actor.#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Instructions:## Place this script in its own slot in the Script Editor (F11) above Main # and below Materials. That's all.#==============================================================================#==============================================================================# ** Game_Actor#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Summary of Changes:# aliased method - add_state; remove_state#==============================================================================class Game_Actor #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Add State #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias modara_potat_leadded_adst_1gb3 add_state def add_state (state_id, *args) modara_potat_leadded_adst_1gb3 (state_id, *args) # Run Original Method $game_player.refresh if state_id == 1 end #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Remove State #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias mdala_pat_deledr_rmvst_5xc2 remove_state def remove_state (state_id, *args) mdala_pat_deledr_rmvst_5xc2 (state_id, *args) # Run Original Method $game_player.refresh if state_id == 1 endend#==============================================================================# ** Game_Player#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# Summary of Changes:# aliased method - refresh#==============================================================================class Game_Player #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # * Refresh #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias malg_lpot_dedlead_rfsh_7uj2 refresh def refresh (*args) if $game_party.members.size > 1 && $game_party.members[0].dead? # Get first party member that isn't dead i = 1 while i != $game_party.members.size && $game_party.members.dead? i += 1 end i = 0 if i == $game_party.members.size actor = $game_party.members @character_name = actor.character_name @character_index = actor.character_index if self.methods.include? ("composite_character") @composite_character = $game_party.members[0].composite_character end else malg_lpot_dedlead_rfsh_7uj2 (*args) # Refresh end endend
Código:
-Instrucciones:
Pegar Sobre El Main. En añadir scripts.
-Creditos:
modern algebra