So the title explains it all. I'm trying to spawn a random amount of ore equal to a variable when the player enters the area. I even have the events to handle it set up how I THINK it should work, but its not. The problems I'm currently having is I keep doing small changes to see if anything will work but either A: Nothing spawns, or B: the game freezes after loading the area.
Currently I have 2 events handling the spawning, I tried doing it in 1 event but wasnt working either, so this is just my current setup.
This event sets a random variable and sets the OreSpawns variable equal to 0 (for reuse in the future,) then turns itself off (the second page is just empty.)
This second event is supposed to spawn the events if the orespawns variable is less then the random variable. Then when it is, break the loop and switches to another empty page. (The reason why the wait is at the top is I wasnt sure if running the first and second event at the same time was causing issues trying to set variables at same time but didnt change anything.)
I've been trying a while to get this to work and I'm hoping maybe someone that knows more then me can point out any issues, or maybe It'll just help to get another pair of eyes on it to spot whats wrong.
SIDE NOTE: I'm using galvs event spawner plugin to spawn the ores at random positions in a given region, that's what the script is.
Currently I have 2 events handling the spawning, I tried doing it in 1 event but wasnt working either, so this is just my current setup.
This event sets a random variable and sets the OreSpawns variable equal to 0 (for reuse in the future,) then turns itself off (the second page is just empty.)
This second event is supposed to spawn the events if the orespawns variable is less then the random variable. Then when it is, break the loop and switches to another empty page. (The reason why the wait is at the top is I wasnt sure if running the first and second event at the same time was causing issues trying to set variables at same time but didnt change anything.)
I've been trying a while to get this to work and I'm hoping maybe someone that knows more then me can point out any issues, or maybe It'll just help to get another pair of eyes on it to spot whats wrong.
SIDE NOTE: I'm using galvs event spawner plugin to spawn the ores at random positions in a given region, that's what the script is.