The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page Another quick Scripting question
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old March 26th, 2013 (4:49 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Sorry for another stupid question I am still new to this.

When coding, what do I use to make a choice/options box. Like in an event when you use "Show Choices"? Also, how do I call a common event from a script.

Thanks
__________________
Reply With Quote

Relevant Advertising!

  #2    
Old March 26th, 2013 (10:47 PM).
BlackWaltz3's Avatar
BlackWaltz3 BlackWaltz3 is offline
 
Join Date: Jul 2009
Gender: Male
Posts: 188
Look up textbox commands in the wiki, I believe there is something like /ch that spawns a dialog box for those.
Reply With Quote
  #3    
Old March 27th, 2013 (9:25 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,145
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")],0)
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.).
__________________
Reply With Quote
  #4    
Old March 27th, 2013 (1:45 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Thanks Maruno thats what I was looking for. And how do I change where the choice box shows up? I want it on the left instead of right.
__________________
Reply With Quote
  #5    
Old March 27th, 2013 (5:48 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,145
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,:right)
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.
__________________
Reply With Quote
  #6    
Old March 27th, 2013 (7:15 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Quote:
Originally Posted by Maruno View Post
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,:right)
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
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:07 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.