-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by Ryuga
-
-
=begin
#===============================================================================
Title: Battle Swap
Author: Shiggy
Date: Jan 24, 2015
--------------------------------------------------------------------------------
** Change log
Jan 24, 2015
- Initial release of the header to the script
--------------------------------------------------------------------------------
** Terms of Use
* Free to use in non-commercial projects
* Commercial uses
* Ask permission
* This is a small script so I won't charge for it
* I may ask a free copy of your game
* I may ask for other stuff like the right to use some assets
* Will do bug fixes
* Compatibility patches may be requested but no guarantees
* Please report any compatibility issues anyway
* Features may be requested but no guarantees, especially if it is non-trivial
* Credits to Shiggy in your project
* Preserve this header
* Be nice to other people ( I don't want mean people to use my scripts)
--------------------------------------------------------------------------------
** Description
This script let you instantly swap battle members with party memebers that
are not in the fight.
--------------------------------------------------------------------------------
** Usage
Just use the swap command while you are in battle, you can change the name
of the command to something else in the Vocab module
--------------------------------------------------------------------------------
** Installation
Place this script below Materials and above Main
#===============================================================================
=end
module Vocab
Swap = "Swap"
end
class Window_ActorCommand < Window_Command
alias battle_swap_make_command_list make_command_list
def make_command_list
battle_swap_make_command_list
add_swap_command
end
def add_swap_command
add_command(Vocab::Swap, :swap,swap?)
end
def swap?
$game_party.all_members.size > $game_party.max_battle_members
end
end
class Scene_Battle
alias battle_swap_create_actor_command_window create_actor_command_window
def create_actor_command_window
battle_swap_create_actor_command_window
@actor_command_window.set_handler(:swap, method(:command_swap))
end
def command_swap
@actor_window.off_party
@actor_window.set_handler(:ok, method(:on_swap_ok))
@actor_window.set_handler(:cancel, method(:on_swap_cancel))
select_actor_selection
end
def on_swap_ok
$game_party.swap_order(BattleManager.actor.index,@actor_window.index+$game_party.max_battle_members)
BattleManager.actor.make_actions
on_swap_cancel
end
def on_swap_cancel
@actor_window.set_handler(:ok, method(:on_actor_ok))
@actor_window.set_handler(:cancel, method(:on_actor_cancel))
@status_window.refresh
@actor_window.hide
@actor_command_window.activate
end
end
class Game_Party
def off_members
all_members-battle_members
end
end
class Window_BattleStatus < Window_Selectable
alias battle_swap_initialize initialize
def initialize
battle_swap_initialize
@party = true
end
alias battle_swap_item_max item_max
def item_max
if @party
battle_swap_item_max
else
$game_party.off_members.size
end
end
alias battle_swap_draw_item draw_item
def draw_item(index)
if @party
battle_swap_draw_item(index)
else
actor = $game_party.off_members[index]
draw_basic_area(basic_area_rect(index), actor)
draw_gauge_area(gauge_area_rect(index), actor)
end
end
def off_party
@party=false
end
def on_party
@party=true
end
end -
risolto ho trovato lo script, l'unico difetto è che se il pg che sta combattendo muore, non mi chede di sostituirlo e parte il game over, ma forse agendo sul battlemanager posso ovviare alla cosa ... o forse in questo caso posso usare un evento comune... vedremo
-
il problema dei battle sistem per pokemon e che creano un pg allenatore che non combatte, è una sovrastruttura che non mi serve, mi servirebbe invece un comodo script da poter aggiungere allo script della battaglia, anche perchè non ho inserito nessun tipo di engine.
il gioco è struttorato così, il tuo pg è un adepto di kun'lun che passa l'esame per diventare maestro, alla fine dell'addestramento sceglie quale disciplina seguire. poi scoppia la gueerra atomica e il suo compito è riportare ordine nelle scuole, attraverso varie mission e combattimenti, ogni volta che sconfigge un maestro (Rey, Shin, Raoul,, Toky, etc.) quest'ultimo si unisce al gruppo. (quelli in più oltre il 3 finiscono in un raccoglitore tipo computer di bill dei pokemon (dove è possibile scambiarli: se per esempiio ho sconfitto rey, shin e yuda, yuda finisce nel pc di bill, in alcuni posti mi è possibile posare un pg e prendere yuda.
Il party è quindi composto da soli tre maestri, di questi solo il primo partecipa alla battaglia.
Attualmente però se il pg capo gruppo viene sconfitto il gioco va in game over, ho bisogno di poter sotituire a piacimento il pg durante la combat fase e che venga cambiato in automatico se sconfitto e c'è ancora un maestro nel party.
Attualmente ho 27 maestri più il pg iniziale...
e non so se qualcun'altro si aggiungerà!
-
è molto complesso così... lo devo fare per 30 pg...
-
non riesco a capire, mentre sto cambattendo usando ken, come faccio ad attivare un evento per cui toky si sostituisce a ken .
mi è chiaro, far partire l'evento se ken muore, ma se io volessi scambiarlo per scelta?
-
ma come faccio così a ritirare "ken per far entrare toky in combattimento al posto suo?
ecco perchè mi serve un tasto "cambia" durante il combattimento
-
mi spieghi meglio cosa intendi?
-
deve funzionare anche negli incontri casuali
-
allora...
Sono riuscito a modificare il party affinchè non ci siano più di tre PG,
e ho fatto una modifica per cui solo il primo PG del mio party partecipi alla battaglia.
quello di cui ho bisogno è un comando che mi permetta di scambiare i pg del party durante la battle face (tipo i primi pokemon rosso, giallo etc), e che sostituisca automaticamente il PG in avanti quando questo muore...
Perchè?
Ve lo spiego:
Sto creando un RPG ambientato nel mondo post apocalittico di Hokuto no Ken, sto lavorando bene sul database per creare le varie discipline e realizzare un "sistema carta, sasso, forbice" tra le varie discipline maggiori e minori.
la storia è leggermente stravolta e mano mano che i vari maestri vengono sconfitto, questi si aggiungono al party (quelli in eccessco finiscono in un pc tipo quello di BIll per intenderci, dovepossono essere ripresi per sostituirsi agli altri.
Perchè il sitema uno contro tutti? Ma è semplice per un maestro di arti marziali è normale combattere contro più avversari, ma è disonorevole combattere in 2 contro un maestro solo: che figura farebberero Rey e Ken se combattessero insieme contro Raoul?)
Spero riusciate ad aiutarmi!

Battle system stile pokemon giallo
in Richieste scripts RGSS3 (VX-Ace)
Posted
grazie non sapevo come si faceva! Magari a qualcuno può servire!