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

Simple question about Avatar Deactivation

Status
Not open for further replies.
Level 4
Joined
Jul 18, 2008
Messages
76
Hey guys, just got a bit confused since i cant get the deactivation to work.
I made it able to deactivate in Gameplay Constants..
Thing is i want the avatar to be permanent, lasting forever or until deactivated.

Any answers to this simple shit? :p
 
Level 4
Joined
Jul 18, 2008
Messages
76
Lol Kala.. really? read the question and not what i've made so far.. :/
it is permanent already, but deactivation does not work
 
Level 12
Joined
Mar 18, 2008
Messages
865
So clicking Avatar for a second time doesn't deactivate it. Hmmm.

Use Bear Form and add Spell Immunity, etc. to the transformed unit.

I think you can also use Metamorphosis.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Set the duration to 0 in object editor. Create a dummy ability that is "Deactivate Avatar".

When you cast Avatar, remove the ability and add the "dummy" ability. When you cast the dummy ability, remove avatar buff (that removes the bonuses and changes the visuals of the unit, except size), remove the dummy ability, add real Avatar.

But that won't trigger cooldown, so you need an additional dummy spell for that, which displays the cooldown. After a wait time that is equal to the cooldown, add the real Avatar again, adn remove the cooldown dummy.


  • Cast Avatar
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Avatar
    • Actions
      • Wait 1.00 seconds // If this is too low, the game will crash
      • Unit - Remove Avatar from (Triggering unit)
      • Unit - Add Avatar - Turn Off to (Triggering unit)
  • Avatar Cooldown
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Avatar - Turn Off
    • Actions
      • Animation - Change (Triggering unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
      • Unit - Remove Avatar buff from (Triggering unit)
      • Unit - Remove Avatar - Turn Off from (Triggering unit)
      • Unit - Add Avatar - Cooldwon to (Triggering unit)
      • Unit - Order (Triggering unit) to Human Mountain King - Activate Avatar
      • Wait 5.00 seconds // this should be equal to the cooldown
      • Unit - Remove Avatar - Cooldwon from (Triggering unit)
      • Unit - Add Avatar to (Triggering unit)


That works, if no better solution is to be found.
 

Attachments

  • Test map.w3x
    17.7 KB · Views: 43
Level 4
Joined
Jul 18, 2008
Messages
76
Thanks for the replies, but i found my own solution.
When Avatar is learned, i added a trigger so another spell is added, "Deactivate Avatar" based on Thunder Clap. Then i made it to remove avatar buff when used (if avatar was activated, otherwise nothing would happen).. Actually it was a nice effect, so i added damage to the thunderclap spell aswell.
Now it is a kickass cool spell when deactivating avatar.
 
Status
Not open for further replies.
Top