• 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.

[Trigger] Make Unit Cast (Via Trigger) Custom Ability

Status
Not open for further replies.
Level 2
Joined
May 24, 2008
Messages
24
Title says all.

I really don't got any any idea in how to do that.

What I tried is, since it's a passive ability that has a chance to use another ability, create a dummy ability that has the same effects/buffs as the "other" ability, and then give it to the unit.

But, it doesn't work, because the "other" ability has to be activated.

Anyone?
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Every Active ability has an Order string Use/turn on
(Text- Order String - Use/Turn On)
Change it to something remember that thing(like thunderbolt, or charm, or channel etc).
Than in GUI you can order the unit to perform the spell.
To do so you must chose the correct function to order the unit with( targeting a point, a unit etc).
After that choose wich unit, than choose from the drop down menu the appropriate one(stormbolt equals Human Mountin King Storm Bolt, charm equal Neutral DArk RAnger Charm etc).
Then specify the target.
That should do it.
 
Level 2
Joined
May 24, 2008
Messages
24
Well, since it's a Area Spell, I changed it to Blizzard. But, I don't think it work. And I made this on the custom ability:

Text - Order String - Use/Turn On - Blizzard

And, in the trigger:

Unit - Order SwapCaster to Human Archmage - Blizzard (Position of SwapCaster)


But, it doesn't worked.
[EDIT]

Well, does anyone knows?
 
Last edited:
Level 12
Joined
Apr 27, 2008
Messages
1,228
Make sure the hero does not have more than on spell with the same Order String.
Paste your trigger.
What us the ability you want to cast based on. Because some abilities are special (like channel ) ;)
 
Last edited:
Level 2
Joined
May 24, 2008
Messages
24
Well, I just made it an Item and checked "Use it on pick". It worked.

But, anyone can answer me why this leak? It's so simple.

  • Farm Baron Time
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Farm Baron for Player 1 (Red) at (Center of Spawn Baron <gen>) facing Default building facing degrees
      • Set SpawnWood = (Center of Spawn Wood <gen>)
      • Unit - Order (Last created unit) to Move To SpawnWood
Either setting it a variable or not, it does not work. Wow.
 
Status
Not open for further replies.
Top