Okay, so strange question. I'm trying to make a little side game where you can farm. Here's my idea.
You plant the seeds at the farm, and the NPC says they'll take a while to grow and to come back later. You come back after a little while and they're done growing! But how did they finish growing? Well, the event had another page that got activated once a variable "PLAYER STEPS" hit 1500. Every time the player took a step, this variable increased by 1. Of course, after the player harvests their crop, I'll manually reset that variable to 0. This would also let me have multiple fields open up throughout the game.
Is this doable without a plugin? Basically all I want a variable to increase by 1 every time the player takes a step...and on that note, would this slow down the game a lot? I'd imagine not but I figure I'll ask. I can also have it set that the variable only goes up when you enter the farm and it just increases it by step count. That would help ignore the lag.
Let me know if you need more details. I hope this doesn't need a plugin.
You plant the seeds at the farm, and the NPC says they'll take a while to grow and to come back later. You come back after a little while and they're done growing! But how did they finish growing? Well, the event had another page that got activated once a variable "PLAYER STEPS" hit 1500. Every time the player took a step, this variable increased by 1. Of course, after the player harvests their crop, I'll manually reset that variable to 0. This would also let me have multiple fields open up throughout the game.
Is this doable without a plugin? Basically all I want a variable to increase by 1 every time the player takes a step...and on that note, would this slow down the game a lot? I'd imagine not but I figure I'll ask. I can also have it set that the variable only goes up when you enter the farm and it just increases it by step count. That would help ignore the lag.
Let me know if you need more details. I hope this doesn't need a plugin.