- Joined
- Nov 21, 2008
- Messages
- 316
The reason i ask if too many if then else's are used in one trigger can is cause a trigger to be disabled is because im getting an error after i decided to combine many of the simple triggers i had in my map. it says script error. all all the triggers work separately.
ex... all triggers which i combined follow this format.
ex... all triggers which i combined follow this format.
-
Taurania Spawns
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Kodo Beast (Tauren)
-
-
Then - Actions
-
Set KodoBeast = (KodoBeast + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Tauren
-
-
Then - Actions
-
Set Tauren = (Tauren + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Sprit Walker
-
-
Then - Actions
-
Set Spritwalker = (Spritwalker + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
-
-
-
-
-
-
-
Centrax Spawns
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Centaur Khan
-
-
Then - Actions
-
Set CentaurKahn = (CentaurKahn + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Centaur Archer
-
-
Then - Actions
-
Set CentaurArcher = (CentaurArcher + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Centaur Sorcerer
-
-
Then - Actions
-
Set CentaurSorcerer = (CentaurSorcerer + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Trained unit)) Equal to Centaur Drudge
-
-
Then - Actions
-
Set CentaurDrudge = (CentaurDrudge + 1)
-
Unit - Remove (Trained unit) from the game
-
-
Else - Actions
-
-
-
-
-
-
-
-
-