I am using RPGMaker MV. I'm looking for MZ on another sale but haven't found a reason to upgrade to it yet and have barely started a project to learn things.
I looked over some older threads but copying them didn't seem to get the desired results that I've seen in other games.
I need to properly track item harvesting nodes for players to use an extremely basic crafting system on a deserted-island situation.
Rather than jumping straight to a plugin to solve these issues, as there are multiple systems that I wanted extremely simple versions of to put together a basic game, I spent a few hours combing tutorials for eventing and switches.
I am not opposed to tossing and rewriting this or adding more variables, but the concept of having one variable track the change in the number of steps or variables involved, or the syntax eludes me.
These have all been solved problems for two decades with RPGMaker but I'm having trouble wrapping my head around the concept, and it seems if I solve it I can rework the concept for multiple use cases, not just tracking steps to respawn a rock, fruit or wood.
If I can solve this concept, I need to implement rudimentary day/noon/night cycles, NPC scheduling, character events by tracking switches and crafted items, rudimentary item crafting, and recollection rooms.
Expected:
The game needs to keep tracking player steps on a cycle AND reset the counter to '0' once the harvesting nodes are all respawned for items AND loop back again, so that I can reset the counter to '0' either when the relevant number of steps is reached, or the player goes to an inn and progresses the game by a day. There are a finite number of days that control access to various events along with various items crafted and gifted.
Result:
Either I manage to break the step counter when switching the node respawn variable back to ON after a single test item switches it off, or the item fails to respawn when the test event I created to force a respawn doesn't cause the item to regain it's sparkle animation to be picked up again. I have a test event to display the output of the variables in question and try to understand how the flow of control was working in the background. I can get simple variable checks working, but when I try to combine them I drop the ball.
The problem seems to lie in both the order of operations and number of variables. I've attached screenshots of what I've done so far while I try to learn basic code flowcharting here:
I looked over some older threads but copying them didn't seem to get the desired results that I've seen in other games.
I need to properly track item harvesting nodes for players to use an extremely basic crafting system on a deserted-island situation.
Rather than jumping straight to a plugin to solve these issues, as there are multiple systems that I wanted extremely simple versions of to put together a basic game, I spent a few hours combing tutorials for eventing and switches.
I am not opposed to tossing and rewriting this or adding more variables, but the concept of having one variable track the change in the number of steps or variables involved, or the syntax eludes me.
These have all been solved problems for two decades with RPGMaker but I'm having trouble wrapping my head around the concept, and it seems if I solve it I can rework the concept for multiple use cases, not just tracking steps to respawn a rock, fruit or wood.
If I can solve this concept, I need to implement rudimentary day/noon/night cycles, NPC scheduling, character events by tracking switches and crafted items, rudimentary item crafting, and recollection rooms.
Expected:
The game needs to keep tracking player steps on a cycle AND reset the counter to '0' once the harvesting nodes are all respawned for items AND loop back again, so that I can reset the counter to '0' either when the relevant number of steps is reached, or the player goes to an inn and progresses the game by a day. There are a finite number of days that control access to various events along with various items crafted and gifted.
Result:
Either I manage to break the step counter when switching the node respawn variable back to ON after a single test item switches it off, or the item fails to respawn when the test event I created to force a respawn doesn't cause the item to regain it's sparkle animation to be picked up again. I have a test event to display the output of the variables in question and try to understand how the flow of control was working in the background. I can get simple variable checks working, but when I try to combine them I drop the ball.
The problem seems to lie in both the order of operations and number of variables. I've attached screenshots of what I've done so far while I try to learn basic code flowcharting here: