Show Pictures for Yes/No Choices - RESOLVED!

Started by Hadeki, August 03, 2010, 10:54:34 pm

Previous topic - Next topic

Hadeki

August 03, 2010, 10:54:34 pm Last Edit: August 04, 2010, 06:22:39 am by Hadeki
Okay, well... I want to display a picture for "Yes" and a different picture for "No" when selecting a choice in RPG Maker XP.
So far I have a parallel common event activated by a switch that changes the picture when the player presses the down arrow key (which works perfectly). I just can't seem to make the up arrow key work...

Spoiler: ShowHide


So when the yes choice is selected, then the switch "YES" in on; and when the no choice is selected, then the switch "NO" is on.
So when "Yes" is selected and the player presses down, then the "YES" switch turns off and the "NO" switch turns on (and then "No" is selected). Does that make sense? So I can make it work when the player presses down (no matter which choice is selected), but not when the player presses up.

nathmatt

Y don't you just use the conditions if input up and if input down ?
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


Hadeki

August 04, 2010, 05:12:38 am #2 Last Edit: August 04, 2010, 06:24:18 am by Blizzard
Like a conditional branch based on a script? I don't exactly know how to do that...

EDIT: Oooooooooooooooh... I just figured it out. Thank you, nathmatt.

Blizzard

Please don't doublepost. Use the Modify button instead.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.