Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Sephiroth'sSpawn Party Switcher

Status
Not open for further replies.
well, the script does work.
everything is perfect, great script, however, I have no idea how to call the party switch menu with the switcher parameters.
here's what the script says...
# * Syntax :
#
# Open Quick Switcher
# - $scene.open_partyswitcher({<switcher_parameters>})
#
# Open Main Switcher
# - $scene = Scene_Party.new({<switcher_parameters>})
#
# ** Switcher Parameters
# - 'clear' => true or false
# - 'required' => [actor_id, ...]
# - 'restricted' => [actor_id, ...]
# - 'allow_globals' => true or false
# - 'minsize' => n
# - 'maxsize' => n

to call it without any of those parameters, simply have to use $scene = Scene_Party.new
but to include restrictions I have no idea how, i tried the following:
$scene = Scene_Party.new (true, 001, 002, true, 1, 4)
n didnt work.

so in few words:
how can I call the script with the switcher parameters included?
 
Ok. You have to send a hash of the parameters. It's nothing super hard, but may be a challenge for new scripters.

Ok. We will use this basic template to start off with.

Code:
p = {}
$scene = Scene_Party.new(p)

Now, for each type of parameter you wish to pass, you will add a key and value pair into the p {}.

~ To clear party:
'clear' => true
~ To Set Required Actors (For this example, 1 and 7)
'required' => [1, 7]
~ To Set Restricted Actor (For this example, 2 & 3)
'restricted' => [2, 3]
~ Allowing Globals
'allow_globals' => true
~ Minsize of 2
'minsize' => 2
~ Maxsise of 3
'maxsize' => 3

So, lets say you want to clear the party, set required actors and set the min size to 2.

Code:
p = {'clear' => true, 'required' => [1, 7], 'minsize' => 2}
$scene = Scene_Party.new(p)

You do not need to include all parameters, as the defaults are set to either off or no requirement/restriction/etc.

Let me know if you are lost by any of this.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top