| 05-16-2004, 01:45 PM | #1 |
I am having serious difficulty trying to create a 3-level heal spell for use by heroes. The catch is it has to work just like the unit heal with autocast. I tried basing it on holy light but can't get the autocast to work. I tried basing it on the original heal but can't see how to get 3 levels. Please help! |
| 05-16-2004, 01:58 PM | #2 | |
Quote:
Did you make sure the "Stats - Hero Ability" was set to true? If not, set this to true, and then set "Stats - Level" to 3. And you'll have a 3 level healing ability with auto cast. |
| 05-16-2004, 02:05 PM | #3 |
Yes I set "Stats - Hero Ability" to true but there is no flag called "Stats - Level" on the heal spell. |
| 05-16-2004, 02:13 PM | #4 |
That's odd, there is in my WE... I have to go to work now. But I'll check back when I get back from work tonight. If you haven't figure it out I'll look into it further. |
| 05-16-2004, 02:20 PM | #5 |
Right I've figured it out now. For some reason, I had to save the map before "Stats - Levels" would appear. Many thanks. Now that I've got that spell in (and assuming it all works), how do I use triggers to get a hero unit to learn the new spell? There are 3 spells I want my new hero to automatically learn which are not listed in the presets. 2 of those 3 spells are my custom ones. I know this thread now belongs in the trigger forum but nevermind. |
| 05-17-2004, 12:12 AM | #6 |
Actually, you just had to switch to a different ability and then switch back. You can't just add autocast to abilities that don't have it originally. There is a workaround to this, but it involves relatively complex triggers and a dummy autocast spell, and I can point you to the right forum, if that's what you want. Also, I don't recommend you base the spell off of Heal, since the unit (or in this case, hero) will do nothing else except heal a unit once he's started healing. Even if the cooldown of the spell is 6 seconds, he will sit, motionless, for those 6 seconds and then he'll automatically recast it on the same unit, unless it's fully healed, in which case he'll move right on to the next one. Are you saying that you want your hero to have the spells to begin with, or that you want to make the spells learnable in the learn card? If the first, it's an easy trigger, and I'll forward you. If the second, you just need to add the abilities to the hero in the object editor under Hero Abilities (bear in mind that 5 hero skills is the max). |
| 05-17-2004, 03:59 AM | #7 |
I just wanted it as a 3-level, learnable hero spell. It works fine now. I can live with the problem of autocast preventing normal attack - the user has only to turn autocast off. Many thanks for all your help guys :) Now I just have to find a way of getting the AI to learn the spell. |
