Hi guys,
1- Is it possible to set up an event that counts and records my step total into a variable? If not, am I going to have to use a script that will record my step count into a variable.
2- How how can variable numbers go? Is there a cap (such as 999,999) or do are they endless?
3- Similar to the first, but fight/battle counter? Possible via events?
Thanks in advance for any help guys
Why do you need to count your steps? Tell us what you're trying to do, and we'll give you the best way to do it.
Control Variables > Game Data gives you both step count and battle count, as well as a number of other items. But how/when you use it depends very much on WHY you want it.
For every certain amount of steps, hunger and thirst gauges will deplete. They can be filled via items and inns/cafes, but will display in an actor HUD and will decrease after movement steps. Other factors will also decrease then, but movement is the base.
Is your hud scripted? Will you be adding this logic in scripts, or in events? Are the gauges based on variables (ie - increasing/decreasing a variable)?
HUD is Moghunters Actor HUD. Replacing the MP and TP bars with bars for Hunger and Thirst.
The script will read the variables which will tell it what value to display.
Food, Water and such will increase the Variable (to a max of say 100), but steps and other functions decrease the variable which in turn decreases on the HUD.
The easiest way to count steps beginning with a certain time or position is to store the current steps into a variable at that moment, and when checking the number of steps since then, you'll go and calculate the difference between the now current steps and the number stored at the beginning.
This is nothing but a sequence of control variable commands for storing and calculating - most probably you'll need three variables, one for storing the starting point, one for loading the current steps and one for calculating the difference.