HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

making a new passive skill help!

04-23-2005, 02:18 PM#1
corley
hey all, im currently trying to make a passive skill that raises hp, can this be achived and if so will i need any fancy other programs or cani just stick to tft editor, thx all
04-23-2005, 03:43 PM#2
Anitarf
TFT object editor will be enough.

In the object editor, look for the item ability Item Life Bonus (it's under special -> items) Then make a new custom ability based on this ability. Set the "stats - item ability" for it to "false", and set the life bonus to what you want it to be. Then give this ability to your unit.

If you want it to be a hero skill, then you must set it to be a Hero ability (same way you set it not to be an item ability). Set the skill's levels to what you want and give it some tooltips. Note that most passive item abilities, when turned into an unit ability, will not display their icon on the unit's command card. So, after your hero learns the skill, it won't be there, even though the hero should recieve the hp bonus.
04-23-2005, 04:27 PM#3
corley
cool thx man, im at work atm but when i get back home late rill try this! thx again i really appreciate it
04-23-2005, 04:34 PM#4
corley
but will you be able to see the skill/ability display to choose it or do u mean u cant see it once you have choosen it? thx again
04-23-2005, 06:45 PM#5
Anitarf
No, when you go to the learn-skill menu, the skill is displayed there, but after you learn it and you go back to the default command card (the one with move, attack, hold position... icons), the icon will not be displayed there. That's the case with most abilities based on pasive item abilities.

If you want to be able to see the icon of the skill, there's a simple way to do that using triggers. You make two abilities, one is your bonus hp ability and the other is just some "blank" pasive ability, for example an aura with it's allowed targets set to "none" and without any art on the caster. We'll use that blank ability to display the icon and tooltips after you learn the skill.

Now, one of these two abilities is a hero skill and the other a regular unit ability, both have same ammount of levels. Then you just need this simple trigger to make it all work:
Code:
Scars Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Scars of the Veteran (Icon)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Scars of the Veteran (Icon) for (Learning Hero)) Equal to 1
            Then - Actions
                Unit - Add Scars of the Veteran multi level to (Learning Hero)
            Else - Actions
        Unit - Set Level of Scars of the Veteran multi level for (Learning Hero) to (Level of Scars of the Veteran (Icon) for (Learning Hero))

And, just in case if you have the tome of retraining item in your map, one more trigger:
Code:
Scars 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 Veteran Mercenary
    Actions
        Unit - Remove Scars of the Veteran multi level from (Hero manipulating item)
04-23-2005, 06:48 PM#6
corley
cool, thx again mate will try this out when i get back from work
04-24-2005, 06:25 PM#7
corley
hey sorry to bump thsi thread, i tried what u sed m8, im half way there i created the skill, and yes ur right when u lvl up and choose the skill its a green box, but in game its normal, ive half gotten ur trigger to replace the green box but im stuk on the last half i cant find the triggers, the ones as follow:

Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Scars of the Veteran (Icon) for (Learning Hero)) Equal to 1
Then - Actions
Unit - Add Scars of the Veteran multi level to (Learning Hero)
Else - Actions
Unit - Set Level of Scars of the Veteran multi level for (Learning Hero) to (Level of Scars of the Veteran (Icon) for (Learning Hero))


i have no idea where in the hundreds of trigger they are :( plz help thx again
04-26-2005, 08:52 PM#8
Anitarf
First of all, these triggers are not for "removing the green box". The green box is just something warcraft puts in a place of an icon whenever that icon is undefined. In your case, you probably forgot to define "art - icon - research" when you made a hero ability out of a unit spell.

The triggers I posted here are used when you make a hero skill on an item ability that doesn't display an icon once it's learned. No, it doesn't display the green box, it actually doesn't display anything. That's why we use the triggers to give the hero another pasive unit ability that will display the icon and tooltips, but won't do anything by itself.

Now on to the where-the-heck-these-triggers-are:

"Unit - A unit Learns a skill" is a generic unit event.
"(Learned Hero Skill) Equal to Scars of the Veteran (Icon)" is a hero skill comparison.
"If - Then - Else multiple functions" is an action under the general category.
"(Level of Scars of the Veteran (Icon) for (Learning Hero)) Equal to 1" is an integer comparison.
"Unit - Add Scars of the Veteran multi level to (Learning Hero)" that's the "add ability" action that's in the unit category.
"Unit - set level of ability for unit" is also in the "unit" category, I think it's at the bottom of the list.