• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Another quick Scripting question

As jim42 said, if you're evening, then you can either use the standard choices event command or /ch for more than 4 options.

If you're scripting, then you can probably use this:

Code:
command=Kernel.pbMessage(_INTL("Make your choice."),[_INTL("Option 1"),_INTL("Option 2"),_INTL("Option 3")],[COLOR=Red]0[/COLOR])
Choosing Option 1 returns the number 0, Option 2 returns the number 1, etc.

The red number is the "choice if cancelled" value (default 0 which means can't cancel). -1 means it will return -1 if cancelled, 1 means it will return 0 ("Option 1"), 2 means it will return 1 ("Option 2"), etc.

There are a couple more parameters for Kernel.pbMessage, which are in order: text skin for the message box, and default command (0=Option 1, 1=Option 2, etc.).
 
If you want nearly every single choice box in the game to be on the left rather than the right, then go to PokemonMessages line 914 and change the red part to something obvious:

Code:
pbPositionNearMsgWindow(cmdwindow,msgwindow,:[COLOR=Red]right[/COLOR])
This doesn't apply to some screens, i.e. the ones that have their own def pbShowCommands like the Bag and the party screen. It's up to you to decide whether it's worth it. I couldn't list which choice boxes would be affected, because there are several ways of calling the scripts which the above change would affect.

Otherwise, there's no way to change its position.
 
If you want nearly every single choice box in the game to be on the left rather than the right, then go to PokemonMessages line 914 and change the red part to something obvious:

Code:
pbPositionNearMsgWindow(cmdwindow,msgwindow,:[COLOR=Red]right[/COLOR])
This doesn't apply to some screens, i.e. the ones that have their own def pbShowCommands like the Bag and the party screen. It's up to you to decide whether it's worth it. I couldn't list which choice boxes would be affected, because there are several ways of calling the scripts which the above change would affect.

Otherwise, there's no way to change its position.

Oh if theres no way to change just this one i can work around it. Thanks again
 
Back
Top