-
GloriousCharge
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Glorious Charge
-
Actions
- Set GC_caster = (Casting unit)
- Hashtable - Save Handle OfGC_caster as 1 of (Key (Casting unit)) in GC_hash
- Unit - Pause GC_caster
- Custom script: call UnitAddAbility( udg_GC_caster, 'Aloc' )
- Selection - Clear selection for (Owner of GC_caster)
- Unit - Turn collision for GC_caster Off
- Animation - Change GC_caster turn speed to 1.00
- Special Effect - Create a special effect attached to the chest of GC_caster using Abilities\Spells\Orc\Voodoo\VoodooAuraTarget.mdl
- Set GC_Shield = (Last created special effect)
- Hashtable - Save Handle OfGC_Shield as 2 of (Key (Casting unit)) in GC_hash
- Unit - Unpause GC_caster
- Unit - Order GC_caster to Move To ((Position of GC_caster) offset by 1000.00 towards (Facing of GC_caster) degrees)
- Sound - Play StampedeCaster1 <gen> at 100.00% volume, attached to GC_caster
- Unit Group - Add GC_caster to GC_casterG
- Trigger - Turn on GCDamage <gen>
- Wait 3.00 seconds
- Set GC_caster = (Load 1 of (Key (Casting unit)) in GC_hash)
- Unit - Order GC_caster to Move To ((Position of GC_caster) offset by 1000.00 towards ((Facing of GC_caster) + 180.00) degrees)
- Sound - Play StampedeCaster1 <gen> at 100.00% volume, attached to GC_caster
- Wait 3.00 seconds
- Trigger - Turn off GCDamage <gen>
- Set GC_caster = (Load 1 of (Key (Casting unit)) in GC_hash)
- Set GC_Shield = (Load 2 of (Key (Casting unit)) in GC_hash)
- Special Effect - Destroy GC_Shield
- Animation - Change GC_caster turn speed to 0.50
- Unit - Turn collision for GC_caster On
- Custom script: call UnitRemoveAbility( udg_GC_caster, 'Aloc' )
- Selection - Add GC_caster to selection for (Owner of GC_caster)
-
Events
-
GCDamage
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in GC_casterG and do (Actions)
-
Loop - Actions
- Set GC_caster = (Load 1 of (Key (Picked unit)) in GC_hash)
-
Unit Group - Pick every unit in (Units within 100.00 of (Position of GC_caster) matching (((Matching unit) belongs to an enemy of (Owner of GC_caster)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause GC_caster to damage (Picked unit), dealing ((Real((Strength of GC_caster (Include bonuses)))) x 15.00) damage of attack type Spells and damage type Force
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
-
Loop - Actions
-
Unit Group - Pick every unit in GC_casterG and do (Actions)
-
Events
Spell idea :
caster charges in his facing direction, then back to his starting position...he deals damage to enemies in his way
what doesnt work :
1. the locust abillity doesnt get removed after the second wait
2. it doesnt seem to be MUI, why ?
I fear I forgot/didnt know about something which needs to be done with hashtables to store the caster variable right and/or the waits are a wrong way to do this spell