HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why won't this work anymore?

07-21-2004, 02:09 AM#1
Reaprojects
I got this trigger here, imitating lightswitches. All worked fine in 1.14, but it's been broken since 1.15. 1.16 didn't help either. What's wrong here?

Code:
 Lightswitches
 	Events
 		Destructible - Light Switch 0064 <gen> dies
 		Destructible - Light Switch 0070 <gen> dies
 		Destructible - Light Switch 0102 <gen> dies
 		Destructible - Light Switch 0103 <gen> dies
 	Conditions
 	Actions
 		If (All Conditions are True) then do (Then Actions) else do (Else Actions)
 			If - Conditions
 			    ((Killing unit) is A Hero) Equal to True
 			Then - Actions
 			    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
 				    If - Conditions
 					    Lights Equal to True
 				    Then - Actions
 					    Set Lights = False
 					    Game - Set the time of day to 24.00
 					    Sound - Use the Cityscape nighttime ambient theme
 				    Else - Actions
 					    Set Lights = True
 					    Game - Set the time of day to 12.00
 					    Sound - Use the Cityscape daytime ambient theme
 			Else - Actions
 				Do nothing
 		Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Hide birth animation
 
07-21-2004, 02:14 AM#2
Shimrra
I'm not sure, but I've noticed that sometimes If\Than\Elses within If\Than\Elses will cause problems. Also, depending on the map, day and night might be set at different times then those. You can check in the Advanced Options, I belive, to see if it is so.
07-21-2004, 02:37 AM#3
Reaprojects
But... it worked fine in 1.14. And if that's true that nested conditionals suddenly cause troubles... then halleluja. Teh shitz0rz.
07-21-2004, 03:41 AM#4
CynicalYouth
What doesnt work, does the trigger not fire, does the time of day not change? Is you if statement comming up false when it should be true? You need to let us know a little bit about whats not working