laurellrose

Warper
Member
Joined
Nov 21, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMXP
Hi, so I creating a simple room escape game, and I'm a bit stuck. I basically want the player to perform actions in a certain order, and if they don't it won't trigger the next part of the event. On my event pages I want to perform "turn hot tap" and then "turn cold tap," but not the other way round. I feel like there must be a simple way of doing it that I'm just missing (fairly new to the program.) I hope this makes some sense, if not I'll try and clarify what I mean more.

Thanks :)
 

Attachments

  • help1.png
    help1.png
    26.3 KB · Views: 5
  • help2.png
    help2.png
    24 KB · Views: 5

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,918
Reaction score
8,603
First Language
German
Primarily Uses
RMMV
variables counting up

you assign each step to a number (and there can be much more than two steps as long as each step has a different number).
on each action, you check the current number. if the number means that the current action is the correct one in the sequence, you count the variable up. if there is a different number, you set the variable to zero.

turn hot tap counts up if the number is zero
turn cold tap counts up if the number is one
...
step 37 counts up if the number is 36
 

laurellrose

Warper
Member
Joined
Nov 21, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMXP
variables counting up

you assign each step to a number (and there can be much more than two steps as long as each step has a different number).
on each action, you check the current number. if the number means that the current action is the correct one in the sequence, you count the variable up. if there is a different number, you set the variable to zero.

turn hot tap counts up if the number is zero
turn cold tap counts up if the number is one
...
step 37 counts up if the number is 36

Got it working, thank you!
 

Latest Threads

Latest Posts

Latest Profile Posts

I just don't know why, but it's funny.
5.gif
Ugh. The one time I forget to save every hour or so is also the day my computer crashes. That's life!
Even though I spent 100's of dollars on my game already. I think I might just have to give it away for free. Since I haven't heard back from people if I could use some of their graphics. Even from a global mod here. Maybe I can make a donation thing.
you know, some days you get resentful that game dev is even considered a "fun job" and other days it's like, welp, time to roll up my sleeves and code these molotov cocktails
If you suck at playing trumpets, that is probably why.

Forum statistics

Threads
115,964
Messages
1,094,448
Members
151,237
Latest member
knna
Top