Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Computer player lifting buildings
Computer player lifting buildings
Jun 22 2022, 7:37 pm
By: Andrea Rosa  

Jun 22 2022, 7:37 pm Andrea Rosa Post #1

Just a glitch in the Matrix

I'm sure most of you already know this, but in case you don't...

I always thought there was no way that the computer player could lift buildings without modding the game, but it turns out that there is a script which is capable of doing it - at least with regard to Command Centers. I have discovered this by accident while working on a map: I had intentionally placed a doodad on the right of a Command Center to prevent it from adding a Comsat Station (as an alternative to disabling the technology), however as soon as the map started and the script was executed, the Command Center lifted off and flew to a suitable location, where it could build the add-on. I have not done further testing with other buildings, but I thought this might be of some interest, even if its use is quite limited because you can't tell the computer where to relocate the building, it will decide by itself according to the terrain and map design.

The script is "Terran 10 - Confederate Towns" from the deleted mission Operation Silent Scream, and it is also notable for actively using pre-placed Bunkers without the need of a dedicated "Enter Closest Bunker" script.



Level Design Workshop

''Go to hell'' is basic. ''I hope your favorite StarCraft character gets voiced by Pr0nogo'' is smart. It's possible. It's terrifying.

Jun 22 2022, 9:26 pm DarkenedFantasies Post #2

Roy's Secret Service

It's nothing specific to that AI script. Any script that tells the computer player to build an add-on will relocate the building if the build space is obstructed. Same with bunkers; it's normal behavior for Terran scripts that make use of guards to place them inside bunkers if they're present near the guarded area.




Jun 22 2022, 10:51 pm Andrea Rosa Post #3

Just a glitch in the Matrix

Ok thanks. Strange I didn't notice this before LOL. About Bunkers, it doesn't seem to be limited to the units nearby, as I saw a Firebat walking his way through half of the map in order to enter a very far away Bunker.



Level Design Workshop

''Go to hell'' is basic. ''I hope your favorite StarCraft character gets voiced by Pr0nogo'' is smart. It's possible. It's terrifying.

Jun 23 2022, 12:36 am DarkenedFantasies Post #4

Roy's Secret Service

That's just the "guard shuffle" as the AI doesn't care about distance when assigning guards, mostly apparent at the beginning of maps with preplaced brigades and multiple bases. It merely decided to make that Firebat a guard and assigned it to that region across the map, and ordered it to enter the bunker as one was near that region.




Jun 23 2022, 9:24 am Nekron Post #5



Well that's not quite right, the "guard shuffle" is not really "guard" related - it's guards turning to military units that get placed by defenseuse_
Likewise when units from faraway enter bunkers they're most likely not guards, they're military defenseuse_ units that the AI requested in this region (and pulled since military is also a valid target for entering bunkers)




Jun 23 2022, 9:37 am DarkenedFantasies Post #6

Roy's Secret Service

Oh, I was actually talking about defenseuse units the whole time, but called them guards by mistake. :teehee:




Jun 23 2022, 11:36 am Nekron Post #7



Oh I assumed guard-guards since you mentioned using guards to fill bunkers (since positioning guards around bunkers would be vaguely the best way to keep them filled, as much as SCAI can anyway)




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: Ultraviolet