| | XAS = SWITCH XAS LEADER script | |
|
| Autor | Mensaje |
|---|
gameface101 Escudero Experimentado


Cantidad de envíos: 47 Fecha de inscripción: 14/09/2009
 | Tema: XAS = SWITCH XAS LEADER script Mar Ene 05, 2010 5:32 am | |
| Hola Amigos! ¡con esta escritura usted puede tener agentes múltiples en su juego de XAS! lleve a cabo la llave de A+Z para cambiar:) ¡el ~ goza! *with this script you can have multiple actors in your XAS game! hold A+Z key to switch :) ~ enjoy! | Spoiler: | | |
| Código: | =begin
SWITCH XAS LEADER script V.5 by gameface101 1-3-10
special thanks to Hackel for help with remember skills and items
*free to use and must give credit
=end
class Game_Temp attr_accessor :remember_skill attr_accessor :remember_item alias swap_initialize initialize def initialize @remember_skill = [] @remember_item = [] swap_initialize end end class Scene_Map alias switch_xas_leader update def update switch_xas_leader if Input.press? (Input::A) and Input.press?(Input::X) $game_system.se_play(RPG::AudioFile.new("009-System09", 100, 100)) $game_player.animation_id = 220 xas_leader end def xas_leader $game_temp.remember_skill[$game_party.actors[0].id] = $game_system.xas_skill_id $game_variables[1] = $game_temp.remember_skill[$game_party.actors[0].id] $game_temp.remember_item[$game_party.actors[0].id]= $game_system.xas_item_id last_act = $game_party.actors.shift $game_party.add_actor (last_act.id) $game_player.refresh unless $game_temp.remember_skill[$game_party.actors[0].id] == nil $game_system.xas_skill_id = $game_temp.remember_skill[$game_party.actors[0].id] #to clear equipped skill else $game_system.xas_skill_id = 0 end unless $game_temp.remember_item[$game_party.actors[0].id] == nil $game_system.xas_item_id = $game_temp.remember_item[$game_party.actors[0].id] #to clear equipped item else $game_system.xas_item_id = 0 end $scene = Scene_Map.new end
end end
class Scene_Map alias_method :switch_dead_actor_scene_map_update, :update def update switch_dead_actor_scene_map_update unless $game_party.actors.empty? if ($game_party.actors[0].hp).zero? unless $game_party.all_dead? $game_party.actors << $game_party.actors.shift $game_player.refresh else ; $game_temp.gameover = true end end end end end
|
|
|
|
 | |
DaviX Admin


Cantidad de envíos: 2596 Fecha de inscripción: 08/07/2009 Edad: 91 Localización: España
 | Tema: Re: XAS = SWITCH XAS LEADER script Mar Ene 05, 2010 6:13 am | |
| OHhh looks good! but as it is used?
This post should go into scripts, but this area does not moderate
* Ohh se ve bueno1 pero como se usa? Este post deve ir en script, lastima que no modero este zona _________________ | Mascota: | | |  |
|
|
 | |
gameface101 Escudero Experimentado


Cantidad de envíos: 47 Fecha de inscripción: 14/09/2009
 | Tema: Re: XAS = SWITCH XAS LEADER script Mar Ene 05, 2010 6:59 am | |
| oh muévase por favor a las escrituras así que cada uno puede intentar
- copia y goma sobre la cañería en la base de datos de la escritura (F11)
- cree a los agentes múltiples en su base de datos principal (F9)
cambie al líder de los xas presionando las llaves de A + de Z (animadas!) la escritura recordará el equipo, artículos, y las habilidades para cada agente ^,^
*oh please move to scripts so everyone can try
-copy and paste above main in the script database (F11)
-create multiple actors in your main database (F9)
switch xas leader by pressing A + Z keys (animated!)
script will remember equipment, items, and skills for each actor ^,^ |
|
 | |
Frikilangelo Moderador


Cantidad de envíos: 2317 Fecha de inscripción: 12/07/2009 Edad: 25 Localización: España
 | Tema: Re: XAS = SWITCH XAS LEADER script Jue Ene 07, 2010 1:04 am | |
| Hi again!
So, if you cahge the leader, their chara will also change? and when you change leader (if your hero is the 1º on database), it will change with the 2º hero on database, some specific, or any you want from there? _________________  |
|
 | |
gameface101 Escudero Experimentado


Cantidad de envíos: 47 Fecha de inscripción: 14/09/2009
 | Tema: Re: XAS = SWITCH XAS LEADER script Sáb Ene 09, 2010 9:21 pm | |
| @Frikil - yup just add more actors in the database!  if actor 1 has a sword and a fire spell and actor 2 has a bow and an ice spell you can switch actors and the weapons, items, skills will change accordingly ^,^ |
|
 | |
Dorvin Caballero Real


Cantidad de envíos: 268 Fecha de inscripción: 27/12/2009 Edad: 17 Localización: Arenys de mar, Barcelona, Catalunya, España Proyecto: The Sexy Death
 | Tema: Re: XAS = SWITCH XAS LEADER script Dom Ene 10, 2010 4:32 am | |
| Oh mi god! THX!!  :D:D EDIT: Hello gameface101. The script is very good. But it seems that the ACT does not work T_T The Hit and even the DASH work perfectly but the ACT does not .. How can I fix that? Thank you. GOOD CONTRIBUTION |
|
 | |
gameface101 Escudero Experimentado


Cantidad de envíos: 47 Fecha de inscripción: 14/09/2009
 | Tema: Re: XAS = SWITCH XAS LEADER script Lun Ene 11, 2010 6:02 am | |
| | Citación: | | But it seems that the ACT does not work T_T |
@Dorvin - this script shouldn't interfere with ACT, so it must be how each actor in your main database is setup.
(F9) - verify the "Actors tab", then most importantly your "Classes tab" make certain you check off "equippable weapons" for each actor.
please let me know if this helps, or I will make a demo for you guys ^,^ |
|
 | |
Ares Moderador


Cantidad de envíos: 1273 Fecha de inscripción: 08/07/2009 Edad: 82 Localización: en el baño Proyecto: Tales of elven
 | Tema: Re: XAS = SWITCH XAS LEADER script Lun Ene 11, 2010 6:51 am | |
| |
|
 | |
gameface101 Escudero Experimentado


Cantidad de envíos: 47 Fecha de inscripción: 14/09/2009
 | Tema: Re: XAS = SWITCH XAS LEADER script Jue Ene 14, 2010 6:46 am | |
| hi Ares! ^,^ yes works with XAS 3.6 like a charm  |
|
 | |
| | XAS = SWITCH XAS LEADER script | |
|