RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

How to Avoid Bloated Branches

Started by bunnies, September 21, 2010, 08:13:34 PM

0 Members and 2 Guests are viewing this topic.

bunnies

I would like my event to trigger a Choice dialogue.
These are the choices I want to include in my dialogue:
Blue Item
Red Item
Yellow Item
Green Item
Brown Item

I only want each choice to show up if the player has it in his inventory. It will be way too complicated to do it with regular choice dialogues. Is there a script that will do this? (Note: I have a script that allows me to do more than 4 choices.)

modern algebra

Well, the ATS could do it very easily. I don't know if you'd want a script that big though.

bunnies

Yes, i have thats script. I didn't know it could do that so ill give it a try. ( :

modern algebra

All you have to do is have five conditional branches right before checking if you have each item. If so, turn on a corresponding switch. If not, turn it off. Then you can use the \son[] codes in the conditional branches to show those options only when the corresponding switch is ON.