I have been struggling for hours with one trigger which is mysteriously not working all the time.
Basically the trigger is supposed to randomly spawn spiders when the player attacks egg sack or web destructibles. And it gives a warning the first time the player does this.
After noticing it didn't seem to work when it should, I added a line to give me a message whenever it procced. Sure enough, it wasn't being triggered all the times it was supposed to be.
Sometimes this happens and sometimes it doesn't. I've done all kinds of tests to figure out why. As far as I can tell now, it only works on destructibles in certain parts of the map.
Does anyone know why that would be?
Basically the trigger is supposed to randomly spawn spiders when the player attacks egg sack or web destructibles. And it gives a warning the first time the player does this.
After noticing it didn't seem to work when it should, I added a line to give me a message whenever it procced. Sure enough, it wasn't being triggered all the times it was supposed to be.
-
Spawn Spiders from Eggs and Web
-
Events
-
Destructible - A destructible within (Playable map area) dies
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Destructible-type of (Dying destructible)) Equal to Web
-
(Destructible-type of (Dying destructible)) Equal to Web (Less Space Version)
-
(Destructible-type of (Dying destructible)) Equal to Egg Sack
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
WarnedAlready Equal to False
-
-
Then - Actions
-
Cinematic - Send transmission to (All players) from Galgarath named Galgarath: Play No sound and display Careful! There coul.... Modify duration: Set to 4.00 seconds and Don't wait
-
Set WarnedAlready = True
-
-
Else - Actions
-
-
Set TempInt = (Random integer number between 1 and 16)
-
Game - Display to (All players) the text: (String(TempInt))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInt Less than or equal to 2
-
-
Then - Actions
-
Set TempPoint = (Position of (Dying destructible))
-
Unit - Create 1 Cave Spiderling for Player 12 (Brown) at TempPoint facing Default building facing degrees
-
Custom script: call RemoveLocation (udg_TempPoint)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInt Equal to 3
-
-
Then - Actions
-
Set TempPoint = (Position of (Dying destructible))
-
Unit - Create 1 Ebon Cave Spider for Player 12 (Brown) at TempPoint facing Default building facing degrees
-
Custom script: call RemoveLocation (udg_TempPoint)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInt Equal to 4
-
-
Then - Actions
-
Set TempPoint = (Position of (Dying destructible))
-
Unit - Create 1 Emerald Spellslayer for Player 12 (Brown) at TempPoint facing Default building facing degrees
-
Custom script: call RemoveLocation (udg_TempPoint)
-
-
Else - Actions
-
-
-
-
-
-
-
Sometimes this happens and sometimes it doesn't. I've done all kinds of tests to figure out why. As far as I can tell now, it only works on destructibles in certain parts of the map.
Does anyone know why that would be?