I'm trying to make it so if a player opens a chest they get some gold but if they keep opening the chest they will get an item instead.
MZ Need help with treasure chest issue
RPG Maker MZ SupportYou need to use another self switch for this. An example might be:
You could do a version with just 2 event pages using a conditional branch, but I thought that this might be easier to understand.
By the way, it might give you a bit of confidence to have a go at some tutorials. Worthwhile if you have a spare couple of hours!
Good luck!
You could do a version with just 2 event pages using a conditional branch, but I thought that this might be easier to understand.
By the way, it might give you a bit of confidence to have a go at some tutorials. Worthwhile if you have a spare couple of hours!
Good luck!
Just to add: when in event mode, you can right-click the map and choose Quick Event Creation for a selection of preset templates, including "Treasure":
These let you input a few options, e.g. image and loot, then create the event for you.
These let you input a few options, e.g. image and loot, then create the event for you.
You could use switches, self switch or variables for this.
So I would recommend self switch's as it would save making individual ones.
Page 1 *no conditions* Chest closed
Give item
Set Self Switch A on
(after this the chest should be open)
Page 2 *Condition: Self switch A on*
Give 2nd item
Self switch B on
Page 2 *Condition: Self switch B on*
Give 3rd item
Self switch C on
Page 3 *Condition: Self switch C on*
Give 4th item
Self switch D on
So I would recommend self switch's as it would save making individual ones.
Page 1 *no conditions* Chest closed
Give item
Set Self Switch A on
(after this the chest should be open)
Page 2 *Condition: Self switch A on*
Give 2nd item
Self switch B on
Page 2 *Condition: Self switch B on*
Give 3rd item
Self switch C on
Page 3 *Condition: Self switch C on*
Give 4th item
Self switch D on
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-treasure-chest-issue.181711/