| 02-14-2004, 05:25 AM | #1 |
Any souls out there that can help me with this 2 problems? 1) How do I check whether a Hero has a specific ability on him without using JASS? I thought of using string arrays, like storing the abilities that a Hero has onto a string arrays. Blizzard seems to left out this function... 2) How do I make the Hero with all 4 chosen abilities return to its starting stage? Meaning like when a new Hero is created, he has 1 skill points to use and he has 4 abilities (3 + 1 ultimate) to use on... This would mean I have to disable the 4 abilities and make them return to 0 skill pts state. Please help...thanks... |
| 02-14-2004, 06:03 AM | #2 |
1) Unit - Level of ability for unit. returns 0 if the hero doesn't have the ability. 2) Look at the tome of retraining, prehaps? |
| 02-14-2004, 06:05 AM | #3 |
edit: what Grater said. |
| 02-14-2004, 07:48 AM | #4 |
Thanks for the reply, but I can't seem to find the Unit-Level of Ability in the worldeditor... is there something wrong with my version? Is it in the Actions section? Please tell me how to implement Unit-Level of Ability... thanks. |
| 02-14-2004, 08:07 AM | #5 |
Its in the conditions tab (obviously, look at the form), and looks like this: (Level of Attribute Bonus for (Triggering unit)) Equal to 0 Its TFT only, of course. So, if you want a hero to have an ability for your trigger to work, you use equal to or greater than 1. |
| 02-14-2004, 09:04 AM | #6 |
It's a function that appears whenever you are dealing with integers (Integer comparison, Set variable, etc.) It wouldn't make much sense to be an action. You can't Level of Ability something. |
| 02-14-2004, 10:17 AM | #7 |
oic... thanks for the replies! This site is great! 8) |
