• 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 - issue order to cast spell?

Status
Not open for further replies.
Level 5
Joined
Apr 8, 2007
Messages
116
Hmm, it's odd, but is there no GUI trigger action that allows you to make a unit issue an order to cast a spell? Aside from issuing an order with no point which lets you cast a generic melee spell, is there anyway I can make it so I can use a trigger to make a unit cast a custom spell?

Just another question that just popped into my mind, but how can I make an upgrade that increases magic resistance? The Nightelf Resistant Skin upgrade seems to have no alterable data that affects magic resistance...
 
Level 7
Joined
Jun 4, 2006
Messages
127
  • EXAMPLE
    • Events
      • Unit - A unit is attacked
    • Conditions
    • Actions
      • Unit - Order unit to Orc Tauren Chieftain - War Stomp
In this command, anyone who is attacked that has an ability BASED on War Stomp will cast the ability. Even if the name of the ability is Earth Crash but it is BASED to War Stomp, then it will force the person WHO IS ATTACKED to casts that spell (if the person does have a skill based on War Stomp).

It also applies to other skills other than War Stomp...

Again, and please, keep it only at ONE post.

~

Yours Truly,

Thy FuKiN n0oB
 
Level 5
Joined
Apr 8, 2007
Messages
116
Okay I found why it really didn't work. The way it works is that the second form of the unit is supposed to be almost the same as the first, except have no attack. However, the second form retains its attack! I've made it so that none of either first or second attack are enabled, and even changed all the combat stats to 0, yet the second form still keeps the same attack ability it had in the first form... :confused:

[Edit] Now things are turning out even more weirder:

To illustrate the background, the settings are this: there is a unit that when it attacks once, a trigger gives it a modified bear form ability which changes it into a form of itself that has no attack and has the "reload" ability. There is also a trigger to remove the modified bear form ability once it is used.

So I go along and color the second form black, simply wondering if its actually changing, since the first is supposed to have atk but the second without atk (while in-game tests, both forms had attack). This time, it lost its reload ability for some reason, which is an ability of the second form. Before I added the part removing the bear form after use, the second unit still used to have its reload ability.

Any thoughts on why it isn't working?

[Edit 2] Hmm, it seems to be fixed now, nevermind bout that. Thanks for the help!
 
Last edited:
Status
Not open for further replies.
Top