Log in

View Full Version : Treasure Chest


HungryforLint
2007-02-05, 12:06 AM
Hey guys, so I started making a new game on RM2K3 and Ive forgotten alot of the coding and switches/variables. I'm trying to get a Treasure Chest to work, I know how to use switches to make a chest open and close. But im wondering if theres an easier way then making a NEW event for EVERY Chest. Is there like a common event I can set up for all treasure chests in general to open. give item. close. and stop. without haveing to make a switch for every chest?
It'd be alot of help. thanks
Alex

Lenny
2007-02-05, 09:29 AM
Yay! It's been ages since I saw this question!

http://zelaron.com/forum/showthread.php?t=26067&highlight=treasure+chest
http://zelaron.com/forum/showthread.php?t=19108&highlight=treasure+chest

Both answer the question.

HungryforLint
2007-02-05, 09:37 PM
AH.. thanks Lenny. So pretty much I have to make a new switch for each treasure chest... woe is me. :[

Noob101
2007-02-06, 06:42 AM
So pretty much I have to make a new switch for each treasure chest...

OR...you could make a chest like this:

1. Make a fork condition and set it to:
Event "this Event" - "Down" Face Dir
Do not check else case.

** INSIDE THE FORK CONDITION **
2. Play Sound Effect (optional) - Open Chest
3. Set Message Style (optional) - Normal, Down, Nothing checked
(* Below can be anything you wish. Whatever you want to be found in the
chest *)
4. Change Gold Held - Increase - 25gp
5. Show Message - You found 25gp.
** END OF THE FORK CONDITION **

6. Move event: this event, face left

(thanks to JDBoone)