Naminator
Coming Back To Life
- Reaction score
- 76
Here a spell call Green Strike. Instruction how to implement inside.
It's all in GUI
Green Strike
The hero disolve into his components and charge the enemy with great speed. Dealing lethal damage.
It's all in GUI
Green Strike
The hero disolve into his components and charge the enemy with great speed. Dealing lethal damage.


Code:
Green Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Green Strike
Actions
Set GS_Caster = (Triggering unit)
Set GS_Caster_Loc = (Position of GS_Caster)
Set GS_Target = (Target unit of ability being cast)
Set GS_Target_Loc = (Position of GS_Target)
Set GS_Angle = (Angle from GS_Caster_Loc to GS_Target_Loc)
Set GS_Distance = (Distance between GS_Caster_Loc and GS_Target_Loc)
Set GS_Check = False
Custom script: call RemoveLocation (udg_GS_Caster_Loc)
Unit - Make GS_Caster face GS_Target over 0.00 seconds
Unit - Make GS_Caster Invulnerable
Unit - Pause GS_Caster
Unit - Pause GS_Target
Unit - Hide GS_Caster
Unit - Turn collision for GS_Caster Off
Trigger - Turn on Green Strike Act <gen>
Wait until (GS_Check Equal to True), checking every 0.10 seconds
Trigger - Turn off Green Strike Act <gen>
Unit - Unhide GS_Caster
Unit - Turn collision for GS_Caster On
Unit - Make GS_Caster face GS_Target over 0.00 seconds
Animation - Change GS_Caster's animation speed to 25.00% of its original speed
Animation - Play GS_Caster's slam animation
Wait 2.75 seconds
Animation - Change GS_Caster's animation speed to 100.00% of its original speed
Unit - Make GS_Caster Vulnerable
Unit - Unpause GS_Caster
Unit - Unpause GS_Target
Unit - Cause GS_Caster to damage GS_Target, dealing (80.00 x (Real((Level of Green Strike for GS_Caster)))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of GS_Target using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the chest of GS_Target using Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_GS_Target_Loc)
Code:
Green Strike Act
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set GS_Caster_Loc = (Position of GS_Caster)
Set GS_Offset = (GS_Caster_Loc offset by 50.00 towards GS_Angle degrees)
Special Effect - Create a special effect at GS_Caster_Loc using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move GS_Caster instantly to GS_Offset, facing GS_Angle degrees
Set GS_Distance = (Distance between GS_Caster_Loc and GS_Target_Loc)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
GS_Distance Less than or equal to 150.00
Then - Actions
Trigger - Turn off (This trigger)
Set GS_Check = True
Else - Actions
Custom script: call RemoveLocation (udg_GS_Caster_Loc)
Custom script: call RemoveLocation (udg_GS_Offset)
Attachments
-
17.7 KB Views: 545