Perform Actions in a certain order?

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,373
Reaction score
8,395
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'm thinking of devouring some tutorials for RPG Maker MV. Just all kinds: mapping, spriting, programming, ect. the whole works! :)

Maybe videos, my brother and I can sit down and watch them during one of our weekly business meetings.
Ami
trying to make a Dialogue Script in Indonesian,first. then translate into English.

this is the reason why i'm terrible at this section beside making the enemies :stare:
Made a Mapping Tutorial on Adding Lighting/Shadows using Tileset

Currently working on a playlist of songs that have inspired my work on revamping Battle Castle, and making sure they flow decently from one to the next. I will be posting it whenever I upload my next demo.
This is the first song in the playlist.
Artists out there, is there something RPG maker related you wish your graphics software had but doesn't? (Something like automatically transform a wall tile into a cylindrical tower). I want to give a boost to WecTools, but I'm dry of ideas right now...

Forum statistics

Threads
113,915
Messages
1,078,380
Members
148,024
Latest member
LuneMoon
Top