yopi

Warper
Member
Joined
Sep 5, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi, I've been trying to get this to work for a while but I'm pretty confused.

I want an event to happen after the player walks a certain number of steps.

This is what I have so far:
[ISPOILER]1627319724215.png[/ISPOILER]
I've tried this too:
[ISPOILER]1627319768557.png1627319783521.png[/ISPOILER]
The text should appear after they've walked a certain number of steps, but it never appears.

What am I doing wrong?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,682
Reaction score
15,293
First Language
English
Primarily Uses
RMMV
Steps will only be 5 at one point in the game, and never again - after the player has taken exactly 5 steps.

Explain what you're wanting to do, and we'll tell you how to do it. Your triggers and events are a bit messed up, so we'll take it from the beginning.
 

yopi

Warper
Member
Joined
Sep 5, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Steps will only be 5 at one point in the game, and never again - after the player has taken exactly 5 steps.

Explain what you're wanting to do, and we'll tell you how to do it. Your triggers and events are a bit messed up, so we'll take it from the beginning.
Hey Shaz, so what I want is for a text message to popup after the player walks a certain amount of steps. After they read it the event is erased so the text doesn't pop up again, and the game stops counting the players steps.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,682
Reaction score
15,293
First Language
English
Primarily Uses
RMMV
after the player walks a certain amount of steps
From where? The start of the game? Entering a particular map? Interacting with a specific event?
 

yopi

Warper
Member
Joined
Sep 5, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
From where? The start of the game? Entering a particular map? Interacting with a specific event?
When the player goes to a new map
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,888
Reaction score
8,591
First Language
German
Primarily Uses
RMMV
one event on parallel with two commands only:
1) control variable "startcount"= steps
2) erase event

a second event on parallel with the following commands:
1) wait 1 frame
2) control variable "currentstep" = steps
3) control variable "currentstep" -= "startcount" (substracting startcount to see how many steps since entering)
4) conditional branch if "currentstep" > 5 (or however many steps you want)
show text message
erase event
(both command have to be inside the conditional branch)


please note that this will give the message once per entering map. If you want it once total then you would have to switch off instead of erase event
 

yopi

Warper
Member
Joined
Sep 5, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
one event on parallel with two commands only:
1) control variable "startcount"= steps
2) erase event

a second event on parallel with the following commands:
1) wait 1 frame
2) control variable "currentstep" = steps
3) control variable "currentstep" -= "startcount" (substracting startcount to see how many steps since entering)
4) conditional branch if "currentstep" > 5 (or however many steps you want)
show text message
erase event
(both command have to be inside the conditional branch)


please note that this will give the message once per entering map. If you want it once total then you would have to switch off instead of erase event
Thank you! Works perfectly
 

Latest Threads

Latest Posts

Latest Profile Posts

I typically ask this on my normal social media channels, but figured there may be good replies here. Anyone got any good horror movie recommendations? I've seen a lot, but I always love getting suggestions! Bonus points if you know which service it is streaming on (in the US) - bring on the spOoooOky!
 After a few distractions (and my annual rough second week of October), I’m getting back on track with my OMGC project.
 Am I overcomplicating it? Yes. Am I going to tone it down? Almost certainly not.
 At least the dialogue stuff is almost done. I need to do the map itself, and then all that’s left is combat.
 Getting there!
Creating 3D CGs for Cutscenes. :kaosalute:

I keep wanting to post every song I make for the game and have to hold back on that because at this rate, I'll have spoiled all the really good stuff lol..
DerniBorges wrote on TSR's profile.
Is there any way this plugin works with the big character, and the QSprite plugin? Using RTP chars, everything works fine, but the big ones, with QSprite, it's like that in the image, it doesn't reflect right. And there is, in the settings, an option to fix it. Thanks.
bug2.png

Forum statistics

Threads
115,902
Messages
1,093,828
Members
151,148
Latest member
Anonymateds
Top