Sverkerman
Hosted Project: BoW
- Joined
- Feb 28, 2010
- Messages
- 1,325
-
StoneKill Loop
-

Events
-


Time - Every 0.05 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in RockThrowGroup and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Load (Key rockloops) of (Key (Picked unit)) from RockThrowHashtable) Greater than 0
-
-





Then - Actions
-






Set Temp_Point[1337] = (Position of (Load (Key rockthrowdummy) of (Key (Picked unit)) in RockThrowHashtable))
-






Set Temp_UnitGrp[1337] = (Units within 100.00 of Temp_Point[1337])
-






Set RockThrowCaster = (Picked unit)
-






Unit Group - Pick every unit in Temp_UnitGrp[1337] and do (Actions)
-







Loop - Actions
-








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









If - Conditions
-










((Picked unit) belongs to an enemy of (Owner of RockThrowCaster)) Equal to True
-
-









Then - Actions
-










Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
-










Special Effect - Destroy (Last created special effect)
-










Unit - Kill (Picked unit)
-
-









Else - Actions
-
-
-
-






Custom script: call DestroyGroup(udg_Temp_UnitGrp[1337])
-






Set Temp_Point[1338] = (Temp_Point[1337] offset by 40.00 towards (Facing of (Load (Key rockthrowdummy) of (Key (Picked unit)) in RockThrowHashtable)) degrees)
-






Unit - Move (Load (Key rockthrowdummy) of (Key (Picked unit)) in RockThrowHashtable) instantly to Temp_Point[1338]
-






Custom script: call RemoveLocation(udg_Temp_Point[1337])
-






Custom script: call RemoveLocation(udg_Temp_Point[1338])
-






Hashtable - Save ((Load (Key rockloops) of (Key (Picked unit)) from RockThrowHashtable) - 1) as (Key rockloops) of (Key (Picked unit)) in RockThrowHashtable
-
-





Else - Actions
-






Set Temp_Point[1339] = (Position of (Load (Key rockthrowdummy) of (Key (Picked unit)) in RockThrowHashtable))
-






Special Effect - Create a special effect at Temp_Point[1339] using Abilities\Spells\Human\StormBolt\StormBoltMissile.mdl
-






Special Effect - Destroy (Last created special effect)
-






Special Effect - Create a special effect at Temp_Point[1339] using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
-






Special Effect - Destroy (Last created special effect)
-






Special Effect - Create a special effect at Temp_Point[1339] using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
-






Special Effect - Destroy (Last created special effect)
-






Custom script: call RemoveLocation(udg_Temp_Point[1339])
-






Unit - Remove (Load (Key rockthrowdummy) of (Key (Picked unit)) in RockThrowHashtable) from the game
-






Unit Group - Remove (Picked unit) from RockThrowGroup
-






Hashtable - Clear all child hashtables of child (Key (Picked unit)) in RockThrowHashtable
-
-
-
-
-


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



If - Conditions
-




(Number of units in RockThrowGroup) Equal to 0
-
-



Then - Actions
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
+4 rep to whoever helps me solve this.
Last edited:









