@Robro33 that wouldn't be a clean solution though to flip a switch
when wrong, this is best based on a variable as this can control
when open and wrong + if the chest is random, this would not work.
@User1978 this can best be done by 2 variables, but mostly like
a scriptcall as well to reset the self switches back OFF.
1) random variable (0,1,2) this one is chose from when entering the room,
or run based on another selfswitch (if running on parallel) as this will switch
back to a blank page.
1 variable = wrong picking.
the parallel you should run is simple of 2 pages.
page 1: (parallel)
random variable x = 0...1
selfswitch A = ON
page 2: (action buton)
blank
chests can be a bit trickier based of a fixed solution so you need to make
multiple pages.
page 1: (action button, required random variable = 0)
page 2: same as above, but random variable = 1
page 3: same as 2, but random variable = 2
page 4: selfswitch A = on
so on page 1:
increase variable y = +1 (wrong answer)
text: nothing in here (change what you want to do)
selfswitch A = ON
page 2 can be the same if wrong answer else X is found
page 3 the same as 2, depends on the answer.
if page 2 is correct on chest 1, chest 2 and 3 need to be false.
opening a chest is same as create a chest, but you can adjust it the way
on the correct/wrong answers.
than use the scriptcall if variable wrong answers = 2
let key = [this._mapId, [2,3,4,x], "A"]
$gameSelfSwitches.setValue(key, false)
the array [2,3,4,x] are the event Id's you want to reset.
you can also do each seperately as well, but this is the easiest and best
way in my opinion, so you cannot go wrong.