[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 571: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 627: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 370: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5336: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5336: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5336: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
forum.starcraftai.com • Kryose's AI question(s) - ongoing - Page 3
Page 3 of 6

Posted: Fri May 09, 2008 4:59 pm
by Kryose
Latest code

[spoiler]; ASC3 File generated by ScAIEdit III
;
; Script name : Terran Expansion Custom Level
;
; Terran Multirun Script v1.01 - Created by Kryose - Modified by Ashara
;

script_name Terran Expansion Custom Level
script_id TMCx

; === STARTUP COMMANDS ===
start_town
transports_off
farms_notiming

; === MAX UNIT DEFINITION ===

define_max 100 scv
define_max 75 marine
define_max 75 medic
define_max 25 firebat
define_max 50 ghost
define_max 75 vulture
define_max 20 siege_tank
define_max 20 goliath
define_max 40 wraith
define_max 20 battlecruiser
define_max 2 nuclear_missile
define_max 4 science_vessel
define_max 3 dropship
define_max 2 valkyrie


; === START ===

build 1 command_center 150
wait_build 1 command_center
build 4 scv 130
wait_build 4 scv

multirun m_funding


; === MAIN ===

; --- RESEARCH ---

multirun r_academy
multirun r_engineering_bay
multirun r_machine_shop
multirun r_control_tower
multirun r_armory
multirun r_covert_ops
multirun r_physics_lab
multirun r_science_facility

; --- ECONOMY/BUILDING ---

build 5 scv 80
wait_buildstart 5 scv
build 6 scv 80
wait_buildstart 6 scv
build 7 scv 80
wait_buildstart 7 scv
build 1 supply_depot 80
wait_buildstart 1 supply_depot
build 8 scv 80
wait_buildstart 8 scv

goto b_barracks1
:a_barracks1

farms_timing

build 9 scv 80
wait_buildstart 9 scv
build 10 scv 80
wait_buildstart 10 scv
build 1 refinery 80
wait_buildstart 1 refinery

goto b_startdefense
:a_startdefense

goto b_bunker1
:a_bunker1

build 11 scv 80
wait_buildstart 11 scv

goto b_academy
:a_academy

build 12 scv 80
wait_buildstart 12 scv

goto b_barracks2
:a_barracks2

build 13 scv 80
wait_buildstart 13 scv
build 14 scv 80
wait_buildstart 14 scv

multirun m_rushcheck

goto b_engineeringbay
:a_engineeringbay

build 15 scv 80
wait_buildstart 15 scv
build 16 scv 80
wait_buildstart 16 scv

expand 99 b_expansion

goto b_factory1
:a_factory1

build 17 scv 80
wait_buildstart 17 scv
build 18 scv 80
wait_buildstart 18 scv

build 19 scv 80
wait_buildstart 19 scv

expand 99 b_expansion

goto b_factory2
:a_factory2

build 20 scv 80
wait_buildstart 20 scv

goto b_armory
:a_armory

build 21 scv 80
wait_buildstart 21 scv

multirun m_rushcheck

build 22 scv 80
wait_buildstart 22 scv

goto b_starport
:a_starport

build 23 scv 80
wait_buildstart 23 scv

goto b_bunker2
:a_bunker2

build 24 scv 80
wait_buildstart 24 scv

goto b_turret
:a_turret

build 25 scv 80
wait_buildstart 25 scv

multirun m_rushcheck

expand 99 b_expansion

goto b_starport2
:a_starport2

build 26 scv 80
wait_buildstart 26 scv

goto b_sciencefacility
:a_sciencefacility

goto b_finaldefense
:a_finaldefense

build 27 scv 80
wait_buildstart 27 scv

expand 99 b_expansion

multirun m_rushcheck

expand 99 b_expansion

; === END LOOP ===

:suicideloop
multirun m_masscheck
expand 99 b_expansion
wait 4000
send_suicide 0

notowns_jump science_facility suicideloop
notowns_jump starport suicideloop
train 2 science_vessel

goto suicideloop

; === FUNDING MULTI-RUN ===

:m_funding
wait 1200
give_money
goto m_funding


; === EXPANSION SCRIPT ===

:b_expansion
start_town
build 1 command_center 80
wait_build 1 command_center
build 1 refinery 70

notowns_jump academy b_bunkerexpo
build 1 comsat_station 80

:b_bunkerexpo
notowns_jump barracks b_turretexpo
build 1 bunker 70

:b_turretexpo
notowns_jump engineering_bay endexpo
build 4 missile_turret 70

:endexpo
build 8 scv 80
stop


; === BUILD SCRIPT ===

; --- BARRACKS ---

:b_barracks1
build 1 barracks 80
wait_buildstart 1 barracks
build 2 supply_depot 80
wait_buildstart 2 supply_depot
wait_build 1 barracks
train 1 marine
goto a_barracks1

; --- BUNKER1 ---

:b_bunker1
wait_build 1 barracks
build 1 bunker 80
wait_buildstart 1 bunker
train 4 marine
goto a_bunker1


; --- ACADEMY ---

:b_academy
wait_build 1 barracks
build 1 academy 80
wait_buildstart 1 academy
goto a_academy


; --- BARRACKS2 ---

:b_barracks2
build 4 barracks 80
wait_buildstart 4 barracks
wait_build 1 academy
wait_build 4 barracks
train 4 marine
train 2 firebat
train 2 medic
goto a_barracks2


; --- ENGINEERING BAY ---

:b_engineeringbay
wait_build 1 barracks
build 1 engineering_bay 80
wait_buildstart 1 engineering_bay
wait_build 1 engineering_bay
build 3 missile_turret 70
goto a_engineeringbay


; --- FACTORY1 ---

:b_factory1
wait_build 1 barracks
build 1 factory 80
wait_buildstart 1 factory
wait_build 1 factory
train 2 vulture
build 1 machine_shop 80
wait_buildstart 1 machine_shop
wait_build 1 machine_shop
train 2 siege_tank
train 2 vulture
goto a_factory1


; --- FACTORY2 ---

:b_factory2
wait_build 1 barracks
build 4 factory 80
wait_buildstart 4 factory
wait_build 4 factory
build 2 machine_shop 80
wait_buildstart 2 machine_shop
wait_build 2 machine_shop
train 3 siege_tank
goto a_factory2


; --- ARMORY ---

:b_armory
wait_build 1 factory
build 2 armory 80
wait_buildstart 2 armory
wait_build 1 armory
train 3 goliath
goto a_armory


; --- STARPORT ---

:b_starport
wait_build 1 factory
build 1 starport 80
wait_buildstart 1 starport
wait_build 1 starport
train 2 wraith
build 1 control_tower 80
wait_buildstart 1 control_tower
goto a_starport


; --- BUNKER2 ---

:b_bunker2
wait_build 1 barracks
build 5 bunker 80
train 10 marine
train 4 firebat
goto a_bunker2


; --- TURRET ---

:b_turret
wait_build 1 engineering_bay
build 10 missile_turret 80
goto a_turret


; --- STARPORT2 ---

:b_starport2
wait_build 1 factory
build 4 starport 80
wait_buildstart 4 starport
wait_build 4 starport
build 3 control_tower 80
goto a_starport2


; --- SCIENCE FACILITY ---

:b_sciencefacility
wait_build 1 starport
build 2 science_facility 80
wait_buildstart 2 science_facility
wait_build 2 science_facility
build 1 physics_lab 80
wait_buildstart 1 physics_lab
build 1 covert_ops 80
wait_buildstart 1 covert_ops
train 2 science_vessel
wait_build 1 covert_ops
build 1 nuclear_silo 80
goto a_sciencefacility


; === DEFENSE SCRIPTS ===

; --- STARTING DEFENSE ---

:b_startdefense
defenseclear_gg
defensebuild_gg 1 marine
defenseuse_gg 1 marine
defensebuild_gg 1 firebat
defenseuse_gg 1 firebat
defensebuild_gg 1 vulture
defenseuse_gg 1 vulture
defensebuild_gg 1 siege_tank
defenseuse_gg 1 siege_tank
defensebuild_gg 1 goliath
defenseuse_gg 1 goliath
defensebuild_gg 1 wraith
defenseuse_gg 1 wraith
defensebuild_gg 1 battlecruiser
defenseuse_gg 1 battlecruiser
defenseclear_ag
defensebuild_ag 1 marine
defenseuse_ag 1 marine
defensebuild_ag 1 goliath
defenseuse_ag 1 goliath
defensebuild_ag 1 wraith
defenseuse_ag 1 wraith
defensebuild_ag 1 battlecruiser
defenseuse_ag 1 battlecruiser
defenseclear_aa
defensebuild_aa 1 valkyrie
defenseuse_aa 1 valkyrie
defensebuild_aa 1 wraith
defenseuse_aa 1 wraith
defensebuild_aa 1 battlecruiser
defenseuse_aa 1 battlecruiser
defenseclear_ga
defensebuild_ga 1 wraith
defenseuse_ga 1 wraith
defensebuild_ga 1 battlecruiser
defenseuse_ga 1 battlecruiser
goto a_startdefense


; --- FINAL DEFENSE ---

:b_finaldefense
defenseclear_gg
defensebuild_gg 2 ghost
defenseuse_gg 2 ghost
defensebuild_gg 1 siege_tank
defenseuse_gg 1 siege_tank
defensebuild_gg 1 goliath
defenseuse_gg 1 goliath
defensebuild_gg 1 wraith
defenseuse_gg 1 wraith
defensebuild_gg 1 battlecruiser
defenseuse_gg 1 battlecruiser
defenseclear_ag
defensebuild_ag 1 goliath
defenseuse_ag 1 goliath
defensebuild_ag 2 ghost
defenseuse_ag 2 ghost
defensebuild_ag 1 wraith
defenseuse_ag 1 wraith
defensebuild_ag 1 battlecruiser
defenseuse_ag 1 battlecruiser
defenseclear_aa
defensebuild_aa 1 valkyrie
defenseuse_aa 1 valkyrie
defensebuild_aa 1 wraith
defenseuse_aa 1 wraith
defensebuild_aa 1 battlecruiser
defenseuse_aa 1 battlecruiser
defenseclear_ga
defensebuild_ga 1 wraith
defenseuse_ga 1 wraith
defensebuild_ga 1 battlecruiser
defenseuse_ga 1 battlecruiser
goto a_finaldefense


; === RUSH CHECKS ===

:m_rushcheck

; --- RUSH BATTLECRUISER/WRAITH CHECK---

notowns_jump physics_lab b_wraithcheck
notowns_jump control_tower b_wraithcheck
wait 1200
resources_jump 1500 1000 b_cruiserrush
:a_cruiserrush


; --- RUSH WRAITH CHECK ---

:b_wraithcheck
notowns_jump starport b_groundcheck
wait 800
resources_jump 750 400 b_wraithrush
:a_wraithrush


; --- RUSH MEDIC/MARINE/VULTURE/TANK CHECK ---

:b_groundcheck
notowns_jump machine_shop b_tankcheck
notowns_jump academy b_tankcheck
notowns_jump barracks b_tankcheck
wait 600
resources_jump 1200 300 b_groundrush
:a_groundrush


; --- RUSH VULTURE/TANK CHECK ---

:b_tankcheck
notowns_jump machine_shop b_marinecheck
wait 400
resources_jump 750 300 b_tankrush
:a_tankrush


; --- RUSH MEDIC/MARINE CHECK ---

:b_marinecheck
notowns_jump academy nocheck
notowns_jump barracks nocheck
wait 200
resources_jump 500 50 b_marinerush
:a_marinerush

:nocheck
stop


; === RUSH ATTACK SCRIPTS ===

; --- MEDIC/MARINE RUSH ---

:b_marinerush
wait_build 1 barracks
wait_build 1 academy
train 10 marine
train 4 medic
attack_add 10 marine
attack_add 4 medic
attack_prepare
attack_do
attack_clear
goto a_marinerush


; --- VULTURE/TANK RUSH ---

:b_tankrush
wait_build 1 factory
wait_build 1 machine_shop
train 5 siege_tank
train 5 vulture
attack_add 5 siege_tank
attack_add 5 vulture
attack_prepare
attack_do
attack_clear
goto a_tankrush


; --- MEDIC/MARINE/VULTURE/TANK RUSH ---

:b_groundrush
wait_build 1 barracks
wait_build 1 academy
wait_build 1 factory
wait_build 1 machine_shop
train 5 siege_tank
train 4 vulture
train 8 marine
train 3 medic
attack_add 5 siege_tank
attack_add 4 vulture
attack_add 8 marine
attack_add 3 medic
attack_prepare
attack_do
attack_clear
goto a_groundrush


; --- WRAITH RUSH ---

:b_wraithrush
wait_build 1 starport
train 6 wraith
attack_add 6 wraith
attack_prepare
attack_do
attack_clear
goto a_wraithrush


; --- BATTLECRUISER/WRAITH RUSH ---

:b_cruiserrush
wait_build 1 starport
wait_build 1 control_tower
wait_build 1 science_facility
wait_build 1 physics_lab
train 4 wraith
train 2 battlecruiser
attack_add 4 wraith
attack_add 2 battlecruiser
attack_prepare
attack_do
attack_clear
goto a_cruiserrush


; === MASS CHECKS ===

:m_masscheck

; --- MASS BATTLECRUISER CHECK ---

notowns_jump control_tower b_masswraithcheck
notowns_jump physics_lab b_masswraithcheck
wait 1000
resources_jump 2000 2000 b_cruisermass
:a_cruisermass

; --- MASS WRAITH CHECK ---

:b_masswraithcheck
notowns_jump starport b_masstankcheck
wait 1000
resources_jump 2000 1800 b_wraithmass
:a_wraithmass

; --- MASS VULTURE/TANK/GOLIATH CHECK ---

:b_masstankcheck
notowns_jump machine_shop b_massinfantrycheck
notowns_jump armory b_massinfantrycheck
wait 1000
resources_jump 2000 1500 b_tankmass
:a_tankmass

; --- MASS MEDIC/MARINE/GHOST CHECK ---

:b_massinfantrycheck
notowns_jump academy b_massmedicmarinecheck
notowns_jump barracks b_massmedicmarinecheck
notowns_jump covert_ops b_massmedicmarinecheck
wait 1000
resources_jump 2000 500 b_infantrymass
:a_infantrymass

; --- MASS MEDIC/MARINE CHECK ---

:b_massmedicmarinecheck
notowns_jump academy b_massmarinecheck
notowns_jump barracks b_massmarinecheck
wait 1000
resources_jump 2000 250 b_medicmarinemass
:a_medicmarinemass

; --- MASS MARINE CHECK ---

:b_massmarinecheck
notowns_jump academy nomasscheck
notowns_jump barracks nomasscheck
wait 1000
resources_jump 2000 0 b_marinemass
:a_marinemass

:nomasscheck
stop


; === MASS ATTACK SCRIPTS ===

; --- MARINE MASS ---


:b_marinemass
wait_build 1 barracks
train 50 marine
goto a_marinemass


; --- MEDIC/MARIN MASS ---

:b_medicmarinemass
wait_build 1 barracks
wait_build 1 armory
train 40 marine
train 10 medic
goto a_medicmarinemass


; --- MEDIC/MARINE/GHOST MASS ---

:b_infantrymass
wait_build 1 barracks
wait_build 1 academy
wait_build 1 covert_ops
train 30 marine
train 10 medic
train 10 ghost
train 1 nuclear_missile
goto a_infantrymass


; --- VULTURE/TANK/GOLIATH MASS ---

:b_tankmass
wait_build 1 machine_shop
wait_build 1 armory
train 12 siege_tank
train 20 vulture
train 15 goliath
goto a_tankmass


; --- WRAITH MASS ---

:b_wraithmass
wait_build 1 starport
train 30 wraith
goto a_wraithmass


; --- BATTLECRUISER MASS ---


:b_cruisermass
wait_build 1 control_tower
wait_build 1 physics_lab
train 15 battlecruiser
goto a_cruisermass


; === RESEARCH MULTI-RUN ===

; --- ACADEMY UPGRADES ---

:r_academy
wait_build 1 academy
tech stim_packs 70
wait 3600
upgrade 1 marine_range 70
wait 3600
tech optical_flare 70
wait 3600
upgrade 1 medic_mana 70
wait 3600
tech restoration 70
stop


; --- ENGINEERING BAY UPGRADES ---

:r_engineering_bay
wait_build 1 engineering_bay
upgrade 1 t_infantry_weapon 70
wait 3600
upgrade 1 t_infantry_armor 70
wait 3600
wait_build 1 science_facility
upgrade 2 t_infantry_weapon 70
wait 3600
upgrade 2 t_infantry_armor 70
wait 3600
upgrade 3 t_infantry_weapon 70
wait 3600
upgrade 3 t_infantry_armor 70
stop


; --- MACHINE SHOP UPGRADES ---

:r_machine_shop
wait_build 1 machine_shop
tech spider_mines 70
wait 3600
tech siege_mode 70
wait 3600
upgrade 1 vulture_speed 70
wait 3600
wait_build 1 armory
upgrade 1 goliath_range 70
stop


; --- CONTROL TOWER UPGRADES ---

:r_control_tower
wait_build 1 control_tower
tech cloaking_field 70
wait 3600
upgrade 1 wraith_mana 70
stop


; --- ARMORY UPGRADES ---

:r_armory
wait_build 2 armory
upgrade 1 t_vehicle_weapon 70
upgrade 1 t_ship_weapon 70
wait 3600
wait_build 1 science_facility
upgrade 2 t_vehicle_weapon 70
upgrade 2 t_ship_weapon 70
wait 3600
upgrade 3 t_vehicle_weapon 70
upgrade 3 t_ship_weapon 70
stop


; --- COVERT OPS UPGRADES ---

:r_covert_ops
wait_build 1 covert_ops
tech personnel_cloaking 70
wait 3600
upgrade 1 ghost_mana 70
wait 3600
tech lockdown 70
wait 3600
upgrade 1 ghost_sight 70
stop


; --- PHYSICS LAB UPGRADES ---

:r_physics_lab
wait_build 1 physics_lab
tech yamato_gun 70
wait 3600
upgrade 1 battlecruiser_mana 70
stop

; --- SCIENCE FACILITY UPGRADES ---

:r_science_facility
wait_build 1 science_facility
wait_build 1 physics_lab
wait_build 1 covert_ops
tech irradiate 70
wait 3600
tech emp_shockwave 70
wait 3600
upgrade 1 science_vessel_mana 70
wait 3600
tech defensive_matrix 70
stop[/spoiler]

Posted: Fri May 09, 2008 5:20 pm
by Kryose

Posted: Fri May 09, 2008 5:29 pm
by ashara

Posted: Sun May 18, 2008 2:37 pm
by Symmetry
[quote name='Bhodi' post='3918' date='May 8 2008, 03:50 PM'][quote name='Kryose' post='3879' date='May 7 2008, 06:45 AM']I think I figured out my comsat issue (where it would not build a comsat during the expansion script).

As you can see in the old code, I was doing a wait_build 1 barracks command. And from what I have learned so far, the expansion script is considered it's own home-town, so even though I had a barracks build in my main base, the expansion base did not have one, and since it would never have one, it would never get past that line.[/quote]

from what I understand each time you use the start_town command the buildings are "reset". So

build 10 probe 80
build 1 barracks 80
start_town
build 10 probe 80
build 1 barracks 80
start_town
build 10 probe 80
build 1 barracks 80

this will produce 30 probes and 3 barracks.
[/quote]

What crazy hybrid race do you code AI for? :P

Posted: Sun May 18, 2008 5:42 pm
by Bhodi
:roll: I see what you mean. I meant * drones of course. :D not probes.

edit:
* drones = joke. I'm sure you all picked up on my sarcastic attempt to correct my previous blunder, but you never know.

Posted: Sun May 18, 2008 5:58 pm
by poiuy_qwert
Oh so its a Zerg-Terran hybrid, not a Protoss-Terran hybrid then? :P

Posted: Sun May 18, 2008 9:27 pm
by Symmetry
[quote name='Bhodi' post='4083' date='May 18 2008, 01:42 PM']:roll: I see what you mean. I meant drones of course. :D not probes.[/quote]

:lol:

Edit: Gah, the animated version is so much cooler. Ah, here we are:

Posted: Mon May 19, 2008 11:24 am
by billking
Is there any way for me to write a script with the following effect, assuming I have no idea how many SCVs the AI will have before it runs this code... (i'm leaving out waits, proper syntax, etc.)

:RaxPlusFunding
build 1 more SCV
build 1 more barracks
build 3 more SCV
build 1 more supply depot
build 2 more SCV
train 2 more marines
stop

I'm wondering if start_town would do it, but I'm worried about 1) computer placing rax where a CC should be and 2) command to build SCVs being ignored as no CC is in the new town yet.

Posted: Mon May 19, 2008 4:16 pm
by Spirus
assuming that you already have a town started and this is a branch then, yes:

...
multirun more_dudes
...

:more_dudes
start_town
build 1 scv
build 1 rax
build 4 scv
build 1 supply_depot
build 5 scv
train 2 marine
stop

1. the Scv's will be built if there exists a CC already
2. the rax won't go where the CC is if it's already there? :)