Hey all, I've been having trouble with the random number generator [screenshot below titled Random Roll] and the events that should trigger from it [one event screenshotted below titled Forest Rot].
Long story short, when the hero moves to this map, the Random Roll event should trigger and pick a number between 1 and 100. This part seems to work well when I tested the output with a textbox that gave the \v output. However, I have a few items that should spawn when the roll is within a certain range (for example, the Forest Rot should only spawn when the roll is 1-10).
It works well enough the first time the Forest Rot spawns in, but even after the hero leaves the map and comes back, the random number from the variable might be above 10 (which I know from the \v output in another event), yet there is another Forest Rot there. The Forest Rot can be harvested again, and when the hero leaves and comes back, the Forest Rot persists even though the variable is above 10.
I've tried just about everything I could think of and even did about 2 hours of research online to no avail. Can anyone tell me what I am doing wrong? Please and thank you.
Long story short, when the hero moves to this map, the Random Roll event should trigger and pick a number between 1 and 100. This part seems to work well when I tested the output with a textbox that gave the \v output. However, I have a few items that should spawn when the roll is within a certain range (for example, the Forest Rot should only spawn when the roll is 1-10).
It works well enough the first time the Forest Rot spawns in, but even after the hero leaves the map and comes back, the random number from the variable might be above 10 (which I know from the \v output in another event), yet there is another Forest Rot there. The Forest Rot can be harvested again, and when the hero leaves and comes back, the Forest Rot persists even though the variable is above 10.
I've tried just about everything I could think of and even did about 2 hours of research online to no avail. Can anyone tell me what I am doing wrong? Please and thank you.