- Joined
- Jun 18, 2011
- Messages
- 168
Want AI to cast spells, but not randomly issue move orders
I need computer controlled units to stop running to their start location when they are created (whether they enter by trigger or by being trained.) Another example of this AI problem is that sometimes (usually happens after a battle) a computer controlled unit (that had been placed in the map using the WE) will run to a region that it has an order to move to in a trigger, but that trigger was never activated and was not even enabled.
Edit: More and better detail in my second post below.
I am using melee AI script because I want computer controlled units to cast spells.
My question:
Part 1
Is this a bug or is this a problem that everyone faces when creating an RPG?
Part 2
If it is a normal problem, is there an easy fix?
If you are a philanthropist and this problem sounds abnormal, would you mind dowloading and taking a look at my map.
Edit: I explain the problem more below.
Edit: Solved
I need computer controlled units to stop running to their start location when they are created (whether they enter by trigger or by being trained.) Another example of this AI problem is that sometimes (usually happens after a battle) a computer controlled unit (that had been placed in the map using the WE) will run to a region that it has an order to move to in a trigger, but that trigger was never activated and was not even enabled.
Edit: More and better detail in my second post below.
I am using melee AI script because I want computer controlled units to cast spells.
My question:
Part 1
Is this a bug or is this a problem that everyone faces when creating an RPG?
Part 2
If it is a normal problem, is there an easy fix?
If you are a philanthropist and this problem sounds abnormal, would you mind dowloading and taking a look at my map.
Alternatively, I could take out the Run Melee AI and use a custom (JASS/vJASS/GUI) AI (not .wai) that makes units cast spells, but I don't see this being very efficient or effective if it is going to command around 20 different units and be triggered by, the only event I have only had small success with, "A Unit Is Attacked".
Edit: I explain the problem more below.
Edit: Solved
That's what I needed to do. I needed to useI had the AI casting spells and not bugging spells for one day, but I also noticed around that same day when I opened the map the next day, many of my changes from the previous day were not saved. I wonder if I used AI commands to use that .wai it would work.
- Player Group - Pick every player in (All players controlled by a Computer player) and do (AI - Start melee AI script for Player 1 (Red): KOTR AI.wai)
Last edited: