HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding skill add

11-03-2004, 05:45 AM#1
thedevil
I on my resident evil map now and i want each player can choose skill to learn on an spell book that contain 10 norman spell,i have create a trigger that will add skill to player when they cast it and i have a variable interger that subtract every player cast spell->when it reach 0 player cant add skill and ability spell but has removed ^_^ the problem is comp can detect unit when they use spell that belong to spell book,i can detect when player cast spell in spell book but cant add skill T_T here the action
Event:A unit begin casting an ability
Condition:..........
Action:.........
Add ability being cast to triggering unit
Unit-group pick every unit own by owner of triggering unit is a hero equal to true add ability being cast to picked unit
Add ability being cast to Hero[Player number owner of triggering unit]
I try variable for ability but it wont work too plz help me >_<
11-03-2004, 06:23 AM#2
Guest
You can't add a skill to a hero unless the hero already has the skill. Heres what you do, go to the unit in the object editor and add every spell you have in the spell book onto the units normal abilitys. Now you can use the add ability trigger for the spells.

Note: When adding an ability to a hero the hero must have at least 1 skill point.


Hope that helps you.
11-03-2004, 06:29 AM#3
logik
no, no, no... alls you do is if you wish to remove the ability you just disable it for that player...

its like "player - disable ability"

and then when you wan to use it, you just enable it... this works in spell books, hero abilities... it will make them unable to see or cast them and then just enable it when they have skills.
11-03-2004, 08:23 AM#4
thedevil
Quote:
Originally Posted by zandose1
You can't add a skill to a hero unless the hero already has the skill. Heres what you do, go to the unit in the object editor and add every spell you have in the spell book onto the units normal abilitys. Now you can use the add ability trigger for the spells.

Note: When adding an ability to a hero the hero must have at least 1 skill point.


Hope that helps you.
Look like u dont see what i mean after all i mean i have 1 hero with no skill on his hero ability and i give him 1 spell book ability that contain 10 norman skill,every hero cast one of those spell in spell book this skill will be add to caster,i can use trigger to detect it as well but the problem is computer dont know which unit it must give ability to >_<
thank for reply
11-04-2004, 07:33 AM#5
Guest
Cant really think of a easy way to do that. I would the same spell with different ability codes each so you know which player is using which.