Need a little help with event settings.

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
37
First Language
Greek
Primarily Uses
RMVXA
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?
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
974
Reaction score
567
First Language
Poland
Primarily Uses
RMMV
Just put another conditional branch to check if switch is on/off (example from MV, but in ACE will work too)

 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
974
Reaction score
567
First Language
Poland
Primarily Uses
RMMV
-.-

Show me your event
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,910
Reaction score
643
First Language
English
Primarily Uses
RMVXA
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
 
Last edited:

RedRose190

Anna/Misty190
Veteran
Joined
Oct 9, 2018
Messages
95
Reaction score
37
First Language
Greek
Primarily Uses
RMVXA
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!!!
 

Latest Threads

Latest Posts

Latest Profile Posts

I wrote RPGMakerMZ JavaScript reference in Japanese.
But I think you'll be able to read it through the translator.

back in April of 2019, I watched my friend's art stream on twitch. that was when I got inspired to draw most of the assets for my game. it's been a LONG journey since, but totally worth it.
RPG MZ multiplayer in development
Square-Enix, why you didn't released the classic Dragon Quests on Steam yet? :kaocry:
This is by far my most favorite boss monster I've made, its name is Gosck

Forum statistics

Threads
109,139
Messages
1,042,484
Members
141,648
Latest member
Tronfol
Top