| 04-24-2006, 09:49 AM | #1 |
Ok now before i start I know that there is a built in ai for computer heroes to use spells. but it's not very efficient. I was trying to make a trigger that would cause a computer hero to basically unleash everything in its repetoire against any player that wanders too close. I've tried a simple unit comes within range, make hero cast spell on unit trigger, but I can't get the proper command for it. here's the trigger i attempted to use for this. (it gets more complicated but this is just for testing purposes) Trigger: and I made sure that he learned hex and so has it usable. This obviously isn't giving me the proper string command. anyone know how to get the right one? |
| 04-24-2006, 10:08 AM | #2 |
Try using this instead: Trigger: Unit - Order Mountain King 0010 <gen> to Orc Shadow Hunter - Hex (Triggering Unit) |
| 04-24-2006, 10:29 AM | #3 |
hmm that one doesn't seem to work either. oh well, thanks for the response. |
| 04-24-2006, 12:55 PM | #4 |
| 04-25-2006, 03:24 AM | #5 |
hmm ok i'll try it on a fresh map then. might have something to do with other spellbased triggers. interesting. i tried it on a fresh map with and without the melee init and it still doesnt work. could you send me the test map in which it works for you? msn and email is [email protected] |
| 04-25-2006, 07:26 AM | #6 |
No. You are doing something fundementally wrong. Here is the process by which is tested. 1) Place a Mountain King in the centre of the map 2) Go to the object editor and replace one of the MK's abilties with Hex (I replaced thunder clap). 3) Place some enemy units on the edge of the map (hex only targets enemies). 4) Create that trigger. 5) TEST THE MAP. 6) order your MK to walk towards one of the enemies. When he comes in range he will use hex. THAT IS ALL. |
| 04-25-2006, 10:28 PM | #7 |
I want the computer mountain king to use it. and other than that fact I did it exactly the same. rather than ordering MY mountain king. I ordered my footman to approach the computer's Mountainking. hmm interesting it works if i make my hero do it, but it wont work on the computer. this is starting to annoy me. edit: well it appears to work for nuetral hostile units so i'll settle for that. |
