Problem with Variables

Hi, am new here. I made this account so I can ask this question so sorry if it's in the wrong post or something because I don't know much about this website. In my game you place down signs on a lawn five times and I tried to make it so each time you place down sign it adds one to a variable and after placing down the all the signs the variable should equal 5 and activate another event. But another event wasn't activating and so I checked to see if the variable was being added to every time you place down a sign and it wasn't? So what is the problem here?
Hello is there any way you can take some screenshots of the events, it's difficult to understand what exactly is going wrong without seeing the events themselves
Each time you place an event, you need to increase the variable by 1 (see screenshot).

1726462343195.png


The event that gets triggered must have a condition identical to the one shown in the screenshot

1726462424582.png


Important note: If the event needs to behave in a certain way, keep in mind that it should be set as autorun or parallel. It depends on the mechanics you intend to trigger.
When your game is running in a test, you can press F9 and see the value of all vars and switches. Check if the variable indeed is set to 5.
as ISC mentions, parallel event is required (autorun blocks player movements).
as some use Variable X = 1 (3x) so you basicly set the value to 1.

as mentioned in his screenshot, it ADDS +=1 to it so it increases.
if this does so, and not set the event to "parallel" with minimum 5 wait in between
to avoid lags), than it wont trigger, but by action button or player touch.

but we need more screenshots and how the mechanic exactly work to give
you the best solution to your problem.
In addition to the other great information, one thing I do when making and testing events is to insert a Text command at key spots to check the value of Variables or something to see if what I made is actually working.

\V[1] in a Text Command will display the value of Variable 1 while the Event is running. I also use Text Commands to see if the Event is getting to a particular spot in the Event or to try to determine exactly where something is going wrong.

There might be an easier way to do that, but using Text Commands that I then delete after testing has been very useful for me.

As as previously noted, when you ask a question, it helps to post screenshots of your events.

Welcome to the forum and good luck on your projects!
In addition to the other great information, one thing I do when making and testing events is to insert a Text command at key spots to check the value of Variables or something to see if what I made is actually working.

\V[1] in a Text Command will display the value of Variable 1 while the Event is running. I also use Text Commands to see if the Event is getting to a particular spot in the Event or to try to determine exactly where something is going wrong.

There might be an easier way to do that, but using Text Commands that I then delete after testing has been very useful for me.
I do the exact same thing. 😛 I'm too lazy to press F9, so I make a text command which I have to delete after, which is more work then pressing F9... 😛 But to be fair, when I do that, I run the test 10, maybe 20 times till I get everything right. Then it suddenly is way less afford. 😛
Thanks so much! Turns out it was set to "action button" and you had to interact with it twice for the variable to get added to since I used two pages. I set it to parallel and it works as I wanted it to now.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-variables.171934/