- Joined
- May 11, 2012
- Messages
- 2,108
How can i set maxium number of created illusions to 10?
-
[TRIGGER]Illusions
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Level of Iilusionate for (Attacking unit)) Greater than 0
-
-

Actions
-


Set Attacker = (Attacking unit)
-


Set TempPoint = (Position of Attacker)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Attacker is Summoned) Equal to True
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Random integer number between 1 and 100) Less than or equal to (3 x (Level of Iilusionate for Attacker))
-
-





Then - Actions
-






Unit - Create 1 Dummy illusion for (Owner of Attacker) at TempPoint facing Default building facing degrees
-






Unit - Hide (Last created unit)
-






Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-






Unit - Add Illusion (dummy) to (Last created unit)
-






Custom script: call IssueTargetOrderById(GetLastCreatedUnit(), 852274, udg_Attacker)
-
-





Else - Actions
-
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Random integer number between 1 and 100) Less than or equal to (3 x (Level of Iilusionate for Attacker))
-
-





Then - Actions
-






Unit - Create 1 Dummy illusion for (Owner of Attacker) at TempPoint facing Default building facing degrees
-






Unit - Hide (Last created unit)
-






Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-






Unit - Add Illusion (dummy) to (Last created unit)
-






Custom script: call IssueTargetOrderById(GetLastCreatedUnit(), 852274, udg_Attacker)
-
-





Else - Actions
-
-
-
-


Custom script: call RemoveLocation (udg_TempPoint)
-
-

