Counting steps inside a region

I have been wondering if there is a way to count steps while inside a region and have certain events occur once you have walked a specific number of steps inside the region? I also want to turn the step counter at zero if the player leaves the region.
Oh! That's a good idea for a script!

/me follows thread.
I take that answer ,as a no. So as it seems I need a script for something like this....
Yes, either that or an insanely complicated Parellel Process.

Edit: Well, with a few variables, and Get Location Info, it could be done.
Sorry bud, but that's a really good idea.

You could ask someone to make you one in the resource request thread... 🙂   SCRIPT request thread!   rofl thanks, Jackus.
Sorry bud, but that's a really good idea.

You could ask someone to make you one in the resource request thread... 🙂
Do you mean the Script Request Thread?
Uhhhh yeah.  Whoops.  Total potato mode right there.  

Listen to Jackus! He had a full night's sleep no doubt! 😀

Went ahead and edited muh post.
Listen to Jackus! He had a full night's sleep no doubt! 😀
Yes, I did 😛
Okay I will add it to the Script request, since I am planning on having many events occur in a similar way...
In general, Scripts tend to cause less lag than a Parallel Process that does the same thing. (Or maybe i'm making all mine wrong 😛 )
Well Parallel process is for Background music and Screen effects.. on all other cases it makes the game laggy...(or that is my case at least)
I think it would lag more because the event is always updating, whereas the Script is put into the regular game updating. (Probably..)
Below this in the "Game_Party" script:

def increase_steps @steps += 1you could add this:
Code:
if $game_player.region_id == 1      $game_variables[1] +=1    else      $game_variables[1] = 0      end  end
    so variable 1 would get +1 every time you make a step on region 1 and reset when the player leave it. You can assign multiple variables to multiple regions and remove the "else" if you don't want it to reset.
Thanks for helping. 
I will report it closed now. 
I actually requested for a script and it was created. 
Here is the link to the answer: http://forums.rpgmakerweb.com/index.php?/topic/41042-counting-steps-inside-regions/#entry407060
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/counting-steps-inside-a-region.41038/