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

Why does this not work?

Status
Not open for further replies.
Level 12
Joined
Aug 3, 2005
Messages
745
Tirgger 1

Events
Time - Elapsed game time is 2.00 seconds

Actions
Set SpellAura = True

Trigger 2

Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Change Aura
SpellAura Equal to True

Actions
Unit - Remove Morale from (Triggering unit)
Unit - Add Defensive Maneuvers to (Triggering unit)
Set SpellAura = False

Trigger 3

Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Change Aura
SpellAura Equal to False

Actions
Unit - Remove Defensive Maneuvers from (Triggering unit)
Unit - Add Morale to (Triggering unit)
Set SpellAura = True


----

It seems perfectly logical to me?
 
Level 12
Joined
Aug 3, 2005
Messages
745
The ability is cast and nothing happens.

If i remove the Variables I can make it remove/add ability's, but only once.

But with this trigger I should be able to change back/forth. But it doesnt work :cry:
 
Level 4
Joined
Sep 18, 2005
Messages
68
I'm still trying to see what the SpellAura=True/False is used for. Try adding another condition

If SpellAura=True then add Morale to (Triggering Unit)& Remove Defensive Manuevers, else Add Defensive Manuevers & remove morale

Try adding that and make it one trigger? Also change a few things up.

If the aura is not a starting ability, make a trigger that has the event of
Hero learns an ability = (Spell) (Or whatever it is, haven't triggered GUI stuff in ages ><)

Rather than the elapsed game time event. Also change the
A unit begans casting an ability to
A unit starts the effect of an ability (Because units can stop before actually casting a spell and can trigger it without casting the spell itself, which can be abuseable if you want to have it cost mana to change)

Trigger 2 &3 can merge if you add the condition I stated above as well as making it a simple if/then/else action.
 
Status
Not open for further replies.
Top