- Joined
- Nov 17, 2016
- Messages
- 4
I've read a few guides about making MUI spells using hashtables, index, array, etc. but it seems i just can't understand how this thing works. I kinda understood that I should store PoundCount in a hashtable to avoid conflicts between different units casting the same spell. Any help would be greatly appreciated.
-
Ground Pound Cast
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Ground Pound
-
-
Actions
-
Set Hero = (Triggering unit)
-
Trigger - Turn on Ground Pound Effect <gen>
-
-
-
Ground Pound Effect
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PoundCount Less than or equal to 3
-
-
Then - Actions
-
Set PoundCount = (PoundCount + 1)
-
Set Pound = (Units within 300.00 of (Position of Hero))
-
Special Effect - Create a special effect attached to the origin of Hero using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
-
Camera - Shake the camera for (Owner of Hero) with magnitude 1.00
-
Animation - Play Hero's spell animation
-
Unit Group - Pick every unit in Pound and do (Actions)
-
Loop - Actions
-
If (((Picked unit) belongs to an enemy of (Owner of Hero)) Equal to True) then do (Unit - Cause Hero to damage (Picked unit), dealing 20.00 damage of attack type Spells and damage type Normal) else do (Do nothing)
-
-
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
Camera - Stop swaying/shaking the camera for (Owner of Hero)
-
Set PoundCount = 0
-
Custom script: call DestroyGroup (udg_Pound)
-
-
-
-