(Looks like someone else posted while I took forerver to write this lol, Bashar's explanation is shorter.)
I have a solution to what your trying to make. It uses to event's...
Here's how to fix it...
Make A Variable Called Chest Open(1)/Close(2)
Or whatever you want to name it.
Have 4 event pages for your treasure.
First page leave blank.
Second Page=Is when treasure chest is open. Require in the conditions of the page for the variable "Chest Open(1)/Close(2)" to equal 1 or greater.
Obtain whatever item you get and then change the variable "Chest Open(1)/Close(2)" to equal 3.
Third Page=Is when treasure chest is closed. Require in the conditions of the page for the variable "Chest Open(1)/Close(2)" to equal 2 or greater.
Say the chest is locked or say nothing. Or whatever.
Fourth Page=Is when you've collected the item and the treasure chest no longer opens or re-opens. Require in the conditions of the page for the variable "Chest Open(1)/Close(2)" to equal 3 or greater.
Say the chest is empty or anything.
That's the treasure chest event.
Now make another event with no graphic next to the treasure chest.
Make 3 pages for that event.
First Page=Make this page a parallel process...Add a change variable for "Chest Open(1)/Close(2)" and set it to 1. Add a wait frame of 600. That will equal 10 seconds.
Change the variable "Chest Open(1)/Close(2)" to 2.
Second Page=Make this page a parallel process....Add a wait 300 frames for 5 seconds. Change the variable "Chest Open(1)/Close(2) to 1.
Third Page=This page is for when the chest is open and will remain open. Require in the conditions of the page for the variable "Chest Open(1)/Close(2)" to equal 3 or greater. That way the chest will not close again and restart.
Sorry if this explanation is too long. Heh