custom ability help

SouL-Laka

New Member
Reaction score
2
i want to give my water elemental hero the bladestorm ability
i know it doesnt have the animation for it
so it just keeps attacking but the bladestorm abilty doesnt damage
anyways i think it would be ok if it was just like turning like facing different angles everyy second or w.e you know so it looks like its spinning
and can some1 show me what the trigger would look like
=D
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
you gotta change the animation the spell makes in the object editor for spells, its like called Animation Art to like attack or somthing
 

Flare

Stops copies me!
Reaction score
662
ahm, try this.

Code:
E
Unit starts the effect of an ability
C
Ability being cast equal to Bladestorm (waterelemental)
A
Set BladestormCaster equal to Triggering Unit
Turn on Bladestorm Spin <gen>
Start BladestormTimer as a one-shot timer that will expire in 2 seconds

now, for the spin part (use Make unit face angle, i think thats wat its called anyway)

Code:
E
Every 0.05 seconds
C
-
A
Make BladestormCaster face (Facing of BladestormCaster + 360 X Elapsed time for BladestormTimer) degrees

thatll give you 360 spin every sec :p
now for the deactivate

Code:
E
BladestormTimer expires
C
-
A
Turn off Bladestorm Spin <gen>

that SHOULD work, havent actually tested it myself yet, but give it a go and hope it works ^^
 

Grymlax

Probably not around
Reaction score
138
okay I've think i've solved the problem. at least if you are okay with it only being gui. there will be an attachment in the bottom of this post.
First create an ordinarie unit with the same model file as your hero and give it the locust and the invulnerable abilities.
then create 4 variables 2 unit variables and 2 point variables. then use these triggers.
Code:
cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to waterblade 
    Actions
        Set caster = (Triggering unit)
        Set casterpos = (Position of caster)
        Animation - Change caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
        Unit - Create 1 Water  (Level 1) for (Owner of (Triggering unit)) at casterpos facing (Facing of caster) degrees
        Set spinner = (Last created unit)
        Trigger - Turn on spin <gen>
        [COLOR="Red"]Wait 7.00 seconds[/COLOR] [COLOR="blue"](change this to the amount of time your ability is active)[/COLOR]
        Trigger - Turn off spin <gen>
        Unit - Remove spinner from the game
        Animation - Change caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
        Custom script:   call RemoveLocation (udg_casterpos)

(this one will be initially off)
Code:
spin
    Events
        Time - Every 0.02 seconds of game time
    Conditions
    Actions
        Set spinnerpos = (Position of caster)
        Unit - Turn collision for spinner Off
        Unit - Remove spinner from the game
        Unit - Create 1 Water  (Level 1) for (Owner of caster) at spinnerpos facing ((Facing of spinner) + 30.00) degrees
        Set spinner = (Last created unit)
        Custom script:   call RemoveLocation (udg_spinnerpos)
 

Attachments

  • waterbladestorm.w3x
    17.9 KB · Views: 62
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