I want a script if you walk 100 steps, a event spawns in front of you.
it plays a se
the event disappears in 2 seconds
then your steps reset to 0
how do I do this?
You can do all of this via events, using a variable and resetting the variable rather than resetting the party steps. There are other things (like states) that also keep track of steps, so if you keep resetting it to 0, you could be causing issues in other areas.
How do I make it appear infront of the player?
Put the player's location into two variables. Change the values depending on the player's direction. Use Set Event Location to move it where it needs to be.
Did you consider what should happen if the player is facing something that's not passable on the 100th step? What if they're facing into a cliff wall or a tree or onto water? Your event will appear over something it shouldn't appear over.
Didn't consider that
Put won't that put the event at the players location instead of infront?
How do I make the event restart?
It seems to only occur once
Can't tell you what to do if you don't show what you've already done 😉
I can walk 100 steps and it will spawn and disappear in 60 frames and play the se
works like I want.
The problem is, It only happens once
I tried setting the Steps value back to 0 but it didn't work
Where are you setting the value of that variable so that it reaches 100?
and by not reset, you mean it stays at 100?
I mean changing the value to 0
I was asking what you mean it doesn't reset, the value is still 100 after it's run?
Is that by any chance referring to Player Step count?
Yes it is
If the variable is 100 it should set it back to 0
What actually happens? it stays at 100? becomes larger than 100?
and as I've said above, where is the part that sets the steps count so that it reaches 100?
when you walk it adds 1 to the value