DT Rush

Help - Resources - AI Scripting - Grafting - Plugins - Modding Projects
Peppe
Posts: 16
Joined: Fri Jul 13, 2007 4:29 am

DT Rush

Postby Peppe » Fri Jul 13, 2007 4:41 am

Edit 7/15/2007: I have updated this script and posted it in a different sub-form.
http://www.broodwarai.com/forums/index.php?showtopic=167
-------------------------------------------------------------------


My first pass at scripting. Started today. It does what i set out to do. A decent DT rush and keeps the pressure on. Rolls over the default Terran pretty quick, and slowly takes out the zerg.

Can anyone give me feedback on best practices? I borrowed from the tutorial and the blizzard scripts, but before i go on and make this one opening for my protoss i'd like to make sure i code in the best way I can. I tried to keep things parallel.

Whats the fastest way to test changes?
Right now i open the aiscript.bin in ScAIedit
open up the protoss custom level
make edits
save to an AC3 file
Delete the custom level in aiscript.bin in SCAIedit
import the save file i save a minute ago and compile.
drag the aiscript bin to winmpq to update the custom exe.
Then finally open up SC and load one of the blank replays from the replay pack.

Also in one parellel section i get 2-4 workers coming out to build buildings and it looks like they conflict briefly. Can i do something to stagger it a hair to only get one builder out? The timing is finally nice, so i didn''t want to break it tonight ;P

Thanks,
Peppe

CODE; ASC3 File generated by ScAIEdit III
;
; Script name : Protoss Expansion Custom Level

script_name Protoss Expansion Custom Level
script_id PMCx

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

; === DEFINE MAX PER UNIT ===
define_max 100 probe
define_max 100 zealot
define_max 100 dragoon
define_max 100 reaver
define_max 100 scout
define_max 100 shuttle
define_max 100 carrier
define_max 100 observer
define_max 100 corsair
define_max 100 high_templar
define_max 100 dark_archon
define_max 100 archon
define_max 100 arbiter
define_max 100 dark_templar

; === START ===
build 1 nexus 150
wait_build 1 nexus
build 4 probe 80
wait_build 4 probe

; === +4 Probes ===
build 8 probe 80
wait_buildstart 8 probe


; === +1 Pylon ===
build 1 pylon 80
wait_buildstart 1 pylon
build 9 probe 80
wait_buildstart 9 probe


; === Gateway ===
build 1 gateway 80
wait_buildstart 1 gateway

; === Max Probes ===
multirun full_probes

; === Assimilator ===
build 1 assimilator 80
wait_buildstart 1 assimilator



; === Cyberbetic Core ===
build 1 cybernetics_core 80
wait_buildstart 1 cybernetics_core
build 2 pylon 80
wait_buildstart 2 pylon
multirun init_defense

; === Pylon 2 ===
build 1 citadel_of_adun 80
wait_buildstart 1 citadel_of_adun
multirun templar
multirun gateway
wait 500


farms_timing

multirun repeatrush

:repeatrush
train 2 zealot
train 2 dark_templar
attack_add 2 zealot
attack_add 2 dark_templar
attack_prepare
attack_do
attack_clear

multirun ground_upgrades

:ground_upgrades
multirun repeatrush
upgrade 1 zealot_speed 70
build 1 forge 80
wait_buildstart 1 forge
upgrade 1 p_ground_weapon 30
wait 4500
upgrade 2 p_ground_weapon 30
wait 4500
upgrade 3 p_ground_weapon 30
stop

:full_probes
build 21 probe 80
wait_buildstart 21 probe
stop

:init_defense
train 2 zealot
stop

:templar
build 1 templar_archives 150
wait_buildstart 1 templar_archives
stop

:gateway
build 3 gateway 80
wait_build 3 gateway
stop

goto repeatrush

Return to “StarCraft Modding”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest