• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Abilty/trigger help

Status
Not open for further replies.
Level 3
Joined
Jun 27, 2008
Messages
34
ok idk if i should us an abilty or trigger for this....

I need it so when this unit casts this ability on another unit it takes it (and the unit its cast on) to the battle area on the map.

I have what i might use as a trigger for it, but it only moves the casting unit and not also the unit being casted on:

  • Summon
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Charge!
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of Battle side 1 <gen>)

can anyone help?

i will +rep
 
Is this what you're looking for? TempPoint is a variable of the type Point, by the way.

  • Summon
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Charge!
    • Actions
      • Set TempPoint = (Center of (Battle side 1 <gen>))
      • Unit - Move (Triggering unit) instantly to TempPoint
      • Unit - Move (Target unit of ability being cast) instantly to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Is this what you're looking for? TempPoint is a variable of the type Point, by the way.

  • Summon
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Charge!
    • Actions
      • Set TempPoint = (Center of (Battle side 1 <gen>))
      • Unit - Move (Triggering unit) instantly to TempPoint
      • Unit - Move (Target unit of ability being cast) instantly to TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)

yea thanks but how do i make it so u can use an abilty on invulnerable unit?

i already +rep :D
 
What spell are you basing it off of? Some of them do stupid things when other fields are changed, even when the Targets Allowed field seems perfectly normal.

And, to clarify, the ONLY three things that you have checked on the ability are Enemy, Invulnerable, and Vulnerable, right?
 
at first i used mass teleport, that didnt work then i tried life drain and nether worked... and the units are heros if that makes any diffrence.

i have enemy,invulnerable,vulnerable and hero checked.

is there a certian spell i should use?
 
Are you still using Life Drain? Make sure that you set it so that it drains a tiny bit of health, .01 works, because if you set it to drain 0 health, it bugs.
 
ok i got the ability! i had damage set to 0... now though it only teleports the caster and its not teleporting the unit being casted on. i copied the trigger exact. unless the variables are arrays?
 
Try basing it off Finger off Death and setting it dmg to 0. It's the simplest Instant Unit-targeted spell you can use :)

Also, i can't see where QirajiLord fails, it looks perfect. Maybe is Life Drain, i already had some strange issues with it. Try FoD.
 
Try basing it off Finger off Death and setting it dmg to 0. It's the simplest Instant Unit-targeted spell you can use :)

Also, i can't see where QirajiLord fails, it looks perfect. Maybe is Life Drain, i already had some strange issues with it. Try FoD.

should i use hero FoD or unit FoD(neutral)? or does it not matter?
 
tried both and the unit casting went where he was suppose to but the one being casted on didnt move UHGGGG
 
I GOT IT!

it wasnt the ability it was the trigger

it should be:

  • Summon
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set TempPoint = (Center of Battle side 1 <gen>)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Charge!! (Neutral Hostile)
        • Then - Actions
          • Unit - Move (Target unit of ability being cast) instantly to (Center of Battle side 2 <gen>)
          • Unit - Move (Triggering unit) instantly to TempPoint
        • Else - Actions
          • Custom script: call RemoveLocation(udg_TempPoint)
but thanks alot QirajiLord i could have done it without you im defently puting u in credits :D
 
Status
Not open for further replies.
Back
Top