I tried to design a custom AI for my arena.
Somehow, I discovered "Issue Order" trigger action works well, but if you want to call abilities that are of type "Effect - Target", you need to use "Tactical AI - Cast"... the problem is that this action only suggests (instead of forcing) the ability to be casted to the computer... and in my case, he never decides to obey (
).
Any fix?
P.S. I haven't set Start Locations and the Controllers are Users, but they automatically become Computers (Unused player controller) when the game starts. It might be it?
None.
You can use Issue order to do target abilities as well. Change order with no target.
None.
You can use Issue order to do target abilities as well. Change order with no target.
Oh shi-! That parenthesis was well hidden!
Thanks.
EDIT: Wait... none of the Cast Ability work now
Post has been edited 1 time(s), last time on Sep 14 2010, 1:49 am by payne.
None.
I have a trigger that has an event "Unit is attacked"
Then a condition "Controller == Unused" (which are the Computers since they are in fact absent players)
The action is something like "Make triggering unit cast 'Absorb' ability".
... but I don't understand why the ability isn't casted. ;o
None.
Did the action work before the change? I don't think an Unused player slot technically has any AI, and if it is taken by a Computer Player, you would have to use Controller = Computer.
None.
Did the action work before the change? I don't think an Unused player slot technically has any AI, and if it is taken by a Computer Player, you would have to use Controller = Computer.
Well, when the only AI trigger I had was the one I depicted, it worked.
Then I added more abilities, and nothing worked anymore, which is weird. Could it be because I use the Unit is Attack event in different triggers ordering to cast an ability, replacing existing order?
And when I had the single trigger, Controller == Computer didn't work. Unused worked, though.
None.
Did the action work before the change? I don't think an Unused player slot technically has any AI, and if it is taken by a Computer Player, you would have to use Controller = Computer.
Well, when the only AI trigger I had was the one I depicted, it worked.
Then I added more abilities, and nothing worked anymore, which is weird.
Could it be because I use the Unit is Attack event in different triggers ordering to cast an ability, replacing existing order?And when I had the single trigger, Controller == Computer didn't work. Unused worked, though.
You should try troubleshooting the highlighted issue. Although, I would expect at least one trigger to take precedence and do something.
You might want to show the trigger code for all of the triggers that are relevant.
http://vgshorts.com/BBCode/BBCode3.php?ID=96Check out this one and tell me what's wrong. ;o
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
In your trigger the status of the player has to be "unused" AND "Left the Game"? So the trigger won't run.
That's not how the OR works like you intended it does.
The OR and AND contains a list with conditions. That AND or OR only connects the conditions inside their list. The default condition list is interpreted as an AND's list { if( cond A, cond B) equals if( AND( cond A, cond B) ) }.
Anyway, I would check the unit's type to avoid spamming orders to units that doesn't have that order...
Temp told me that as well, but thanks!
The only unit the players can control is a Stalker. All other units are Neutral ;o
None.
Yeah, biggest thing I see is the Conditions, which are correctly set-up, they should both be under the Or section. Otherwise you're saying essentially saying (Status == Unused AND (Status == Left OR Status == Left), which would probably always return false?
None.
I forgot to say: Solved.
It was indeed because of how I was using the Or condition.
None.