HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Restrictions for abilities.

01-22-2003, 08:34 AM#1
Guest
My heroes (in a RPG game) have some custom non-hero abilities (healing, faery fire, ... customed).
I would like to know how to give it to a hero at a special time in game.
Actually, i give them their abilities and tried :
1. to activate an ability with a trigger (Unit-Create ability ... ?) but i didn't find one that fit. But it exist Unit-Remove Ability ...
2. to use in the *func.txt (or the other one i don't remember) to had 'required ???' but that won't work. I copied the lines from an existing one, but that don't work.

Do u know how to do ?
Do u know where i could find a list of codes for evolutions (adept, ...) and how it works (requirement, levels (sometimes tere is a number under the code), ... ).
Thank you for your help.
01-23-2003, 08:11 AM#2
Guest
No one ever tried to use restrictions with custom abilities ????
01-23-2003, 12:14 PM#3
Dinadan87
Wouldn't it work if you set it the ability so it's disabled at the start of the map, and then you can reenable it through a trigger (I think it's a player one) but the only thing is that after you enable it it will be impossible to get rid of (there's no unenable ability)
01-23-2003, 12:38 PM#4
Guest
I find a trigger for removing ability (it is quote that we can't restore it perhaps), but not to enable an ability ...
01-23-2003, 02:29 PM#5
Dinadan87
Remove ability is a UNIT trigger, right? I think enable ability is a PLAYER trigger becasue it allows ALL units with the abilty to start usin it. It does it in the campaign like when you acquire a new unit it enables you to start building it in the middle of the map. I think the enable units trigger is different but there should be a similar one for abilities.
01-23-2003, 06:42 PM#6
gewran.
It's easy. There is a Add Hero Spell trigger. Simply make the spell a herospell by editing the AbilityData.slk from war3patch.mpq and put it back into the war3patch.mpq. I'm not sure if herospells can be removed using the Unit - Remove Ability trigger, but i think it's possible.

Edit:

There is a Player - Enable/Disable ability trigger. I've checked it.
01-23-2003, 08:37 PM#7
Guest
That is a good idea.
But that will use an hero-point. :(

The 'remove ability' works with custom hero spell, but not non-hero-ability. And with hero spell, it simply remove the possibility to spend an hero-point in it (any level got before are still available).

The only way i see, is to removing the hero with the ability and replace it with the another hero looking exactly the same, but with the ability i need ...
It is using lots of code for something that seen not so difficult to do :(