I'm trying to populate a map with events that will trigger a battle when in contact with player (imagine bats flying around in the map)
These events (bats) will appear at random
Page 1: (no condition) / No sprite / parallel process
random variable 1..10.
if variable > 7: self.A = On
Page 2: self.A / bat sprite / touch event
trigger battle
if win: self.B = ON / self.A = OFF
Page 3: self.B / No sprite / parallel process
wait for some time
self.B + OFF
Thus returning to the beginning and start overrandom variable 1..10.
if variable > 7: self.A = On
Page 2: self.A / bat sprite / touch event
trigger battle
if win: self.B = ON / self.A = OFF
Page 3: self.B / No sprite / parallel process
wait for some time
self.B + OFF
What I'm trying to do is for the even(bat) to disappear at random as well.
Basically akin to have a event touch & parallel process on the same event.
And because that is to have multiple of these events in the map, to have one background event to switch off 'switches' is counter intuitive.
So, is that a way around it? or I would have to have hundreds of variables (one for each event) to make it work?