| 07-09-2007, 09:54 PM | #1 |
How can i give a Hero an ability without that hero learning the ability. As in, its still level 0 replies are greatly appreciated |
| 07-09-2007, 10:08 PM | #2 |
Trigger: Unit - Add Ability to UnitYou mean adding an ability to a hero? Just add a hero ability via this method... I hope I understood correctly... |
| 07-09-2007, 10:08 PM | #3 |
Check if this works: JASS:function GiveUnlearnedAbilitytoUnit takes unit u, integer abil returns nothing call UnitAddAbility(u, abil) call SetUnitAbilityLevel(u, abil, 0) endfunction |
| 07-09-2007, 10:22 PM | #4 |
If you dont know jass and your using GUI, you would do this: anything inside <<>> look on the bottom for. Trigger: ![]() Custom Script: call UnitAddAbility(udg_<*>,'<<**>>')![]() Custom Script: call SetUnitAbilityLevel(udg_<<*>>,<<**>>,0)*insert a variable here, this should be the unit you want to add it to.>> **the rawcode of the ability to be added |
| 07-09-2007, 10:23 PM | #5 |
This won't work, you can only add abilities with triggers, not hero skills. The only way to "add" hero skills is by using engineering upgrade, consult PitzerMike's Warcraft III Ability Guide. |
| 07-10-2007, 02:48 PM | #6 |
In a failed attempt to create a dual-instance cast (you cast once, then again for the effect) I was using the process of removing/adding the hero abilities from the hero. Though this method failed, because the cooldown reset, it did succeed in adding the hero abilities back and setting them to their proper levels. I didn't do anything fancy, just: JASS:call UnitAddAbility( hero, abilID ) call SetUnitAbilityLevel( hero, abilID, level ) |
| 07-10-2007, 03:01 PM | #7 | |
Quote:
|
| 07-10-2007, 04:27 PM | #8 |
Understood. I guess I didn't see exactly what you were saying. |
| 07-11-2007, 05:22 AM | #9 |
yeah. the engineering upgrade for tinker would work nicely. i get to it |
