So I'm trying to make a large part of my project based around how the player spends their time, and make various events trigger after a certain number of steps (e.g. after the player enters a building, x steps later security guard npcs will be alerted to their presence and the building will go into lockdown). As a understand it, the simplest way to achieve what I want would be to have 1 event on a map autorun a script counting steps, then after x steps it will return true for a conditional branch, allowing me to put any other script (such as changing switches) within that branch so that after x steps it will trigger.
So for example a script like
pbCountSteps(100)
that tracks the number of steps the player takes then returns true once they've taken that number of steps.
Does anyone know how I would go about having a script track these steps and return true after a certain number of steps? I've tried looking into the safari zone code but i really don't understand which part of it tracks the steps.
So for example a script like
pbCountSteps(100)
that tracks the number of steps the player takes then returns true once they've taken that number of steps.
Does anyone know how I would go about having a script track these steps and return true after a certain number of steps? I've tried looking into the safari zone code but i really don't understand which part of it tracks the steps.