Spell Green Strike

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.

greenstrikeeg1.jpg

greenstrikeslamaq2.jpg


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

  • Green Strike.w3x
    17.7 KB · Views: 586

waaaks!

Zinctified
Reaction score
255
JASS:
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)

i think this would leak...
even though you would destroy it...theres some reasons it will leak...like the special effect will attach to the unit forever....

i suggest using item abilities with attachments and remove the ability after use....it is way more better than special effects

anyways...nice spell...:p
ill give +rep for the effort
 

U are a noob

Mega Super Ultra Cool Member
Reaction score
152
JASS:
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)

i think this would leak...
even though you would destroy it...theres some reasons it will leak...like the special effect will attach to the unit forever....

Wrong. It just seams like that because the effects has a long death time but it does get removed.
 

Tinki3

Special Member
Reaction score
418
Cool spell, though there are some things that you'll need to fix before approval.

First off, at the start of the "Green Strike" trigger, "GS_Caster_Loc" needs to be removed before it is set again (it's used again in the "Act" trig).

Simply drag the "Custom script: call RemoveLocation (udg_GS_Caster_Loc)" line from the bottom of that trigger,
and place it under the "Set GS_Check = False" line.

Do the same for "GS_Target_Loc", but instead place it as the last action of that trigger.

The "Trigger - Turn off Green Strike Act <gen>" line is not needed in the first trigger because the "Act" trigger already turns itself off.

As for the spell's looks, sometimes the caster would dash toward the target, and at the end would be slightly offset from the target.
(Looks strange when the caster's slashing away at thin air).

We can at least make this look a little better by making the caster face the target after the "Wait until" line.

Also, one last thing - the caster's animation speed was not reset to 100% after the target has been damaged.

Fixed trigger:
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 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
        Unit - Unhide GS_Caster
        Unit - Turn collision for GS_Caster On
        Animation - Change GS_Caster's animation speed to 25.00% of its original speed
        Animation - Play GS_Caster's slam animation
        Unit - Make GS_Caster face GS_Target over 0.00 seconds
        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)
 

Sim

Forum Administrator
Staff member
Reaction score
534
Naminator, you currently have 3 or 4 spells awaiting approval.

In the future please put them all in a spellpack before submitting. Thanks :)
 

mightylink

New Member
Reaction score
1
cool effect but the slow motion really ruins the mood :S theres no time control in online games lol
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top