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.
[05:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[04:31 pm]
Zoan -- where's the option to delete my account
[04:30 pm]
Zoan -- goodbye forever
[04:30 pm]
Zoan -- it's over, I've misclicked my top right magic box spot
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
Please log in to shout.


Members Online: Wing Zero, jun3hong, Vrael