• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Avatar magic immune mechanic ?

Status
Not open for further replies.
Level 8
Joined
Aug 2, 2012
Messages
224
Hello !

Im working on a map but i've a little problem: one of my unit need the avatar buff mechanic but I dont know how to remove the passive ''immune to magic'' ! It's a bit problematic because my map really need the spells mechanics but I also need the 'avatar' lifepoints/armor mechanic for this unit !

Anyone know how to cancel the magic immune of the avatar spell ?
 
Try this

  • Non avatar avatar spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Avatar Custom
    • Actions
      • Set AvatarCaster = (Triggering unit)
      • Unit - Add Item Armor Bonus (+5) to AvatarCaster
      • Unit - Add Item Damage Bonus (+20) to AvatarCaster
      • Unit - Add Item Life Bonus (Greater) to AvatarCaster
      • Sound - Play Avatar <gen> at 100.00% volume, located at (Position of AvatarCaster) with Z offset 0.00
      • Countdown Timer - Start AvatarTimer as a One-shot timer that will expire in 60.00 seconds
      • Countdown Timer - Create a timer window for AvatarTimer with title Avatar duration
      • Set AvatarTimerWindow = (Last created timer window)
      • Countdown Timer - Hide AvatarTimerWindow
      • Countdown Timer - Show AvatarTimerWindow for (Owner of AvatarCaster)
      • Special Effect - Create a special effect attached to the origin of AvatarCaster using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
      • Animation - Change AvatarCaster's size to (105.00%, 105.00%, 105.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (110.00%, 110.00%, 110.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (115.00%, 115.00%, 115.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (120.00%, 120.00%, 120.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (125.00%, 125.00%, 125.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (130.00%, 130.00%, 130.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (135.00%, 135.00%, 135.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (140.00%, 140.00%, 140.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (145.00%, 145.00%, 145.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (150.00%, 150.00%, 150.00%) of its original size

  • Avatar timer
    • Events
      • Time - AvatarTimer expires
    • Conditions
    • Actions
      • Unit - Remove Item Armor Bonus (+5) from AvatarCaster
      • Unit - Remove Item Damage Bonus (+20) from AvatarCaster
      • Unit - Remove Item Life Bonus (Greater) from AvatarCaster
      • Animation - Change AvatarCaster's size to (150.00%, 150.00%, 150.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (145.00%, 145.00%, 145.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (140.00%, 140.00%, 140.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (135.00%, 135.00%, 135.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (130.00%, 130.00%, 130.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (125.00%, 125.00%, 125.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (120.00%, 120.00%, 120.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (115.00%, 115.00%, 115.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (110.00%, 110.00%, 110.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (105.00%, 105.00%, 105.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (100.00%, 100.00%, 100.00%) of its original size


  • Avatar dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to AvatarCaster
    • Actions
      • Countdown Timer - Destroy AvatarTimerWindow
      • Unit - Remove Item Armor Bonus (+5) from AvatarCaster
      • Unit - Remove Item Damage Bonus (+20) from AvatarCaster
      • Unit - Remove Item Life Bonus (Greater) from AvatarCaster
      • Animation - Change AvatarCaster's size to (150.00%, 150.00%, 150.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (145.00%, 145.00%, 145.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (140.00%, 140.00%, 140.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (135.00%, 135.00%, 135.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (130.00%, 130.00%, 130.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (125.00%, 125.00%, 125.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (120.00%, 120.00%, 120.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (115.00%, 115.00%, 115.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (110.00%, 110.00%, 110.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (105.00%, 105.00%, 105.00%) of its original size
      • Wait 0.05 seconds
      • Animation - Change AvatarCaster's size to (100.00%, 100.00%, 100.00%) of its original size

This is not MUI but *should* work like you want (kind of).

You won't have a buff on the unit this way, but technically it does everything you want. Just change "Item Life Bonus (Greater) to give 500 HP instead of 300 and it's good.

If you want the unit to have a buff just have a dummy unit cast a random spell that gives a buff with duration 60 and modify stats to not give anything. Alternatively edit Inner fire to give 5 armor (and no damage increase), then you remove "Unit - Add Item Armor Bonus (+5) to AvatarCaster" from the trigger, and change the icon and description of Inner fire buff to reflect your custom Avatar spell's properties.

If you need it to be MUI I am sure you can find someone more seasoned at spell making than me to alter the one I made for you.
 

Attachments

  • Avatar.w3x
    22 KB · Views: 25
Last edited:
Level 8
Joined
Aug 2, 2012
Messages
224
Great job, thanks you Feelsgood :) Just one question, do you think it's possible to give the stone skin of the original avatar to mountain king ? This method is perfect but would be cool if the 'stone skin' can be used too
 
Great job, thanks you Feelsgood :) Just one question, do you think it's possible to give the stone skin of the original avatar to mountain king ? This method is perfect but would be cool if the 'stone skin' can be used too

Do you mean the stone skin buff? If yes, then just have a dummy unit cast something that gives stone skin.

Edit: Ah, I see what you mean now. That is a Mountain King specific animation I believe. If the hero using Avatar is Mountain King then it is doable. If not then it is impossible.
 
Last edited:
Level 8
Joined
Aug 2, 2012
Messages
224
Yes it's that ! I tested it, but dosent work anyway with the mountain king =O ! What issue to have the stone skin but with your method ? Possible or not ?
 
Yes it's that ! I tested it, but dosent work anyway with the mountain king =O ! What issue to have the stone skin but with your method ? Possible or not ?

Sorry, not quite sure I understood that correctly. You are trying to use the mountain king yes? If so, add the "alternate" animation to him. It should work, I think. I haven't tested it myself.

Edit: This worked:

  • Animation - Add the alternate animation tag to AvatarCaster
Just remember to remove the animation tag if the Mountain king dies or when Avatar duration hits 0.
 
Last edited:
Status
Not open for further replies.
Top