- Joined
- Aug 24, 2014
- Messages
- 22
So I have this trigger. It spawns a spider whenever an egg (a destructible) is destroyed.
I have tried:
Can anyone spot what's wrong with my trigger? Thank you.
EDIT: I found out why. The event "a destructible within region dies" only cares about up to 64 destructible within the region, so if there are more then nothing will happen when those die. So the solution is to just make more smaller regions.
-
Spider Egg Hatch
-
Events
- Destructible - A destructible within Spider Cave 1 <gen> dies
- Destructible - A destructible within Spider Cave 2 <gen> dies
-
Conditions
- (Destructible-type of (Dying destructible)) Equal to Egg Sack
-
Actions
- Game - Display to (All players) the text: !!!
- Set temp_loc = (Position of (Dying destructible))
- Unit - Create 1 Spiderling for Neutral Hostile at temp_loc facing Default building facing degrees
- Custom script: call RemoveLocation(udg_temp_loc)
-
Events
I have tried:
- Changing event to "A destructible within <playable map area> dies": Now no egg spawns spiders.
- Making sure all eggs are the same type of destructible: They are.
Can anyone spot what's wrong with my trigger? Thank you.
EDIT: I found out why. The event "a destructible within region dies" only cares about up to 64 destructible within the region, so if there are more then nothing will happen when those die. So the solution is to just make more smaller regions.
Last edited: