Help with event?

Have map with 3 treasure chest for sell, its set up with 3 pages each treasure event, when you touch anyone of the events-they all disappear and you get what you touched. Question is- how to set the event pages up so you'll need certain amount of gold to get the treasure, not enough gold then no treasure. Here's setup so far--

1page. has picture, set to player touch, has a control switch for the other two chest set to on(so they'll turn off when you touch event)a SE effect, a action for the certain treasure, a control self switch.

2nd page. control self switch is checked, no picture, set to player touch

3Rd page. A switch checked (one on top)for this treasure, no picture, set to player touch.

Any help thank you
You can put in a conditional branch at the start of the first page, and set the condition to the amount of gold you want the player to have. That way the event won't run unless they have the gold. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-with-event.39073/