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.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      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