| 07-20-2007, 05:41 PM | #1 |
Ok so heres my problem. I've got an rpg that features many triggered battles in it and while testing in world edit everything is fine, but when I decided to test the computer player begins to cast spells with some of the invis dummy units. Many of the spells have no cooldowns and no mana cost which just adds to the problem when the computer starts spamming spells. The way i've triggered the map I already have preset dummy units in place with their spells and use triggers to make computer cast spells. Is there any way to prevent the computer player from casting spells on its own and only cast spells when I order the dummy's to. If you have a solution I'll love you forever :) Adding cooldowns to spells just makes the computer instantly cast the spell once its cooldown, which isn't a problem fix. (sometimes i want the spell to be cast in a random location or what not). Thanks a lot for any help. |
| 07-21-2007, 12:56 PM | #2 |
If you already have everything set up to cast the spells when you want to, you can just not have the computer's units have the spell until you want them to cast it. Let's say you want the computer to cast roar every ten seconds. Set up a trigger that will--every ten seconds--add the ability, order the unit to cast it, then remove. The only hard part would be triggering when you want to add the ability. |
| 07-21-2007, 03:58 PM | #3 |
Why don't you just set it up so you create a dummy unit, add the spell, cast it, and then remove the dummy unit right after (add a cooldown to the spell to prevent multiple castings)? If you need to spell to be cast multiple times then just create multiple dummy units and remove them after. Unless there is a specific purpose you are using preset dummy units. If there is then go with Castlemaster's solution. |
| 07-21-2007, 04:11 PM | #4 |
If you don't have the slot computer controlled then they won't cast abilities. |
