Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: AIScript "Terran Campaign Area Town" Problems
AIScript "Terran Campaign Area Town" Problems
Sep 24 2009, 8:25 pm
By: laffo16  

Sep 24 2009, 8:25 pm laffo16 Post #1



hey guys, i'm trying to make computer aiscript only harvest minerals & gas without building anything (no depos / scvs).
to do this i give all resources the computer mines to another inactive comp and preserve the trigger so keep the resources down.

i create the CC and SCV using triggers then run the aiscript "area town" at loation "main base" to get started.
problem 1) i find that after trigger create with properties refinery (+5000 gas), the scv's will ignore and not mine from the refinery.
only solution i found) was to add the refinery to the map and not create it with triggers.

this problem i dont mind, as i have found a way around stopping the comp mining from the gas until i trigger other wise.

problem 2) running basicly the same "area town" script at a different location "expansion" which also has precreated refinery.
the scv's at the expo will not mine the gas from the expo. this is the main problem im having.

the only solution i have found, is that when the FIRST "area town" is executed, the 2nd (expo) cc must exist somewere on the map at the same time.
then when the expansion is ready to be setup, the cc is moved into place, the aiscript "town area" executed, scv's created,
now any scv's mining at the expo will then mine the gas aswell.

if the expo cc doesnt exist when when the first "area town" cmd is executed, then when you create the expo cc, no gas will be mined.

*note their is alot of scv transfering between main and expo but it generaly balances its self out after 30secs or so*

am i going nuts, or am i going about this the wrong way. if anyone out their can show me an easy way of getting computer to mine minerals/gas
at expansions with trigger create cc/scvs/gas with ai script. please let me know.

i have attached a working demonstration of the method mentioned up.

Attachments:
!ICCup Destination aBase.scx
Hits: 1 Size: 55.95kb

Post has been edited 1 time(s), last time on Sep 24 2009, 8:44 pm by laffo16.



None.

Sep 26 2009, 9:19 pm laffo16 Post #2



ok after some more testing, what i wrote before remains the same, if your using computer for the sole purpose of mining and dont want him to construct anything at all. then first you will need to transfer all minerals he earns to another player. if you want the computer to expand, you must place every refinery before the game begins, and every command center from the point when the first "area town" script is ran and trigger "move" the command centers into place when required. otherwise, any command centers created after the point when the first "area town" script is ran will not mine any gas from that expansion.

ok, that being said, i decided i didnt want to pre-create a dozen of so cc's for each expansion, so instead of using trigger create/move cc's, i decided to let computer take control of constructing the cc's. with just a few issues, ive got something working and testable.

here is brief overview of the map:
player 2 controls scvs / cc and transfers all minerals to player 3
player 2 will build 1 expansion at a time (2 expos max) (player will take natural before 3rd expo)
player 2 will transfer 7-8 scv's to expansion once complete
if player 2 scv is destoryed while building cc, if half built cc exists, it is destroyed and 400 minerals refunded
player 2 will only expand if no enemies are within expo area
player 2 will rebuild command centers which have been destored as long as no enemies within the area.
player 2 builds nothing other then command centers at expos

bug: newly created scv's wont begin work while a command center is being constructed

map triggers / beacons:
beacon top - switch off expo script
beacon 2nd from top - switch on expo script
beacon 3rd from top - create scv at main
beacon 4th from top - create scv at expo
beacon 5th from top - create scv at 3rd

after each cc begins construction, "switch off expo script" is automaticly executed, so you will need to move drone to 2nd beacon to re-execute to take further expos. note: as newly created/given scvs wont mine while a cc is being constructed, any transfering scv's must finish transfering before "switch on expo script" is next ran.

Attachments:
!ICCup Destination aBase.scx
Hits: 0 Size: 58.41kb



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
Please log in to shout.


Members Online: 8emmae3722re7, Wing Zero, 4evane112rN4