VXAce [SOLVED] Need a little help with event settings.

Hello! i want to ask
what settings do i place in a event or on common event when i want:
1) when i press a button something happens
2) if i press the same button again something else happen?

Here is my settings:
111.png


what do i add?
Just put another conditional branch to check if switch is on/off (example from MV, but in ACE will work too)

Just put another conditional branch to check if switch is on/off (example from MV, but in ACE will work too)

sadly it's not working but ty 🙂
-.-

Show me your event
-.-

Show me your event
222.png

Its common event that i call with a map event.
Its common event that i call with a map event.
Reverse that around.
conditional branch switch is on
condition branch button pressed
do stuff
turn switch off
end
else
condition branch button pressed
turn switch on
do other stuff
end
end
Reverse that around.
conditional branch switch is on
condition branch button pressed
do stuff
turn switch off
end
else
condition branch button pressed
turn switch on
do other stuff
end
end
This worked! Thank you!!!

Original thread: https://forums.rpgmakerweb.com/threads/solved-need-a-little-help-with-event-settings.133745/