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

hero lvl type thins

Status
Not open for further replies.
Level 5
Joined
Apr 26, 2009
Messages
92
how can i make it so when any hero reachs lvl 10 it adds X amount to their primary atrabute then again at lvl 25 it will change their armour type to divine
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
you cant change the armor type,you can only use replace unit action to replace it with unit that does have it (if u want it i can explain it to you)

for doing something when unit reaches X levels use

EVENT - unit gains a level
CONDITION - level of (triggering unit) equal to X
ACTION....


(don't know what do you want with action but you have integer that counts hero exp)

than you can do like
seet hero exp to (hero exp x 0.33)
(its + 33%)
 
Level 5
Joined
Apr 26, 2009
Messages
92
could you explain the replace thing ( same items, skills, atrabutes, any i forgot)

i dont realy get what you were doing w/ the 33% thing. i just need to know if the editor can recognize the primsry atrabute or if i have to do some i/t/e.
 
Level 13
Joined
Apr 15, 2008
Messages
1,063
Divine armor is not invulnerability, it's the armor type of semi-gods or whatever they are (the demon guy attacking teldrassil and the druid guy :grin: (I can't remember names), it takes 5% of any damage on default setting.
Replacing is not optimal, it will (I think) reset the skill selection. Just create a second version of the same hero, with divine armor, and then metamorphosis, which transforms from the old type to the divine armor type, and is permanent (Data-options: check permanent).
Then on lvl-up add the ability and immidiatelly order the unit to use it:
  • Divine armor
  • Events
    • Unit - unit gains a level
  • Conditions
    • (Level of (Triggering unit) ) greater than or equals to 25
    • Unit-type of (Triggering unit) equals to "Old hero type"
  • Actions
    • Unit - Add "Permanent divine metamorphosis"
    • Unit - Order (Triggering unit) to "Night Elf Demon Hunter - Metamorphosis"
About the level - you should check for "greater than or equals to", because theoretically he can gain enought exp to get from 24 to 26, and then he wouldn't get the ability.
 
Level 5
Joined
Apr 26, 2009
Messages
92
oh i found a way.

Unit-Gains a level
gained level = 25

set research level for (custom upgrade that has 'armour Change' and set to divine) to 1.
 
Level 15
Joined
Aug 31, 2009
Messages
776
Yes, there is an upgrade called "Reinforced Defences" (or something to that effect) that when Researched allows affected units to change their armour types. It's used by the Orcs to upgrade their Burrows and Defence towers to have Fortified Armour - as they usually only have Heavy Armour.
 
Status
Not open for further replies.
Top