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.
[05:24 pm]
Vrael -- CUT IT OUT
[05:24 pm]
Vrael -- HEY STOP BEING NICE
[05:01 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: actually I am mad after all, looks like you're gonna have to follow through
didn't I by posting the note?
[04:59 pm]
Ultraviolet -- actually I am mad after all, looks like you're gonna have to follow through
[04:59 pm]
Ultraviolet -- :lol:
[04:46 pm]
NudeRaider -- damn, and here I was prepared and got chatgpt to rephrase it a bunch of times for more people to join the bandwagon. :D https://anotepad.com/notes/7fk84xef
[04:33 pm]
Ultraviolet -- lol it's fine, I was just being sassy :P
[03:19 pm]
Vrael -- maybe my browser window didnt update or something funky
[03:19 pm]
Vrael -- lol sry UV, I must not have read that? I couldve sworn I was the next person to say something after CAFG but clearly based on timestamps I was 4 hours later
[03:18 pm]
Vrael -- :teach:
Please log in to shout.


Members Online: Zincoshine