Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Setting AI controlled units to hold position
Setting AI controlled units to hold position
Mar 24 2022, 3:47 pm
By: Cryoc  

Mar 24 2022, 3:47 pm Cryoc Post #1



I am pretty much a complete noob with regards to map making and this has probably been asked countless times and I am just too dumb to find the answer but how can you change the default behavior of AI controlled units to behave as if a human player would have just pressed hold position, especially for lurkers and siege tanks? I want to test out some micro scenarios but the lurkers keep unburrowing as soon as I approach them with medic/marines and sieged tanks unsiege, if nearby units are hit. How can I prevent that?

Ideally, there is a simple solution, since I only worked with classic triggers before.



None.

Mar 24 2022, 7:50 pm TheHappy115 Post #2



I'm not sure if there is an easy solution for lurkers (without EUD triggers which isn't basic to do). In terms of siege tanks, it does work in a similar style to lurkers. However, you could substitute the siege tank for a Hero version of said siege tank (Edmund Duke) and just set its stats to a siege tank. Please note: using these hero siege tanks means they will NOT use the player's supply, and will never unsiege (even if 1 zergling was melee range attacking it). This can make it useful if you want to have siege tank emplacements that won't unsiege no matter what. The AI however will obviously not replace these tanks and the portrait itself will still be "dukes" portrait. This also doesn't work if you are using the siege version for something else.

Alternatively, if you give lurkers (burrowed) // siege tanks (sieged) to the player and the burrow/siege mode is disabled, they will be unable to unburrow/unsiege too. Sadly, this doesn't seem to apply to AIs (they probably have some internal function/trigger that does it since they don't use hotkeys/command cards).

You could try having 2 AIs as well (with Zerg 1 AI controlling Lurker, and Zerg 2 controlling other units). However, this comes with a problem where the AI 1 lurkers will splash the AI 2 units (even when allies).

Post has been edited 2 time(s), last time on Mar 24 2022, 8:11 pm by TheHappy115.



None.

Mar 25 2022, 3:48 pm IlyaSnopchenko Post #3

The Curious

Probably a wicked set of idle_orders would help work around that, but I'm not sure.



Trial and error... mostly error.

Mar 25 2022, 4:29 pm Cryoc Post #4



Quote from TheHappy115
I'm not sure if there is an easy solution for lurkers (without EUD triggers which isn't basic to do). In terms of siege tanks, it does work in a similar style to lurkers. However, you could substitute the siege tank for a Hero version of said siege tank (Edmund Duke) and just set its stats to a siege tank. Please note: using these hero siege tanks means they will NOT use the player's supply, and will never unsiege (even if 1 zergling was melee range attacking it). This can make it useful if you want to have siege tank emplacements that won't unsiege no matter what. The AI however will obviously not replace these tanks and the portrait itself will still be "dukes" portrait. This also doesn't work if you are using the siege version for something else.

Alternatively, if you give lurkers (burrowed) // siege tanks (sieged) to the player and the burrow/siege mode is disabled, they will be unable to unburrow/unsiege too. Sadly, this doesn't seem to apply to AIs (they probably have some internal function/trigger that does it since they don't use hotkeys/command cards).

You could try having 2 AIs as well (with Zerg 1 AI controlling Lurker, and Zerg 2 controlling other units). However, this comes with a problem where the AI 1 lurkers will splash the AI 2 units (even when allies).
Thanks for the suggestions. Using the hero siege tank instead of the normal one works well, but I had no success with disabling siege mode or burrow as you expected.
Regarding EUD triggers, is there an example map where something like that was done for the lurker and I can maybe just copy/paste or replicate the respective section?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
Please log in to shout.


Members Online: jun3hong, ninokaw193