Is there a way to have a button pressed on another card, then have it checked by another button on a different card?
For instance, if I have a card/room called Pieces, and two other cards that are Puzzle Rooms, I want a button in each puzzle room to be pressed in order for the button in Pieces to do something. To make it sound simpler, I want the player to steal treasures from both rooms, before going into final room to leave.
This is what I have, however it keeps believing that the buttons are not being pressed.
on click do if puzzleroom.button1.pressed and puzzpleroom2.button2.pressed dd.open[deck] dd.say["You successfully stolen all treasures!"] dd.close[] go["end"] else alert["You must collect all treasures to leave!."] end end
And then for my puzzle rooms buttons, I have the same thing:
on click do pressed:true end
Am I doing it right? Forgive me if this is silly, I am still trying to wrap my around this...