Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyAI: Crash saving specific script #107

Closed
poiuyqwert opened this issue Apr 26, 2018 · 1 comment
Closed

PyAI: Crash saving specific script #107

poiuyqwert opened this issue Apr 26, 2018 · 1 comment

Comments

@poiuyqwert
Copy link
Owner

Source

script_name Brood Wars Terran 2 - Town D
script_id BT2D

	start_areatown
	wait 1
	
	defaultbuild_off
	default_min 0
	wait 1
	
	max_workers 0
	deaths 4 Exactly 0 h_arbiter yelIntroTown
	deaths 4 Exactly 1 h_arbiter yelEastExpo
	deaths 4 Exactly 2 h_arbiter yelWestExpo
	stop
	
	:yelIntroTown
	max_workers 6
	wait 1440
	
	build 2 probe 60
	build 6 probe 20
	place_guard zealot 0
	goto idle
	
	:idle
	wait 25
	
	goto idle
	
	:yelEastExpo
	wait 25
	
	deaths 4 Exactly 0 h_aldaris yelEastExpo
	
	max_workers 7
	build 1 probe 80
	build 1 nexus 120
	wait_build 1 nexus
	
	place_guard h_zealot 1
	place_guard h_mojo 0
	
	multirun eastTown
	multirun eastPeon
	goto eastScale
	
	:eastTown
	build 1 pylon 40
	build 1 photon_cannon 30
	build 1 gateway 40
	wait_build 1 gateway
	place_guard zealot 0
	build 2 pylon 40
	build 2 photon_cannon 30
	build 1 shield_battery 20
	wait_buildstart 1 shield_battery
	build 3 pylon 30
	wait_build 3 pylon
	build 1 stargate 40
	wait_build 1 stargate
	place_guard h_mojo 2
	stop
	
	:eastPeon
	build 3 probe 50
	wait_build 3 probe
	build 7 probe 20
	wait_build 7 probe
	stop
	
	:eastScale
	wait 1440
	
	call checkAttack
	attack_add 3 zealot
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	call checkAttack
	attack_add 2 zealot
	multirun plusGateway
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2160
	
	call checkAttack
	multirun plusGateway
	multirun plusStargate
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	call checkAttack
	attack_add 6 zealot
	attack_add 1 scout
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1440
	
	build 2 gateway 40
	wait_buildstart 2 gateway
	build 2 stargate 40
	wait_buildstart 2 stargate
	goto eastFinal
	
	:eastFinal
	call checkAttack
	attack_add 4 zealot
	multirun plusGateway
	multirun plusRand
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1440
	
	attack_add 3 scout
	multirun plusRand
	multirun plusStargate
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1440
	
	attack_add 4 zealot
	attack_add 2 dragoon
	attack_add 2 scout
	multirun plusRand
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1440
	
	goto eastFinal
	
	:yelWestExpo
	wait 25
	
	deaths 4 Exactly 0 h_artanis yelWestExpo
	
	max_workers 7
	build 1 probe 80
	build 1 nexus 120
	wait_build 1 nexus
	
	place_guard h_zealot 1
	place_guard h_dragoon 0
	
	multirun westTown
	multirun westPeon
	goto westScale
	
	:westTown
	build 1 pylon 40
	build 1 photon_cannon 30
	build 1 gateway 40
	wait_build 1 gateway
	place_guard zealot 0
	build 2 pylon 40
	build 2 photon_cannon 30
	build 1 shield_battery 20
	wait_buildstart 1 shield_battery
	build 3 pylon 30
	wait_build 3 pylon
	build 2 gateway 40
	wait_build 2 gateway
	place_guard h_dragoon 2
	stop
	
	:westPeon
	build 3 probe 50
	wait_build 3 probe
	build 7 probe 20
	wait_build 7 probe
	stop
	
	:westScale
	wait 1440
	
	call checkAttack
	attack_add 2 dragoon
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	call checkAttack
	attack_add 1 zealot
	multirun plusGateway
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	call checkAttack
	attack_add 2 zealot
	attack_add 2 dragoon
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1440
	
	call checkAttack
	multirun plusGateway
	multirun plusGateway
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 1820
	
	call checkAttack
	attack_add 3 zealot
	multirun plusGateway
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 3620
	
	call checkAttack
	attack_add 5 dragoon
	multirun plusGateway
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	goto westFinal
	
	:westFinal
	call checkAttack
	attack_add 6 dragoon
	multirun plusGateway
	attack_prepare
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 3620
	
	call checkAttack
	attack_add 4 zealot
	attack_add 1 dragoon
	multirun plusGateway
	multirun plusGateway
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	call checkAttack
	attack_add 3 zealot
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 720
	
	call checkAttack
	attack_add 4 zealot
	multirun plusGateway
	multirun plusGateway
	wait 1440
	
	quick_attack
	attack_do
	attack_clear
	wait 2880
	
	attack_add 2 dragoon
	goto westFinal
	
	:checkAttack
	wait 5
	
	if_attacking checkAttack
	return
	
	:plusRand
	random_jump 128 plusGateway
	goto plusStargate
	
	:plusGateway
	random_jump 85 plusZealot
	random_jump 128 plusDragoon
	goto plusGatewayMix
	
	:plusStargate
	random_jump 85 plusScout1
	goto plusScout2
	
	:plusZealot
	attack_add 2 zealot
	stop
	
	:plusDragoon
	attack_add 2 dragoon
	stop
	
	:plusGatewayMix
	attack_add 2 zealot
	attack_add 1 dragoon
	stop
	
	:plusScout1
	attack_add 3 scout
	stop
	
	:plusScout2
	attack_add 2 scout
	stop
@Pr0nogo-zz
Copy link

This issue has the same root cause as #108 (nonstandard script IDs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants