The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Yawgmothsbud on March 05, 2007, 06:30:02 PM

Title: [RESOLVED] Locked Treasure Chests...help
Post by: Yawgmothsbud on March 05, 2007, 06:30:02 PM
I got my treasure chest to work, but I want it to require a key. However, when I try to add a conditional branch, the "open" graphic activates whether the player has the key or not. Note it does NOT give the money and "open" message unless the key is possessed. Just the graphic changes.

Any suggestions? I've tried using a loacal switch and regular switch, and neither can control the graphic  :-[

EDIT: Played around with the move event function and that got it working, but now I have a new problem: How can I make the graphic of the open chest remain AFTER the event erases itself (I want the empty chest, but not the event that gives 500 gold!)

EDIT: Wow, I should really stop working on a problem after I posted looking for help...again, figured it out myself. Instead of using the "erase event" command, I tried "end event processing" and that seems to have done the trick  ;D

Sorry for the spam :police:
Title: Re: Locked Treasure Chests...help
Post by: Irock on March 05, 2007, 06:49:28 PM
To make the graphic remain use a switch. Activate the switch at the end of the event inside the conditional branch. Make a new page with the graphic you want it to stay at. Then make the switch under precondition.
Title: Re: Locked Treasure Chests...help
Post by: :) on March 05, 2007, 11:14:31 PM
it isn't spam. Any question is welcomed.
well you got it right? so add [RESOLVED] to your topic title, but leave topic open incase others have questions/comments on what happened.