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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Excalibur, Revenant, eksxo