| 11-03-2004, 05:45 AM | #1 |
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 |
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 | |
Quote:
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. |
