I mean at least you tried. always room to learn ig
did you know that there’s something called channels?
In fact, there’s a channel for when the call-to-action’s pressed and a channel for re-opening and closing the popup. Maybe using the same channel in the two would work. Absolutely mindblowing, yes?
Let the channel that broadcasts on the popup closing be “Popup Close”. Make a trigger with a .1 second delay receive on “Popup Close”. Make another trigger be triggered by the first trigger. The second trigger should activate on the channel that opens the popup. The second trigger should deactivate on the channel from the first CTA and the second CTA (you have to use wires for one).
I would set a property when the first option gets clicked, and when the popup gets closed, we use a checker to see if we should reopen the popup or not.
The counter increases and increments when receiving when the first button is pressed. When the popup is closed, we use a wire repeater with a 0.1 second delay, then we check if the property is equal to 0. If it is, we broadcast to reopen the popup.