Staredit Newtork
Community
StarCraft
Games
Site
Favourites
 
[*]
AIScript.bin Opcodes
Note: The topics on the table of contents have been strategically placed for easier navigation within the list. They have no particular purpose to be a whole topic in the table of contents.

NameDescription
0x00 - goto
Jump to %1(block)
0x01 - notowns_jumpIf computer doesn't have a %1(unit), jump to %2(block)
0x02 - waitWait for %1(word) tenths of second in normal game speed
0x03 - start_townStarts the AI Script for town management
0x04 - start_areatownStarts the AI Script for area town management
0x05 - expandRun code at %2(block) for expansion number %1(byte)
0x06 - buildBuild %2(building) until it commands %1(byte) of them, at priority %3(byte)
0x07 - upgradeResearch upgrade %2(upgrade) up to level %1(byte), at priority %3(byte)
0x08 - techResearch technology %1(technology), at priority %2(byte)
0x09 - wait_buildWait until computer commands %1(byte) %2(building)
0x0A - wait_buildstart
Wait until construction of %1(byte) %2(unit) has started
0x0B - attack_clearClear the attack data
0x0C - attack_addAdd %1(byte) %2(military) to the current attacking party
0x0D - attack_preparePrepare the attack
0x0E - attack_doAttack the enemy with the current attacking party
0x0F - wait_securePoints to wait_bunkers with alternate params
0x10 - capt_expand
The use of this command is unknown.
Takes no parameter
0x11 - build_bunkersMemory mentions bunkers
0x12 - wait_bunkersThe definition of this command is unknown.
It is never used in Blizzard scripts
0x13 - defensebuild_ggBuild %1(byte) %2(military) to defend against enemy attacking ground units, when ground units are attacked
0x14 - defensebuild_agBuild %1(byte) %2(military) to defend against enemy attacking air units, when ground units are attacked
0x15 - defensebuild_gaBuild %1(byte) %2(military) to defend against enemy attacking ground units, when air units are attacked
0x16 - defensebuild_aaBuild %1(byte) %2(military) to defend against enemy attacking air units, when air units are attacked
0x17 - defenseuse_ggUse %1(byte) %2(military) to defend against enemy attacking ground units, when ground units are attacked
0x18 - defenseuse_agUse %1(byte) %2(military) to defend against enemy attacking air units, when ground units are attacked
0x19 - defenseuse_gaUse %1(byte) %2(military) to defend against enemy attacking air units, when air units are attacked
0x1A - defenseuse_aa
Use %1(byte) %2(military) to defend against enemy attacking air units, when air units are attacked
0x1B - defenseclear_ggClear defense against enemy attacking ground units, when ground units are attacked
0x1C - defenseclear_agClear defense against enemy attacking air units, when ground units are attacked
0x1D - defenseclear_gaClear defense against enemy attacking ground units, when air units are attacked
0x1E - defenseclear_aaClear defense against enemy attacking air units, when air units are attacked
0x1F - send_suicideSend all units to suicide mission.
%1(byte) determines which type: 0 = Strategic suicide; 1 = Random suicide
0x20 - player_enemy
Make selected player enemy
0x21 - player_allyMake selected player ally
0x22 - default_minThe use of this command is unknown.
Takes %1(byte) as parameter
0x23 - defaultbuild_offThe use of this command is unknown.
Takes no parameter
0x24 - stopStop script code execution.
Often used to close script blocks called simultaneously
0x25 - switch_rescueSwitch computer to rescuable passive mode
0x26 - move_dtMove Dark Templars to selected location
0x27 - debugShow debug string %2(string) and continue in %1(block)
0x28 - fatal_errorCauses a fatal AI script error.
"Illegal AI script executed."
0x29 - enter_bunkerEnter Bunker in selected location
0x2A - value_area
Value this area higher
0x2B - transports_offComputer will not manage/build transports on its own
0x2C - check_transportsInforms computer to use transports up to the defined Max#
0x2D - nuke_rateBuilds nukes every %1(byte) minutes
0x2E - max_forceThe use of this command is unknown.
Takes %1(word) as parameter
0x2F - clear_combatdataClear previous combat data
0x30 - random_jump
There is %1(byte) chances out of 256 to jump to %2(block)
0x31 - time_jumpJumps to %2(block) if %1(byte) normal game minutes have passed in the game
0x32 - farms_notimingBuild necessary farms only when it hits the maximum supply available
0x33 - farms_timingBuild necessary farms with a correct timing, so nothing is paused by a maximum supply limit hit
0x34 - build_turretsMemory mentions Missile Turrets
0x35 - wait_turretsPoints to wait_bunkers with alternate params
0x36 - default_buildThe definition of this command is unknown.
It is never used in Blizzard scripts
0x37 - harass_factorThe definition of this command is unknown.
It is never used in Blizzard scripts
0x38 - start_campaignStarts the AI Script for Campaign
0x39 - race_jumpAccording to the nearest enemy race, jump in %1(block) if it is Terran, %2(block) if Zerg or %3(block) if Protoss
0x3A - region_size
If enemy unit is within %1 (byte) (unknown measure), jump to %2 (block)
0x3B - get_oldpeonsThis command takes %1(byte) number of workers from the main to move to the expansion.
Should be used after the expansion is completed
0x3C - groundmap_jumpIf it is a ground map(in other words, if the enemy is reachable), jump to %1(block)
0x3D - place_guardPlace %2(byte) guards(guardindex, 0+) using %1(unit) to guard town
0x3E - wait_forceWait until computer commands %1(byte) %2(military)
0x3F - guard_resourcesSend units of type %1(military) to guard as many resources spots as possible(1 per spot)
0x40 - call
Call %1(block) as a sub-routine
0x41 - returnReturn to the flow point of the call command
0x42 - eval_harassThe definition of this command is unknown.
It is never used in Blizzard scripts
0x43 - creepPlace towers using %1(byte) placement scheme
0x44 - panicGo to %1(block) when attacked
0x45 - player_needIf player does not have %1(byte) %2(building), build it, otherwise ignore this op
0x46 - do_morphThe use of this command is unknown.
Takes no parameters
0x47 - wait_upgradesThe definition of this command is unknown.
It is never used in Blizzard scripts
0x48 - multirunRun simultaneously code at %1(block)
0x49 - rushJump to %2(block) if predifined condition scheme %1(byte) is met
0x4A - scout_with
Takes %1(military) as parameter.
Command is unused.
0x4B - define_maxDefine maximum number of %2(unit) to %1(byte)
0x4C - trainTrain %2(military) until it commands %1(byte) of them
0x4D - target_expansionThe use of this command is unknown.
Takes no parameter
0x4E - wait_trainWait until computer commands %1(byte) %2(military)
0x4F - set_attacksThe use of this command is unknown.
Takes %1(byte) as parameter
0x50 - set_gencmd
Set generic command target
0x51 - make_patrolMake these units patrol in selected location
0x52 - give_moneyGive 2000 ore and gas if owned resources are low.
Should only be used in campaign scripts
0x53 - prep_downSomething to do with Siege tanks(Tank and Siege modes)?
0x54 - resources_jumpIf computer has at least %1(word) minerals and %2(word) gas then jump in %3(block)
0x55 - enter_transportEnter in nearest Transport in selected location
0x56 - exit_transportExit Transport in selected location
0x57 - sharedvision_onEnable Shared vision for selected player
0x58 - sharedvision_offDisable Shared Vision for selected player
0x59 - nuke_locationNuke at selected location
0x5A - harass_location
AI Harass at selected location
0x5B - implodeThe definition of this command is unknown.
It is never used in Blizzard scripts
0x5C - guard_allThe use of this command is unknown.
Takes no parameters
0x5D - enemyowns_jumpIf enemy has a %1(unit), jump to %2(block)
0x5E - enemyresources_jumpIf enemy has at least %1(word) minerals and %2(word) gas then jump in %3(block)
0x5F - if_difThe definition of this command is unknown.
It is never used in Blizzard scripts
0x60 - easy_attack
The definition of this command is unknown.
It is never used in Blizzard scripts
0x61 - kill_threadKill the current thread
0x62 - killableAllows the current thread to be killed by another one
0x63 - wait_finishattackWait until attacking party has finished to attack
0x64 - quick_attackSeems to be a buffed up version of Attack_Prepare
0x65 - junkyard_dogJunkyard Dog at selected location
0x66 - fake_nukeThe use of this command is unknown.
Takes no parameters
0x67 - disruption_webDisruption Web at selected location
0x68 - recall_locationRecall at selected location
0x69 - set_randomseedSet random seed to %1(word) %2(word) (The two words are transformed in a 32-bit integer)
0x6A - if_owned
The use of this command is unknown.
Takes %1(unit) and %2(block) as parameters
0x6B - create_nukeCreate a nuke
Should only be used in campaign scripts
0x6C - create_unitCreate %1(unit) at map position (x,y) where x = %2(word) and y = %3(word)
Should only be used in campaign scripts
0x6D - nuke_posLaunch a nuke at map position (x,y) where x = %1(word) and y = %2(word)
Should only be used in campaign scripts
0x6E - help_iftroubleAsk allies help if computer is ever in trouble
0x6F - allies_watchThe use of this command is unknown.
Takes %1(byte) and %2(block) as parameters
0x70 - try_townpointThe use of this command is unknown.
Takes %1(byte) and %2(block) as parameters


[08:48 pm]
madroc -- Wow the carbonite skin is nice
[08:36 pm]
[lil-Inferno]:] -- LOL C'E QUE
[08:33 pm]
Corbo[MM] -- contrary that we CAN do stuff that you can't :P
[08:33 pm]
Corbo[MM] -- what can you do that we can't?
[08:33 pm]
Corbo[MM] -- PSH
[08:31 pm]
MillenniumArmy -- ARCHINOOBSTECTS SUCK
[08:31 pm]
MillenniumArmy -- CIVILS ROCK!
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions