Kryose T-AI v1.1 - no $

Help - Resources - AI Scripting - Grafting - Plugins - Modding Projects
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Wed Jun 11, 2008 7:19 pm

@ Baja. At first I was thinking the same thing you were. So I tested the AI by setting the random_jumps to gotos so I could find out which block was the problem (using TvP as test). During my testing, each block worked perfectly fine. So I thought, hmm, maybe it's something to do with the random_jumps themselves. So I put the random_jumps back in and tested many different replays with TvZ or TvP. I was hoping to find which random block was a problem by finding out which two actually worked, and, by process of elimination, that would tell me which one was a problem. Unfortunately, with my 1v1 tests, each random block ran perfectly fine in one game or another with not a single replay ending up with the bug.

This is when I decided that it was very similar to the BW Zerg AI where every now and then the zerg build 11 drones and nothing else. Also, I was able to find out that it only happened when there was more than one Terran computer in the game at the same time. This would work out with one Terran computer going through the script perfectly fine, and any additional Terran computers stopping after the bunkers and marines.

So, I am stumped... As I said before, it might be a problem with the r_science_facility just before the random jumps. I will test that tonight, but I am only guessing right now.


@ poiuy_qwert. That would be quite helpful... Also, how do I get my AI to send messages to the player?

Thanks,
Kryose
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Wed Jun 11, 2008 7:31 pm

Any help is AWESOME as this bug has been a pain in the ass since I released it.

Thanks
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Wed Jun 11, 2008 7:44 pm

If you want to computer to talk just use the debug() command. It takes two parameters, the first being a block name, and the second being a string to show on screen. It acts exactly like the goto() command, with the exception of printing the text to the screen. One little thing to note though is that the characeters ( ) and , are restricted because they are used in the AI code syntax, so to represent them you will need to use TBL formating. TBL formatting is just the ASCII code of the character you want, inside < and >. For example comma's have an ASCII code of 44, so you would just use <44> to represent a comma. There is an example in the thread mentioned below. (Note: Using TBL formatting you can also use colors in your text. If you want to know what colors you can use, check the In-Game colors under the Reference section in the PyTBL docs)

Another thing i'll be releasing along with the SCAIEdit to PyAI converter is mentioned in may help you with pinpointing your problem. It goes through your code and replaces every command that executes a jump, with the equivalently in debug() commands, making it easy to see which block of code you were in when the problem occured.
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby poiuy_qwert » Thu Jun 12, 2008 12:27 am

Yeah the default aiscript.bin is very close to being full (only about 6000 bytes left to work with, which isn't very much), but bwscript.bin is less then half-full, so you can put stuff there. is where I tried to explain why its restricted in that way if you want to know.
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Fri Jul 31, 2009 7:09 pm

Version 2.0 in the works.... Shhhh /ph34r.gif' class='bbc_emoticon' alt=':ph34r:' />

[spoiler]# ASC3 File generated by ScAIEdit III
#
# Script name : Terran Expansion Custom Level
#
# Kryose Random Build 2.0 - Created by Kryose
#
# Based on JH24's revision of Archon_Wings re-imagining of Kryose' no Terran
#

TMCx(1342, 101, aiscript):


# === STARTUP COMMANDS ===

start_town()
transports_off()
farms_notiming()


# === MAX UNIT DEFINITION ===

define_max(70, Terran SCV)
define_max(100, Terran Marine)
define_max(30, Terran Medic)
define_max(100, Terran Firebat)
define_max(100, Terran Ghost)
define_max(90, Terran Vulture)
define_max(65, Terran Siege Tank<0>Tank Mode)
define_max(80, Terran Goliath)
define_max(40, Terran Wraith)
define_max(20, Terran Battlecruiser)
define_max(2, Nuclear Missile)
define_max(8, Terran Science Vessel)
define_max(5, Terran Dropship)
define_max(255, Terran Valkyrie)


# === START ===

build(1, Terran Command Center, 80)
wait_build(1, Terran Command Center)
build(8, Terran SCV, 80)
wait_build(8, Terran SCV)

build(1, Terran Supply Depot, 80)
build(1, Terran Barracks, 80)

multirun(scv)
multirun(cloak_detect)

random_jump(170, mech)


# === INFANTRY MAIN STAGE 1 ===

multirun(moar rax)

wait_build(1, Terran Barracks)


# === INFANTRY EARLY DEFENCE ===

defenseuse_gg(1, Terran Marine)
defenseuse_ga(1, Terran Marine)
defenseuse_aa(1, Terran Marine)
defenseuse_ag(1, Terran Marine)
defensebuild_gg(1, Terran Marine)
defensebuild_ga(1, Terran Marine)
defensebuild_aa(1, Terran Marine)
defensebuild_ag(1, Terran Marine)


# === INFANTRY TECH ===

train(1, Terran Marine)

farms_timing()

multirun(defense)
multirun(ebay_up)
multirun(tech)

train(16, Terran Marine)

random_jump(192, acad wait)


# === INFANTRY 1ST ATTACK ===

attack_add(16, Terran Marine)
attack_prepare()
wait(50)
attack_do()
attack_clear()


# === INFANTRY 2ND DEFENCE ===

--acad wait--
defensebuild_gg(1, Terran Marine)
defensebuild_ga(1, Terran Marine)
defensebuild_aa(1, Terran Marine)
defensebuild_ag(1, Terran Marine)
wait(200)


# === INFANTRY 2ND ATTACK ===

notowns_jump(Terran Academy, acad wait)

train(2, Terran Firebat)
train(2, Terran Medic)

random_jump(128, i stage 2)
random_jump(85, marine 1)
random_jump(128,firebat 1)

attack_add(15, Terran Marine)
attack_add(3, Terran Medic)
attack_add(4, Terran Firebat)
wait(300)
goto(attack 2)

--firebat 1--
attack_add(13, Terran Firebat)
attack_add(3, Terran Medic)
wait(300)
goto(attack 2)

--marine 1--
attack_add(20, Terran Marine)
attack_add(3, Terran Medic)
wait(300)

--attack 2--
attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()


# === INFANTRY MAIN STAGE 2 ===

--i stage 2--
expand(99, expansion)
train(6, Terran Marine)


# === INFANTRY 3RD ATTACK ===

notowns_jump(Terran Academy, marine only 2)

random_jump(85, marine 2)
random_jump(128,firebat 2)

attack_add(20, Terran Marine)
attack_add(4, Terran Firebat)
attack_add(5, Terran Medic)
wait(300)
goto(attack 3)

--marine 2--
attack_add(27, Terran Marine)
attack_add(5, Terran Medic)
wait(300)
goto(attack 3)

--firebat 2--
attack_add(22, Terran Firebat)
attack_add(5, Terran Medic)
wait(300)
goto(attack 3)

--marine only 2--
build(1, Terran Academy, 80)
wait_buildstart(1, Terran Academy)
attack_add(35, Terran Marine)
wait(300)

--attack 3--
random_jump(84, i stage 3)
attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()


# === INFANTRY MAIN STAGE 3 ===

--i stage 3--
wait(1)


# === INFANTRY 3RD DEFENCE ===

notowns_jump(Terran Machine Shop, i stage 2)
defenseuse_gg(1, Terran Goliath)
defenseuse_ga(1, Terran Goliath)
defenseuse_aa(1, Terran Goliath)
defenseuse_ag(1, Terran Goliath)
defensebuild_aa(1, Terran Goliath)
defensebuild_ag(1, Terran Goliath)
defensebuild_gg(1, Terran Siege Tank<0>Tank Mode)
defensebuild_ga(1, Terran Siege Tank<0>Tank Mode)
defenseuse_gg(1, Terran Siege Tank<0>Tank Mode)
defenseuse_ga(1, Terran Siege Tank<0>Tank Mode)

expand(99, expansion)
train(6, Terran Marine)


# === INFANTRY 4TH ATTACK ===

attack_add(5, Terran Siege Tank<0>Tank Mode)

notowns_jump(Terran Academy, marine only 3)

--no tech 3--
random_jump(128, all infantry 3)
random_jump(64, marine firebat 3)
random_jump(85, ghost 3)
random_jump(128, marine 3)
goto(firebat 3)

--all infantry 3--
notowns_jump(Terran Covert Ops, no tech 3)
attack_add(20, Terran Marine)
attack_add(12, Terran Medic)
attack_add(4, Terran Firebat)
attack_add(4, Terran Ghost)
wait(500)
attack_prepare()
random_jump(32, all infantry 4)
goto(attack 4)

--marine 3--
attack_add(30, Terran Marine)
attack_add(10, Terran Medic)
wait(500)
attack_prepare()
random_jump(32, marine 4)
goto(attack 4)

--firebat 3--
attack_add(28, Terran Firebat)
attack_add(10, Terran Medic)
wait(500)
attack_prepare()
random_jump(32, firebat 4)
goto(attack 4)

--ghost 3--
notowns_jump(Terran Covert Ops, no tech 3)
attack_add(25, Terran Ghost)
attack_add(10, Terran Medic)
wait(500)
attack_prepare()
random_jump(32, ghost 4)
goto(attack 4)

--marine firebat 3--
attack_add(15, Terran Marine)
attack_add(12, Terran Medic)
attack_add(10, Terran Firebat)
wait(500)
attack_prepare()
random_jump(32, marine firebat 4)
goto(attack 4)

--marine only 3--
build(1, Terran Academy, 80)
wait_buildstart(1, Terran Academy)
attack_add(40, Terran Marine)
wait(500)
attack_prepare()
random_jump(32, marine only 4)

--attack 4--
random_jump(51, i stage 5)
random_jump(96, i stage 4)


# === INFANTRY FINAL ATTACK STAGE ===

--i final--
wait(50)
attack_do()
attack_clear()
clear_combatdata()
wait(100)

goto(i stage 3)


# === INFANTRY MAIN STAGE 4 ===

--i stage 4--
wait(1)

notowns_jump(Terran Science Facility, i final)
wait(1)

notowns_jump(Terran Control Tower, i final)
train(3, Terran Science Vessel)
wait(1)

goto(i final)


# === INFANTRY MAIN STAGE 5 ===

--i stage 5--
wait(1)

train(6, Terran Marine)

attack_add(5, Terran Siege Tank<0>Tank Mode)
attack_add(5, Terran Goliath)

notowns_jump(Terran Academy, marine only 4)

--no tech 4--
random_jump(128, all infantry 4)
random_jump(64, marine firebat 4)
random_jump(85, ghost 4)
random_jump(128, marine 4)
goto(firebat 4)

--all infantry 4--
notowns_jump(Terran Covert Ops, no tech 4)
attack_add(18, Terran Marine)
attack_add(12, Terran Medic)
attack_add(4, Terran Firebat)
attack_add(4, Terran Ghost)
wait(500)
goto(attack 5)

--marine 4--
attack_add(30, Terran Marine)
attack_add(10, Terran Medic)
wait(500)
goto(attack 5)

--firebat 4--
attack_add(28, Terran Firebat)
attack_add(10, Terran Medic)
wait(500)
goto(attack 5)

--ghost 4--
notowns_jump(Terran Covert Ops, no tech 4)
attack_add(25, Terran Ghost)
attack_add(10, Terran Medic)
wait(500)
goto(attack 5)

--marine firebat 4--
attack_add(15, Terran Marine)
attack_add(12, Terran Medic)
attack_add(10, Terran Firebat)
wait(500)
goto(attack 5)

--marine only 4--
attack_add(40, Terran Marine)
wait(500)


--attack 5--
goto(i final)


# === INFANTRY MULTIRUNS ===

--expansion--
start_town()
build(1, Terran Command Center, 90)
wait_build(1, Terran Command Center)
multirun(scv)
get_oldpeons(8)
build(1, Terran Bunker, 30)
wait_buildstart(1, Terran Bunker)

--ebay expo--
wait(300)

notowns_jump(Terran Engineering Bay, ebay expo)
player_need(1, Terran Academy)
build(1, Terran Comsat Station, 80)
wait_buildstart(1, Terran Comsat Station)
build(1, Terran Missile Turret, 80)
wait_build(1, Terran Missile Turret)
build(1, Terran Barracks, 80)
wait_build(1, Terran Barracks)
build(2, Terran Missile Turret, 80)
wait_build(2, Terran Missile Turret)
build(3, Terran Missile Turret, 80)
wait_build(3, Terran Missile Turret)
build(10, Terran SCV, 60)
wait_buildstart(10, Terran SCV)
build(12, Terran SCV, 60)
wait_buildstart(12, Terran SCV)
build(13, Terran SCV, 60)
wait_buildstart(13, Terran SCV)
build(14, Terran SCV, 60)
wait_buildstart(14, Terran SCV)
build(2, Terran Barracks, 30)
wait_build(2, Terran Barracks)
build(2, Terran Bunker, 30)
wait_buildstart(2, Terran Bunker)
build(3, Terran Bunker, 30)
wait_buildstart(3, Terran Bunker)
stop()


--ebay_up--
wait(500)

notowns_jump(Terran Engineering Bay, ebay_up)
upgrade(1, Terran Infantry Weapons, 60)
wait(4500)

upgrade(1, Terran Infantry Armor, 60)
wait(3000)

player_need(2, Terran Engineering Bay)
wait(1500)

wait_build(1, Terran Science Facility)
upgrade(2, Terran Infantry Weapons, 50)
upgrade(2, Terran Infantry Armor, 50)
wait(4500)

upgrade(3, Terran Infantry Weapons, 40)
upgrade(3, Terran Infantry Armor, 40)
stop()


--tech--
wait_build(3, Terran Barracks)
build(1, Terran Engineering Bay, 80)
build(1, Terran Academy, 80)
wait_build(1, Terran Academy)
tech(Stim Packs, 30)
wait(2700)

upgrade(1, U-238 Shells, 70)
build(1, Terran Factory, 80)
wait_build(1, Terran Factory)
build(1, Terran Machine Shop, 80)
wait_build(1, Terran Machine Shop)
build(1, Terran Comsat Station, 80)
tech(Tank Siege Mode, 60)
wait_build(4, Terran Barracks)
build(1, Terran Starport, 30)
wait_build(1, Terran Starport)
build(1, Terran Control Tower, 30)
check_transports()
build(1, Terran Science Facility, 30)
wait_build(1, Terran Science Facility)
build(1, Terran Covert Ops, 30)
wait_build(1, Terran Covert Ops)
multirun(vesseltech)
multirun(Ghosttech)
build(2, Terran Factory, 80)
wait_build(2, Terran Factory)
build(2, Terran Machine Shop, 80)
wait_build(2, Terran Machine Shop)
stop()


--scv--
wait_build(1, Terran Command Center)
build(1, Terran SCV, 80)
wait_build(1, Terran SCV)
build(2, Terran SCV, 80)
wait_build(2, Terran SCV)
build(3, Terran SCV, 80)
wait_build(3, Terran SCV)
build(4, Terran SCV, 80)
wait_build(4, Terran SCV)
build(5, Terran SCV, 80)
wait_build(5, Terran SCV)
build(6, Terran SCV, 80)
wait_build(6, Terran SCV)
build(7, Terran SCV, 80)
wait_build(7, Terran SCV)
build(8, Terran SCV, 80)
wait_build(8, Terran SCV)
build(9, Terran SCV, 80)
wait_build(9, Terran SCV)
build(10, Terran SCV, 80)
wait_build(10, Terran SCV)
build(11, Terran SCV, 80)
wait_build(11, Terran SCV)
build(12, Terran SCV, 80)
wait_build(12, Terran SCV)
build(13, Terran SCV, 80)
wait_build(13, Terran SCV)
build(14, Terran SCV, 80)
wait_build(14, Terran SCV)
build(15, Terran SCV, 80)
wait_build(15, Terran SCV)
build(16, Terran SCV, 80)
wait_build(16, Terran SCV)
build(17, Terran SCV, 80)
wait_build(17, Terran SCV)
build(18, Terran SCV, 80)
wait_build(18, Terran SCV)
build(19, Terran SCV, 80)
wait_build(19, Terran SCV)
build(20, Terran SCV, 80)
wait_build(20, Terran SCV)
build(21, Terran SCV, 80)
wait_build(21, Terran SCV)
build(22, Terran SCV, 80)
wait_build(22, Terran SCV)
build(23, Terran SCV, 80)
wait_build(23, Terran SCV)
build(24, Terran SCV, 80)
wait_build(24, Terran SCV)
build(25, Terran SCV, 80)
wait_build(25, Terran SCV)
stop()


--cloak_detect--
enemyowns_jump(Protoss Templar Archives, detection)
enemyowns_jump(Terran Starport, detection)
enemyowns_jump(Zerg Lair, detection)
wait(400)

goto(cloak_detect)


--detection--
build(1, Terran Academy, 100)
wait_build(1, Terran Academy)
build(1, Terran Comsat Station, 80)
player_need(1, Terran Engineering Bay)


--no ebay check--
wait(200)

notowns_jump(Terran Engineering Bay, no ebay check)
build(1, Terran Missile Turret, 80)
wait(300)

build(2, Terran Missile Turret, 80)
wait(300)

build(3, Terran Missile Turret, 80)
stop()


--defense--
build(1, Terran Bunker, 80)
wait_build(1, Terran Bunker)
build(3, Terran Bunker, 80)
wait(2700)

build(5, Terran Bunker, 80)
wait(3300)

build(6, Terran Bunker, 80)
wait(1000)

build(7, Terran Bunker, 80)

stop()


--moar rax--
build(2, Terran Barracks, 80)
wait_build(2, Terran Barracks)
wait(1800)

build(3, Terran Barracks, 80)
wait_build(1, Terran Factory)
build(4, Terran Barracks, 40)
wait_build(1, Terran Science Facility)
build(5, Terran Barracks, 40)
wait(3500)

build(7, Terran Barracks, 30)
wait(330)

random_jump(127, Nuketech)
wait(700)

stop()


--armory_up--
wait_build(1, Terran Armory)
upgrade(1, Terran Vehicle Weapons, 50)
wait(4500)

upgrade(1, Terran Vehicle Plating, 50)
wait(4500)

wait_build(1, Terran Science Facility)
build(2, Terran Armory, 80)
wait_build(2, Terran Armory)
upgrade(2, Terran Vehicle Weapons, 40)
upgrade(2, Terran Vehicle Plating, 40)
wait(4500)

upgrade(3, Terran Vehicle Weapons, 40)
upgrade(3, Terran Vehicle Plating, 30)

stop()


# === MECH MAIN STAGE 1 ===

--mech--
wait_build(1, Terran Barracks)
define_max(8, Terran Marine)
define_max(8, Terran Firebat)
define_max(8, Terran Medic)
define_max(8, Terran Ghost)


# === MECH 1ST DEFENCE ===

defenseuse_gg(1, Terran Marine)
defenseuse_ga(1, Terran Marine)
defenseuse_aa(1, Terran Marine)
defenseuse_ag(1, Terran Marine)
defensebuild_gg(1, Terran Marine)
defensebuild_ga(1, Terran Marine)
defensebuild_aa(1, Terran Marine)
defensebuild_ag(1, Terran Marine)

train(1, Terran Marine)

multirun(m defense)
farms_timing()

build(1, Terran Refinery, 80)
train(2, Terran Marine)

random_jump(128, air)

multirun(m tech)
multirun(moar fact)

train(3, Terran Marine)

multirun(armory_up)

--fact wait--


# === MECH 2ND DEFENCE ===

defensebuild_gg(1, Terran Marine)
defensebuild_ga(1, Terran Marine)
defensebuild_aa(1, Terran Marine)
defensebuild_ag(1, Terran Marine)
wait(200)

notowns_jump(Terran Factory, fact wait)

defensebuild_gg(1, Terran Vulture)
defensebuild_ga(1, Terran Vulture)

train(2, Terran Vulture)
wait_build(1, Terran Machine Shop)
train(1, Terran Siege Tank<0>Tank Mode)

defensebuild_gg(1, Terran Siege Tank<0>Tank Mode)
defensebuild_ga(1, Terran Siege Tank<0>Tank Mode)
defenseuse_gg(1, Terran Siege Tank<0>Tank Mode)
defenseuse_ga(1, Terran Siege Tank<0>Tank Mode)

random_jump(160, m stage 2)


# === MECH 1ST ATTACK ===

train(4, Terran Vulture)

notowns_jump(Terran Machine Shop, vulture 1)

random_jump(85, vulture 1)
random_jump(128, tank 1)

attack_add(10, Terran Vulture)
attack_add(5, Terran Siege Tank<0>Tank Mode)
wait(500)
goto(m attack 1)

--vulture 1--
attack_add(18, Terran Vulture)
wait(500)
goto(m attack 1)

--tank 1--
attack_add(9, Terran Siege Tank<0>Tank Mode)
wait(500)
goto(m attack 1)

--m attack 1--
attack_prepare()
wait(50)
attack_do()
attack_clear()


# === MECH MAIN 2ND STAGE ===

--m stage 2--
expand(99, m expansion)
train(3, Terran Siege Tank<0>Tank Mode)

# === MECH 2ND ATTACK ===

notowns_jump(Terran Machine Shop, vulture 2)

random_jump(85, vulture 2)
random_jump(128, tank 2)

attack_add(9, Terran Siege Tank<0>Tank Mode)
attack_add(13, Terran Vulture)
wait(600)
goto(m attack 2)

--vulture 2--
attack_add(25, Terran Vulture)
wait(600)
goto(m attack 2)

--tank 2--
attack_add(15, Terran Siege Tank<0>Tank Mode)
wait(600)
goto(m attack 2)

--m attack 2--
random_jump(72, m stage 3)
attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()
wait(1)

notowns_jump(Terran Armory, m stage 2)


# === MECH MAIN STAGE 3 ===

--m stage 3--
wait(1)


# === MECH 3RD DEFENCE ===

notowns_jump(Terran Armory, m stage 2)
defenseuse_gg(1, Terran Goliath)
defenseuse_ga(1, Terran Goliath)
defenseuse_aa(1, Terran Goliath)
defenseuse_ag(1, Terran Goliath)
defensebuild_gg(1, Terran Goliath)
defensebuild_ga(1, Terran Goliath)
defensebuild_aa(1, Terran Goliath)
defensebuild_ag(1, Terran Goliath)

train(7, Terran Goliath)
expand(99, expansion)


# === MECH 3RD ATTACK ===

notowns_jump(Terran Armory, tank vulture 3)
notowns_jump(Terran Machine Shop, goliath vulture 3)

--m no tech 1--
wait(1)
random_jump(36, tank goliath 3)
random_jump(42, tank vulture 3)
random_jump(51, goliath vulture 3)
random_jump(64, goliath 3)
random_jump(85, vulture 3)
random_jump(128, tank 3)

attack_add(12, Terran Siege Tank<0>Tank Mode)
attack_add(16, Terran Goliath)
attack_add(16, Terran Vulture)
random_jump(32, m all 4)
goto(m attack 3)

--vulture 3--
attack_add(35, Terran Vulture)
random_jump(32, vulture 4)
goto(m attack 3)

--tank 3--
notowns_jump(Terran Machine Shop, m no tech 1)
attack_add(25, Terran Siege Tank<0>Tank Mode)
random_jump(32, tank 4)
goto(m attack 3)

--goliath 3--
notowns_jump(Terran Armory, m no tech 1)
attack_add(30, Terran Goliath)
random_jump(32, goliath 4)
goto(m attack 3)

--tank vulture 3--
notowns_jump(Terran Machine Shop, m no tech 1)
attack_add(18, Terran Siege Tank<0>Tank Mode)
attack_add(22, Terran Vulture)
random_jump(32, tank vulture 4)
goto(m attack 3)

--goliath vulture 3--
notowns_jump(Terran Armory, m no tech 1)
attack_add(22, Terran Goliath)
attack_add(22, Terran Vulture)
random_jump(32, goliath vulture 4)
goto(m attack 3)

--tank goliath 3--
notowns_jump(Terran Machine Shop, m no tech 1)
notowns_jump(Terran Armory, m no tech 1)
attack_add(20, Terran Goliath)
attack_add(18, Terran Siege Tank<0>Tank Mode)
random_jump(32, tank goliath 4)
goto(m attack 3)

--m attack 3--
random_jump(52, m stage 4)


# === MECH FINAL ATTACK STAGE ===

--final--
wait(500)

attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()
wait(100)

goto(m stage 3)


# === MECH MAIN STAGE 4 ===

--m stage 4--
wait(1)

notowns_jump(Terran Science Facility, m stage 5)
notowns_jump(Terran Control Tower, m stage 5)
train(3, Terran Science Vessel)

--m stage 5--
notowns_jump(Terran Armory, tank vulture 4)
notowns_jump(Terran Machine Shop, goliath vulture 4)

--m no tech 2--
wait(1)
random_jump(36, tank goliath 4)
random_jump(42, tank vulture 4)
random_jump(51, goliath vulture 4)
random_jump(64, goliath 4)
random_jump(85, vulture 4)
random_jump(128, tank 4)

--m all 4--
attack_add(12, Terran Siege Tank<0>Tank Mode)
attack_add(16, Terran Goliath)
attack_add(16, Terran Vulture)
goto(m attack 4)

--vulture 4--
attack_add(35, Terran Vulture)
goto(m attack 4)

--tank 4--
notowns_jump(Terran Machine Shop, m no tech 2)
attack_add(25, Terran Siege Tank<0>Tank Mode)
goto(m attack 4)

--goliath 4--
notowns_jump(Terran Armory, m no tech 2)
attack_add(30, Terran Goliath)
goto(m attack 4)

--tank vulture 4--
notowns_jump(Terran Machine Shop, m no tech 2)
attack_add(18, Terran Siege Tank<0>Tank Mode)
attack_add(22, Terran Vulture)
goto(m attack 4)

--goliath vulture 4--
notowns_jump(Terran Armory, m no tech 2)
attack_add(22, Terran Goliath)
attack_add(22, Terran Vulture)
goto(m attack 4)

--tank goliath 4--
notowns_jump(Terran Machine Shop, m no tech 2)
notowns_jump(Terran Armory, m no tech 2)
attack_add(20, Terran Goliath)
attack_add(18, Terran Siege Tank<0>Tank Mode)
goto(m attack 4)

--m attack 4--
goto(final)


# === MECH MULTIRUNS ===

--m expansion--
start_town()
build(1, Terran Command Center, 90)
wait_build(1, Terran Command Center)
multirun(scv)
get_oldpeons(8)


--m ebay expo--
wait(300)
notowns_jump(Terran Engineering Bay, m ebay expo)
player_need(1, Terran Academy)
build(1, Terran Comsat Station, 80)
wait_buildstart(1, Terran Comsat Station)
build(1, Terran Missile Turret, 80)
wait_build(1, Terran Missile Turret)
build(2, Terran Missile Turret, 80)
wait_build(2, Terran Missile Turret)
build(1, Terran Factory, 70)
wait_build(1, Terran Factory)
build(1, Terran Machine Shop, 70)
build(10, Terran SCV, 60)
wait_buildstart(10, Terran SCV)
build(12, Terran SCV, 60)
wait_buildstart(12, Terran SCV)
build(13, Terran SCV, 60)
wait_buildstart(13, Terran SCV)
build(14, Terran SCV, 60)
wait_buildstart(14, Terran SCV)
build(3, Terran Missile Turret, 80)
wait_build(3, Terran Missile Turret)
stop()


--m tech--
wait_build(1, Terran Barracks)
build(1, Terran Factory, 80)
wait_build(1, Terran Factory)
build(1, Terran Machine Shop, 80)
wait_build(1, Terran Machine Shop)
tech(Spider Mines, 80)
wait(2700)

tech(Tank Siege Mode, 80)
wait(2800)
upgrade(1, Ion Thrusters, 70)
build(1, Terran Engineering Bay, 80)
build(1, Terran Academy, 80)
wait_build(1, Terran Academy)
build(1, Terran Comsat Station, 80)
build(2, Terran Armory, 80)
wait_build(1, Terran Armory)
wait(800)
upgrade(1, Charon Booster, 45)
build(1, Terran Starport, 30)
wait_build(1, Terran Starport)
build(1, Terran Control Tower, 30)
check_transports()
build(1, Terran Science Facility, 30)
multirun(vesseltech)
stop()


--m defense--
build(1, Terran Bunker, 80)
wait_build(1, Terran Bunker)
build(2, Terran Bunker, 80)
wait(2700)

build(3, Terran Bunker, 80)
stop()


--moar fact--
wait_buildstart(1, Terran Factory)
build(2, Terran Factory, 80)
wait_build(2, Terran Factory)
build(2, Terran Machine Shop, 80)
wait(3400)

build(3, Terran Factory, 80)
build(3, Terran Machine Shop, 80)
wait(3400)

build(4, Terran Factory, 40)
build(4, Terran Machine Shop, 80)
wait(3400)

build(5, Terran Factory, 40)
build(5, Terran Machine Shop, 80)
wait(3500)

build(6, Terran Factory, 40)
wait(3500)

multirun(Ghosttech)
random_jump(127, Nukecheck)
wait(700)

stop()

# === AIR MAIN STAGE 1 ===

--air--
multirun(a tech)
multirun(moar port)

train(3, Terran Marine)

multirun(a armory_up)

--a fact wait--


# === AIR 2ND DEFENCE ===

defensebuild_gg(1, Terran Marine)
defensebuild_ga(1, Terran Marine)
defensebuild_aa(1, Terran Marine)
defensebuild_ag(1, Terran Marine)
wait(200)

notowns_jump(Terran Factory, a fact wait)

defensebuild_gg(1, Terran Vulture)
defensebuild_ga(1, Terran Vulture)

train(2, Terran Vulture)
wait_build(1, Terran Machine Shop)
train(1, Terran Siege Tank<0>Tank Mode)

defensebuild_gg(1, Terran Siege Tank<0>Tank Mode)
defensebuild_ga(1, Terran Siege Tank<0>Tank Mode)
defenseuse_gg(1, Terran Siege Tank<0>Tank Mode)
defenseuse_ga(1, Terran Siege Tank<0>Tank Mode)


# === AIR MAIN 2ND STAGE ===

--a stage 2--
expand(99, a expansion)
wait(300)
train(3, Terran Siege Tank<0>Tank Mode)

# === AIR 1ST ATTACK ===

notowns_jump(Terran Starport, a stage 2)

train(2, Terran Wraith)

random_jump(85, wraith 1)
random_jump(128, cruiser 1)

notowns_jump(Terran Physics Lab, wraith 1)
attack_add(2, Terran Battlecruiser)
attack_add(5, Terran Wraith)
wait(600)
goto(a attack 1)

--wraith 1--
attack_add(10, Terran Wraith)
wait(600)
goto(a attack 1)

--cruiser 1--
attack_add(4, Terran Battlecruiser)
wait(600)
goto(a attack 1)

--a attack 1--
random_jump(72, a stage 3)
attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()
wait(1)

notowns_jump(Terran Physics Lab, a stage 2)


# === AIR MAIN STAGE 3 ===

--a stage 3--
wait(1)


# === AIR 3RD DEFENCE ===

notowns_jump(Terran Armory, a stage 2)
defenseuse_gg(1, Terran Wraith)
defenseuse_ga(1, Terran Wraith)
defenseuse_aa(1, Terran Wraith)
defenseuse_ag(1, Terran Wraith)
defensebuild_gg(1, Terran Wraith)
defensebuild_ga(1, Terran Wraith)
defensebuild_aa(1, Terran Wraith)
defensebuild_ag(1, Terran Wraith)
defenseuse_gg(1, Terran Goliath)
defenseuse_ga(1, Terran Goliath)
defenseuse_aa(1, Terran Goliath)
defenseuse_ag(1, Terran Goliath)
defensebuild_gg(1, Terran Goliath)
defensebuild_ga(1, Terran Goliath)
defensebuild_aa(1, Terran Goliath)
defensebuild_ag(1, Terran Goliath)
defenseuse_gg(1, Terran Battlecruiser)
defenseuse_ga(1, Terran Battlecruiser)
defenseuse_aa(1, Terran Battlecruiser)
defenseuse_ag(1, Terran Battlecruiser)
defensebuild_gg(1, Terran Battlecruiser)
defensebuild_ga(1, Terran Battlecruiser)
defensebuild_aa(1, Terran Battlecruiser)
defensebuild_ag(1, Terran Battlecruiser)

train(7, Terran Wraith)
train(2, Terran Battlecruiser)
train(2, Terran Goliath)
train(2, Terran Science Vessel)
expand(99, expansion)


# === AIR 2ND ATTACK ===

notowns_jump(Terran Physics Lab, wraith 2)
notowns_jump(Terran Control Tower, wraith 2)

random_jump(85, cruiser 2)
random_jump(128, wraith 2)

attack_add(6, Terran Battlecruiser)
attack_add(16, Terran Wraith)
random_jump(32, cruiser wraith 3)
goto(a attack 2)

--wraith 2--
attack_add(22, Terran Wraith)
random_jump(32, wraith 3)
goto(a attack 2)

--cruiser 2--
attack_add(10, Terran Battlecruiser)
random_jump(32, cruiser 3)

--a attack 2--
random_jump(85, a stage 4)


# === AIR FINAL ATTACK STAGE ===

--a final--
wait(500)

attack_prepare()
wait(50)
attack_do()
attack_clear()
clear_combatdata()
wait(100)

goto(a stage 3)


# === AIR MAIN STAGE 4 ===

--a stage 4--
wait(1)

notowns_jump(Terran Science Facility, wraith 3)
notowns_jump(Terran Control Tower, wraith 3)
notowns_jump(Terran Physics Lab, wraith 3)

train(3, Terran Science Vessel)

random_jump(85, cruiser 3)
random_jump(128, wraith 3)

--cruiser wraith 3--
attack_add(6, Terran Battlecruiser)
attack_add(16, Terran Wraith)
wait(500)
goto(a attack 3)

--wraith 3--
attack_add(22, Terran Wraith)
wait(500)
goto(a attack 3)

--cruiser 3--
attack_add(10, Terran Battlecruiser)
wait(500)

--a attack 3--
goto(a final)


# === AIR MULTIRUNS ===

--a expansion--
start_town()
build(1, Terran Command Center, 90)
wait_build(1, Terran Command Center)
multirun(scv)
get_oldpeons(8)


--a ebay expo--
wait(300)
notowns_jump(Terran Engineering Bay, a ebay expo)
player_need(1, Terran Academy)
build(1, Terran Comsat Station, 80)
wait_buildstart(1, Terran Comsat Station)
build(1, Terran Missile Turret, 80)
wait_build(1, Terran Missile Turret)
build(2, Terran Missile Turret, 80)
wait_build(2, Terran Missile Turret)

--port expo--
wait(300)
notowns_jump(Terran Factory, port expo)
build(1, Terran Starport, 70)
wait_build(1, Terran Starport)
build(1, Terran Control Tower, 70)
build(10, Terran SCV, 60)
wait_buildstart(10, Terran SCV)
build(12, Terran SCV, 60)
wait_buildstart(12, Terran SCV)
build(13, Terran SCV, 60)
wait_buildstart(13, Terran SCV)
build(14, Terran SCV, 60)
wait_buildstart(14, Terran SCV)
build(3, Terran Missile Turret, 80)
wait_build(3, Terran Missile Turret)
stop()


--a tech--
wait_build(1, Terran Barracks)
build(1, Terran Factory, 80)
wait_build(1, Terran Factory)
build(1, Terran Machine Shop, 80)
wait_build(1, Terran Machine Shop)
build(1, Terran Engineering Bay, 80)
build(1, Terran Academy, 80)
build(1, Terran Starport, 30)
wait_build(1, Terran Starport)
wait_build(1, Terran Academy)
build(1, Terran Comsat Station, 80)
build(1, Terran Control Tower, 30)
wait_build(1, Terran Control Tower)
check_transports()
tech(Cloaking Field, 70)
build(2, Terran Armory, 80)
wait_buildstart(1, Terran Armory)
wait(2500)
upgrade(1, Apollo Reactor, 70)
build(1, Terran Science Facility, 30)
wait_build(1, Terran Science Facility)
build(1, Terran Physics Lab, 30)
wait_build(1, Terran Physics Lab)
multirun(vesseltech)
tech(Yamato Gun, 70)
wait(2700)
upgrade(1, Colossus Reactor, 70)
stop()


--moar port--
wait_buildstart(1, Terran Starport)
build(2, Terran Starport, 80)
wait_build(2, Terran Starport)
build(2, Terran Control Tower, 80)
wait(3400)

build(3, Terran Starport, 80)
wait_build(3, Terran Starport)
build(3, Terran Control Tower, 80)
wait(3000)

build(4, Terran Starport, 40)
wait_build(4, Terran Starport)
build(4, Terran Control Tower, 80)
wait(2800)

build(5, Terran Starport, 40)
wait_build(5, Terran Starport)
build(5, Terran Control Tower, 80)
wait(2600)

build(6, Terran Starport, 40)
wait(3500)

multirun(Ghosttech)
random_jump(127, Nukecheck)
wait(700)

stop()

--a armory_up--
wait_build(1, Terran Armory)
upgrade(1, Terran Ship Weapons, 50)
wait(4500)

upgrade(1, Terran Ship Plating, 50)
wait(4500)

wait_build(1, Terran Science Facility)
build(2, Terran Armory, 80)
wait_build(2, Terran Armory)
upgrade(2, Terran Ship Weapons, 40)
upgrade(2, Terran Ship Plating, 40)
wait(4500)

upgrade(3, Terran Ship Weapons, 40)
upgrade(3, Terran Ship Plating, 30)
wait(4500)

wait_train(1, Terran Battlecruiser)
upgrade(1, Terran Vehicle Weapons, 30)
upgrade(1, Terran Vehicle Plating, 30)
wait(5000)

upgrade(2, Terran Vehicle Weapons, 30)
upgrade(2, Terran Vehicle Plating, 30)
wait(5000)

upgrade(3, Terran Vehicle Weapons, 20)
upgrade(3, Terran Vehicle Plating, 20)
stop()


--Nukecheck--
wait(100)
resources_jump(1000, 900, Nuketech)
wait(500)

goto(Nukecheck)


--Nuketech--
wait(1)

build(2, Terran Science Facility, 80)
wait_build(2, Terran Science Facility)
wait(1)

build(1, Terran Covert Ops, 80)
wait_buildstart(1, Terran Covert Ops)
build(2, Terran Command Center, 80)
wait_buildstart(2, Terran Command Center)
wait_build(1, Terran Covert Ops)
wait_build(1, Terran Command Center)
wait(1)

build(1, Terran Nuclear Silo, 80)
wait_build(1, Terran Nuclear Silo)
defenseuse_ag(1, Terran Ghost)
defenseuse_aa(1, Terran Ghost)
defenseuse_gg(1, Terran Ghost)
defenseuse_ga(1, Terran Ghost)


--Ghostloop--
wait(1)

train(3, Terran Ghost)
wait_train(3, Terran Ghost)
wait(6000)

goto(Ghostloop)


--Ghosttech--

wait_build(1, Terran Covert Ops)
tech(Lockdown, 70)
wait(2500)

tech(Personnel Cloaking, 70)

wait(3600)

upgrade(1, Moebius Reactor, 70)
wait(3600)

upgrade(1, Ocular Implants, 70)
stop()


--vesseltech--

wait_build(1, Terran Science Facility)

tech(Irradiate, 70)
wait(2700)

tech(EMP Shockwave, 70)
wait(2700)

upgrade(1, Titan Reactor, 70)
wait(2700)

tech(Defensive Matrix, 70)
stop()[/spoiler]

I will post an executable when ready... Still testing.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “StarCraft Modding”

Who is online

Users browsing this forum: No registered users and 8 guests