HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Passive Skills

06-07-2005, 01:42 PM#1
j0sh4tran
Hello, how do i make a passive skill with 4 levels to learn? Each level i want it to increase 20 hp and 1 armor.

Thanks
06-07-2005, 02:08 PM#2
Panto
I don't think there's a single ability that increases both hitpoints and armor. You'll probably just want to use item abilities and level them up via triggers whenever a dummy ability is levelled by the player.
06-07-2005, 02:41 PM#3
j0sh4tran
Can you show me how to do it then?
06-07-2005, 03:06 PM#4
Anitarf
OK, for modifying armor and hp we can use item abilities that are used by the rings of protection (for armor) and by periapt of vitality (for HP). These abilities don't display any icons on the command card, which is good, we can add them to the hero freely and the player won't notice they're there, so it will appear that the hero skill does all the armor and HP adding effects.

Now, make two 4-level unit abilities named BonusArmor and BonusHP based on the corresponding item abilities. In addition, make a blank hero skill, like an evasion that has 0% evade chance or an aura that's not allowed to target anybody. This skill will have no gameplay effects by itself, it will be only there to display the icon and tooltips. The effect of the skill will be done with the previously mentioned item abilities, using triggers:
Code:
Spell Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to BonusHeroSkill
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of BonusHeroSkill  for (Learning Hero)) Equal to 1
            Then - Actions
                Unit - Add BonusArmor to (Learning Hero)
                Unit - Add BonusHP to (Learning Hero)
            Else - Actions
        Unit - Set Level of BonusArmor for (Learning Hero) to (Level of BonusHeroSkill  for (Learning Hero))
        Unit - Set Level of BonusHP for (Learning Hero) to (Level of BonusHeroSkill  for (Learning Hero))
Code:
Spell Retrain
    Events
        Unit - A unit Uses an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Tome of Retraining
        (Unit-type of (Hero manipulating item)) Equal to Your Hero
    Actions
        Unit - Remove BonusArmor from (Hero manipulating item)
        Unit - Remove BonusHP from (Hero manipulating item)

Note: some abilities based on item abilities are bugged since a recent patch and their effect stays on level 1 even after you level it up. I myself have had this problem with the life regeneration ability (used by ring of regeneration), but the spell damage reduction ability worked just fine for me. In case bonus armor and bonus hp abilities don't work, you'll have to make an individual ability for each level instead of a single multi-leveled ability.
06-07-2005, 03:40 PM#5
Elven Ronin
What about using upgrades?
06-07-2005, 05:15 PM#6
Anitarf
Quote:
Originally Posted by Elven Ronin
What about using upgrades?
As long as you don't have tome of retraining on your map, that's a way to do it too (upgrades cannot be undone once researched).
06-07-2005, 05:36 PM#7
Joey.
I suppose it depends on what type of map he is making the ability for, look at some spells at www.wc3sear.ch in the spells section if your still lost .