So this is the Code for the Door opening sequence i'm trying to run, but its not working:
Gate open
Events
Unit - Eris Kerrigan [225.30, 10.29] Enters Region 003
Local Variables
Conditions
Actions
AI - Suggests order ( Open Gate) to Hybrid - Gate - Thin - Left [60.50, 56.50] using tactical AI logic
Eris Kerrigan is a custom hero that i made, and region 3 is the area right outside the gate. The order command corresponds to the correct gate type, but the gate itself refuses to open when i get my hero in that region. On a side note, Regions that i have tried to use as events in my triggers in the past have also not worked, where other events did indeed work. Is there a trick to making regions work?
Example:Event: Unit enters Region 1, Action: convert aliance to ..whoever. Did NOT work, but changing the event to unit dies and then selecting value made the action work fine.
Hi Hockleberry, are you talking about the condition field? no, there is not, I only have the event, do you need a condition for the event to work? Because changing said event still allowed the action to take place without adding a condition.
Currently you are suggesting to the AI to open the gate. If there is no AI running for the gate owner (not a computer or a computer without active AI) then there is no way it can open the gate. Equally well since it is using tactical AI logic the logic itself might refuse to open it for some reason even if the owner is a valid AI. Additionally if the owner AI is APM constrained he may not be able to processes the order recommendation in time before it expires.
I do not think this is what you are after. Instead I think you are after sending an order to the unit immediately (bypassing all AI). This will work no mater who owns the door as long as the unit has an ability with met requirements for that order.
So this is the Code for the Door opening sequence i'm trying to run, but its not working:
Gate open Events Unit - Eris Kerrigan [225.30, 10.29] Enters Region 003 Local Variables Conditions Actions AI - Suggests order ( Open Gate) to Hybrid - Gate - Thin - Left [60.50, 56.50] using tactical AI logic
Eris Kerrigan is a custom hero that i made, and region 3 is the area right outside the gate. The order command corresponds to the correct gate type, but the gate itself refuses to open when i get my hero in that region. On a side note, Regions that i have tried to use as events in my triggers in the past have also not worked, where other events did indeed work. Is there a trick to making regions work?
Example:Event: Unit enters Region 1, Action: convert aliance to ..whoever. Did NOT work, but changing the event to unit dies and then selecting value made the action work fine.
@blackarro18: Go
Does your condition have a triggering unit. I don't see it. Maybe that is the issue??
@Hockleberry: Go
Hi Hockleberry, are you talking about the condition field? no, there is not, I only have the event, do you need a condition for the event to work? Because changing said event still allowed the action to take place without adding a condition.
Try ordering the gate to open.
Currently you are suggesting to the AI to open the gate. If there is no AI running for the gate owner (not a computer or a computer without active AI) then there is no way it can open the gate. Equally well since it is using tactical AI logic the logic itself might refuse to open it for some reason even if the owner is a valid AI. Additionally if the owner AI is APM constrained he may not be able to processes the order recommendation in time before it expires.
I do not think this is what you are after. Instead I think you are after sending an order to the unit immediately (bypassing all AI). This will work no mater who owns the door as long as the unit has an ability with met requirements for that order.
@ImperialGood: Go
Thanks Imp, it works now! :) The logic of your argument makes a lot more sense.