- Joined
- Nov 21, 2008
- Messages
- 316
What do i need to add to my trigger to limit images to 5
-
Juxtapose
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Attacking unit) has buff Juxtapose ) Equal to True
-
-

Actions
-


Set J_Hero = (Attacking unit)
-


Set J_Hero_Loc = (Position of J_Hero)
-


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



If - Conditions
-




(Level of Juxtapose for J_Hero) Equal to 1
-




(Random integer number between 1 and 100) Greater than 97
-
-



Then - Actions
-




Unit - Create 1 J_Dummy for (Owner of J_Hero) at J_Hero_Loc facing Default building facing degrees
-




Set J_Dummy = (Last created unit)
-




Hero - Create Wand of Illusion and give it to J_Dummy
-




Hero - Order J_Dummy to use (Last created item) on J_Hero
-




Unit - Remove J_Dummy from the game
-
-



Else - Actions
-




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





If - Conditions
-






(Level of Juxtapose for J_Hero) Equal to 2
-






(Random integer number between 1 and 100) Greater than 94
-
-





Then - Actions
-






Unit - Create 1 J_Dummy for (Owner of J_Hero) at J_Hero_Loc facing Default building facing degrees
-






Set J_Dummy = (Last created unit)
-






Hero - Create Wand of Illusion and give it to J_Dummy
-






Hero - Order J_Dummy to use (Last created item) on J_Hero
-






Unit - Remove J_Dummy from the game
-
-





Else - Actions
-






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







If - Conditions
-








(Level of Juxtapose for J_Hero) Equal to 3
-








(Random integer number between 1 and 100) Greater than 91
-
-







Then - Actions
-








Unit - Create 1 J_Dummy for (Owner of J_Hero) at J_Hero_Loc facing Default building facing degrees
-








Set J_Dummy = (Last created unit)
-








Hero - Create Wand of Illusion and give it to J_Dummy
-








Hero - Order J_Dummy to use (Last created item) on J_Hero
-








Unit - Remove J_Dummy from the game
-
-







Else - Actions
-








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









If - Conditions
-










(Level of Juxtapose for J_Hero) Equal to 4
-










(Random integer number between 1 and 100) Greater than 88
-
-









Then - Actions
-










Unit - Create 1 J_Dummy for (Owner of J_Hero) at J_Hero_Loc facing Default building facing degrees
-










Set J_Dummy = (Last created unit)
-










Hero - Create Wand of Illusion and give it to J_Dummy
-










Hero - Order J_Dummy to use (Last created item) on J_Hero
-










Unit - Remove J_Dummy from the game
-
-









Else - Actions
-
-
-
-
-
-
-
-


Custom script: call RemoveLocation(udg_J_Hero_Loc)
-
-



