- Joined
- Dec 5, 2009
- Messages
- 846
Hello i got two triggers here. Im doing a wall spell with rock chunks and when someone attacks a piece of the wall it will blow up just the piece. And the pieces lasts 20 sec. And i want to detect the caster after it casted the spell. how to do that? here's the two triggers.
Trigger 1
Just tell me if you need the JASS trigger the main one
ty for the help
Regards Chewii.
Trigger 1
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Stone Wall
-
-
Actions
-
Unit Group - Remove all units from SW_Save
-
Trigger - Turn on Spell Stonewall Expolsion <gen>
-
Unit Group - Add (Learning Hero) to SW_Save
-
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Stone
-
-
Actions
-
Set SW_Point = (Position of (Dying unit))
-
Set SW_Group = (Units within ((Real((Level of Stone Wall for (Random unit from SW_Group)))) x 100.00) of SW_Point matching (((Matching unit) belongs to an enemy of (Owner of (Random unit from SW_Group))) Equal to True))
-
Special Effect - Create a special effect at SW_Point using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
-
Unit Group - Pick every unit in SW_Group and do (Actions)
-
Loop - Actions
-
Unit - Cause (Random unit from SW_Save) to damage (Picked unit), dealing ((Real((Level of Stone Wall for (Random unit from SW_Save)))) x 100.00) damage of attack type Spells and damage type Normal
-
-
-
Custom script: call RemoveLocation (udg_SW_Point)
-
Custom script: call DestroyGroup (udg_SW_Save)
-
Just tell me if you need the JASS trigger the main one
ty for the help
Regards Chewii.