Save-Point
MapSteps - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: MapSteps (/thread-8766.html)



MapSteps - kyonides - 06-21-2023

MapSteps
XP + VX + ACE + MV
Version 0.2.1

by Kyonides

Introduction

All editions of the Maker offer you a way to assign the Party's Steps to a Game Variable. Normally, that's all you ever needed to do right? Happy with a sweat

Thinking What if you actually needed to keep track of the current map's steps only?

Here's where this scriptlet comes to help you achieve your stepping goal! Two Thumbs Up!

For All RGSS Editions
Assign a Game Variable ID to VAR_ID and you're ready to go! Grinning
There is also the LAST_VAR_ID that will help you keep track of your previous map's steps.
And you can also count on the TOTAL_VAR_ID to check if your player has reached the maximum number of steps for a given couple of maps.

The steps will be reset every single time you move to another map! Winking

Code:
module MapSteps
  VAR_ID = 1
  LAST_VAR_ID = 2
  MAX_VAR_ID = 3
end

For MV

The Plugin Manager will let you pick the perfect Game Variables for these tasks.
They are named the Current Map, Last Map and Max Steps Variables.


Terms & Conditions

Free for use in any game! Gamer
That's it! Tongue sticking out


RE: MapSteps - kyonides - 06-22-2023

Quick Update!

I have recently updated BOTH the Script & the Plugin.

It now features 2 New Variables, 1 for the Last Map's Steps and another 1 for the Max Steps.

Both of them have new script calls you can use to set the max steps or reset the current steps or get the max steps.

For RGSS
Code:
$game_variables.set_last_map_steps
$game_variables.reset_map_steps
$game_variables.max_map_steps

For MV
Code:
$gameVariables.set_last_map_steps()
$gameVariables.reset_map_steps()
$gameVariables.max_map_steps()

The parentheses are required because they are actual functions and not variables.