• 🏆 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!

Metamorphosis ability help

Status
Not open for further replies.
Level 3
Joined
Jun 7, 2016
Messages
21
Guys, i need hep with the Metamorphosis ability, how do i give plus damage and armor once the unit character morph and remove the plus damage and armor once the ability end?

Thank for the help.
 
Level 39
Joined
Feb 27, 2007
Messages
5,028
Well... it morphs into another unit so you can just increase that unit type's base damage and armor to include the bonuses you want. If for some reason that's not viable, make 2 self-targeted 1.00 range auras based on Devotion Aura and War Drums (kodo beast ability) 2 abilities based on Item Armor Bonus and Item Damage Bonus. Set their button positions to X=0, Y=-11 (hold shift and double click that field to allow negative values) and make them unit abilities. Then you need 1 trigger:

  • Events
    • Unit - A Unit starts the effect of an ability
  • Conditions
    • (Ability being cast) equal to METAMORPH
  • Actions
    • Unit - Add DEV_AURA to (Triggering unit)
    • Unit - Add WAR_DRUMS to (Triggering unit)
    • Unit - Set level of DEV_AURA for (Triggering Unit) to (Level of METAMORPH for (Triggering Unit))
    • Unit - Set level of WAR_DRUMS for (Triggering Unit) to (Level of METAMORPH for (Triggering Unit))
    • Wait - DURATION game-time seconds
    • Unit - Remove DEV_AURA from (Triggering unit)
    • Unit - Remove WAR_DRUMS from (Triggering unit)
The Wait here is an inferior solution to properly using a timer, but you probably don't care that much about it. The unit will keep these bonuses the full DURATION length, even if it dies while metamorph is active and is revived before the Wait finishes. But again that may or may not matter to you depending on your map.
 
Last edited:
Level 4
Joined
Jul 26, 2017
Messages
66
or you can add the Abilities directly to the Ability - Normal field in the object editor on the unit the user transforms into only
 

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,892
I don't get it... what's so hard about adding more damage and armor? Just base on the metamorphosis ability, with the corresponding unit types, the normal unit, with no increased armor and attack, and the morphed unit, with bonus armor and attack. Really simple, no triggers or anything like pyrogasm said.
Don't complicate your life.
 

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,892
Oh... Ok then,

or you can add the Abilities directly to the Ability - Normal field in the object editor on the unit the user transforms into only
Your solution.
WC3ScrnShot_082818_193341_01.png
 

Attachments

  • WC3ScrnShot_082818_193351_02.png
    WC3ScrnShot_082818_193351_02.png
    1.6 MB · Views: 56

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,892
There's a much more simple way than triggering it, just by using object editor, adding the abilities (damage and armor bonus) directly to Ability normal field like it was said before.
 

Attachments

  • Metamorphosis Bonus.w3x
    16.7 KB · Views: 20
Status
Not open for further replies.
Top