| 01-12-2003, 09:33 PM | #1 |
Guest | Ok, I've been playing around with an aos map and i decided what could make this one different from all the others is to allow the making of a Custom unit. The problem is, i can't get this trigger to work. What i want to do is this: 1. You enter the game and go to the custom unit. 2. Custom unit spawns at that base. 3. Now this is where i can't get it to work. What i want is when someone types in say "-add evasion", i want the selected hero of the player who owns the unit to be given the evasion skill. But it seems i can't get it working. Anyone with an idea or some hintful tidbit, it would be greatly appreciated. Thanks in advance. |
| 01-12-2003, 10:01 PM | #2 |
thats actually a very very very very good idea - i'm suprised nobody's thought of it :D However, I think that "Add Spell" is bugged (from reading other posts), or doesnt work with hero spells. |
| 01-15-2003, 05:44 PM | #3 |
Guest | *bump* hopefully ill get some replies 0_o |
| 01-15-2003, 05:58 PM | #4 |
What part does not work? The chat recognition part or the adding the ability. If it's the Chat part go look at the Commander sense that uses some major chat stuff. Although it is in jass. Link is in my signature. DKSlayer |
| 01-15-2003, 07:33 PM | #5 | |
Quote:
Actually this has been done before, I just haven't used custom text. The way I got around this was to add all of the hero spells/abilities that I wanted to use for a hero, then disable them all at map initialization. When the trigger gets exectued after the custom text is recognized, you would simply use the action Unit - Enable hero ability(Evasion) for the selected unit. |
| 01-15-2003, 09:57 PM | #6 |
Note: enable/disable is buggy as HELL, especially if the hero has more than 4 abilities, or something only special heroes (like Dark Portal) have, so test each and every skill to make sure it's working. And what's this about an add spell action? I've never seen one. |
