The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: bunnies on September 21, 2010, 08:13:34 PM

Title: How to Avoid Bloated Branches
Post by: bunnies on September 21, 2010, 08:13:34 PM
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.)
Title: Re: How to Avoid Bloated Branches
Post by: modern algebra on September 21, 2010, 10:36:07 PM
Well, the ATS (http://rmrk.net/index.php/topic,25348.0.html) could do it very easily. I don't know if you'd want a script that big though.
Title: Re: How to Avoid Bloated Branches
Post by: bunnies on September 22, 2010, 08:39:49 PM
Yes, i have thats script. I didn't know it could do that so ill give it a try. ( :
Title: Re: How to Avoid Bloated Branches
Post by: modern algebra on September 22, 2010, 10:09:23 PM
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.