If you want to create an action or function page, use this Template. If you want to create a new trigger category page, use this Template.

Trigger Elements

Ui-editoricon-general triggers.png Trigger Editor Overview Ui-editoricon-triggereditor newevent.png Events
Ui-editoricon-triggereditor newcondition.png Conditions Question.png Functions
Ui-editoricon-triggereditor newvariable.png Variables And Records Ui-editoricon-triggereditor newvariable.png Data Types
Ui-editoricon-triggereditor newpresettype.png Presets/Constants Ui-editoricon-triggereditor newaction.png Actions

Presets and Constants

Presets are a variable type within Starcraft 2 which are essentially a set of integers with string values associated. They are equivalent to enums in other programming languages, allowing you to define your own variable types and associated values, which makes the code more readable. The presets are useful for organizing your own data, but there are several pre-made presets which come with the editor already.

Presets Navigation

Ui-editoricon-triggercategories actor.png Actors Ui-editoricon-triggercategories ai.png AI Ui-editoricon-triggercategories aiadvanced.png AI Advanced Ui-editoricon-triggercategories animation.png Animation Ui-editoricon-triggercategories bank.png Bank
Ui-editoricon-triggercategories cameras.png Cameras Ui-editoricon-triggercategoriescampaign.png Campaign Ui-editoricon-triggercategories catalog.png Catalog Ui-editoricon-triggercategories cinematics.png Cinematics Ui-editoricon-triggercategories conversations.png Conversation
Ui-editoricon-triggercategories conversion.png Conversion Ui-editoricon-triggercategories datatable.png Data Table Ui-editoricon-triggercategories debug.png Debug Ui-editoricon-triggercategories dialog.png Dialog Ui-editoricon-triggercategories environment.png Environment
Ui-editoricon-triggercategories game.png Game Ui-editoricon-triggercategories general.png General Ui-editoricon-triggercategories leaderboards.png Leaderboard Ui-editoricon-triggercategories math.png Math Ui-editoricon-triggercategories melee.png Melee
Ui-editoricon-triggercategories objective.png Objective Ui-editoricon-triggercategories orders.png Order Ui-editoricon-triggercategories ping.png Ping Ui-editoricon-triggercategories player.png Player Ui-editoricon-triggercategories playergroup.png Player Group
Ui-editoricon-triggercategories point.png Point Ui-editoricon-triggercategories portrait.png Portrait Ui-editoricon-triggercategories region.png Region Ui-editoricon-triggercategories unitselection.png Unit Selection Ui-editoricon-triggercategories sound.png Sound
Ui-editoricon-triggercategories story.png Story Ui-editoricon-triggercategories strings.png String Ui-editoricon-triggercategories techtree.png Tech Tree Ui-editoricon-triggercategories texttag.png Text Tag Ui-editoricon-triggercategories timer.png Timer
Ui-editoricon-triggercategories transmission.png Transmission Ui-editoricon-triggercategories triggers.png Trigger Ui-editoricon-triggercategories ui.png UI Ui-editoricon-triggercategories unit.png Unit Ui-editoricon-triggercategories unitgroup.png Unit Group
Ui-editoricon-triggercategories variable.png Variable Ui-editoricon-triggercategories visibility.png Visibility Effect History Game User User Data
Logic Cutscene

Index of Presets/Constants

  • Actor Intersect Type - int
  • Actor Request Actor - int
  • Actor Request Scope - int
  • Anim Bracket Start Flags - int
  • Anim Transition Flags - int
  • Attach Points - string
  • Host References - string
  • Look At Group - string
  • Look At Type - string
  • No Actor - actor
  • No Actor Scope - actorscope
  • No Doodad - doodad
  • Physics State - int
  • Ref Space - int
  • Texture Slot Component - int
  • Time Variant - int
  • Transition Type - int
  • Video Texture Play Flags - int

  • Activate/Deactivate - bool
  • Building Or Unit - bool
  • Bully Rebuild Always - int
  • Force Use Transport - bool
  • No Wave - wave
  • No Wave Info - waveinfo
  • No Wave Target - wavetarget
  • ReplaceType - int

  • AI Beacon Type - int
  • AI Best Target Flags - int
  • AI Combat States - int
  • AI Difficulty Index - int
  • AI Disable Tactical - bool
  • AI Filter Alliance - int
  • AI Filter Plane - int
  • AI Mode - bool
  • AI Native - bool
  • AI Path Block Type - bool

  • Animation Flag - int
  • Animation Identifier - string
  • Animation Property - int
  • Animation Scale Option - bool
  • Animation Time Values - fixed
  • Animation Offset - int

  • Bank Option - int
  • Bank Value Type - int
  • No Bank - bank

  • Camera Shake Amplitude - string
  • Camera Shake Frequency - string
  • Camera Use Target Option - int
  • Default Model Camera - string
  • Zoom Camera Distance - real
  • Camera Follow Option - bool
  • Camera Object Property Type - int
  • No Camera Object - camera object
  • No Model Camera - model camera
  • Camera Direction - int
  • Camera Position - int
  • Camera Move Reason - int
  • Camera Velocity - real
  • Camera Keep Target Option - bool
  • Camera Rotation - int

  • Upgrade Operation - int
  • No Game Link - gamelink
  • No Alert - string
  • Cost Type - string
  • Catalog Type - int
  • Any Game Link - gamelink
  • Field Type Category - int

  • Fade Option - bool
  • Fade Style - int
  • No Cinematic - cinematic
  • Cinematic Transition Style - int

  • Reply State - int
  • Picked State - bool
  • Unpicked Only Option - bool
  • Global Conversation State Index - convstateindex
  • Global Conversation Character - convcharacter
  • No Conversation State Index - convstateindex
  • No Conversation Reply - reply
  • No Conversation - conversation
  • Conversation Skip Option - int
  • Any Reply - reply
  • Any Conversation - conversation
  • Any Conversation State Index - convstateindex

  • Number Format - int
  • Color Component Type - int
  • Team Color Type - int

Cutscene

  • Cutscene - int

  • Data Scope - bool
  • Data Type - int
  • Unknown Data Type - int

  • Debug Message Type - int
  • Debug Message Filter - int

  • Any Dialog Item - dialogitem
  • Checked Option - bool
  • Dialog Item Event Type - int
  • Dialog Item Property - int
  • Dialog Item Type - int
  • Dialog Blend Mode - int
  • Dialog Observed Type - int
  • Image Type - int
  • Dialog Item Render Type - int
  • Modal/Non-modal Option - bool
  • No Dialog - dialog
  • No Dialog Item - dialogitem
  • No Parameter (String) - string
  • No Parameter (Text) - text

  • Effect History - int
  • Effect History Effect - int

  • Background Type - int
  • Height Type - int
  • Environment Type - int
  • Pathing Type - int
  • No Water - water
  • Water Blend Type - int
  • Creep Permanent Option - bool
  • Creep Speed Type - int
  • Explosion Size - int
  • Explosion Type - int
  • Effect Player - int
  • Effect Location - int
  • Effect Unit - int
  • Effect Amount - int

  • Chat Match Option - bool
  • Chat Response Option - bool
  • Death Type - int
  • Game Speed - int
  • Game Speed Rate - real
  • Game Test Type - bool
  • Game Over Type - int
  • Marker Match Type - int
  • Map Type - int
  • Next Map Values - string
  • No Attribute ID (Game) - attributegame
  • No Attribute ID (Player) - attributeplayer
  • No Attribute Value - attributevalue
  • No Marker - marker
  • Resource Type - int
  • Preload Queue - bool
  • Game Cheat Type - int
  • Game Cheat Category - int

Game User

  • Game User Id - int

  • Add/Remove Option - bool
  • Alignment (Horizontal) - int
  • Alignment (Vertical) - int
  • All Count - int
  • Allow/Disallow Option - bool
  • Anchor - int
  • Ascending/Descending - bool
  • Change/Retain Option - bool
  • Color - color
  • Automatic Color - color
  • Do/Do Not Option - bool
  • Enable/Disable Option - bool
  • Enable/Disable Option (Reversed) - bool
  • Font Size - int
  • Gender - int
  • Lock/Unlock Option - bool
  • Include/Ignore Option - bool
  • Maximum Count - int
  • No File - file
  • Number Values - int
  • On/Off Option - bool
  • Open/Close Option - bool
  • Pause/Unpause Option - bool
  • Precision - int
  • Select/Deselect Option - bool
  • Show/Hide Option - bool
  • Show/Hide Option (Reversed) - bool
  • Visible/Hidden Option - bool
  • Sleep/WakeUp Option - bool
  • Wait Option - bool

  • Leaderboard - int
  • Leaderboard Columns - int
  • Leaderboard Item Side - bool
  • Leaderboard Rows - int
  • Leaderboard State - int
  • Leaderboard Widths - real
  • Minimize/Maximize Option - bool

  • Any Comparison Operator - int
  • Arithmetic Operator - int
  • Bitwise Operator - int
  • Boolean Operator - int
  • Equality Operator - int
  • Numerical Comparison Operator - int

  • Melee Option - int

  • No Objective - objective
  • Objective State - int
  • Objective Type (Boolean) - bool
  • Objective Type (Integer) - int
  • Objective Reward - int

  • Ability Command Action Type - int
  • No Order - order
  • Order Flag - int
  • Order Target Type - int
  • Smart Command (Action) - abilcmd
  • Smart Command (Event) - abilcmd

  • No Ping - ping

  • (Obsolete) Difficulty Level - int
  • (Obsolete) Player Color - int
  • Alliance Aspect - int
  • Alliance Setting - int
  • Any Player - int
  • Leave Game Option - int
  • Modify Operation - int
  • No Player - int
  • No Game Option Value - gameoption
  • Player Color Option - bool
  • Player Controller - int
  • Player Flag - int
  • Player License - int
  • Player Property (Get) - int
  • Player Property (Set) - int
  • Player Relation - int
  • Player Status - int
  • Player Values - int

  • No Player Group - playergroup
  • Player Alliance - int

  • No Point - point

  • CinematicPortraitPosition - int
  • Model Camera - string
  • Portrait Camera - string
  • No Portrait - portrait
  • No Portrait Channel - int
  • Portrait Render Type - int

  • Any Region - region
  • No Region - region
  • Region State - bool

  • Select/Deselect State - bool
  • Unit Selection Store Option - int
  • Highlight Option - bool

  • Global Sound - int
  • Any Cue - int
  • Any Sound Index - int
  • Any Soundtrack Index - int
  • Continuously/Once Option - bool
  • Looping Option - bool
  • Music Type - int
  • Mute/Unmute Option - bool
  • No Sound - sound
  • No Sound Link - soundlink
  • Sound Channel - int
  • Sound Fade Option - bool
  • Sound Offset - int
  • Volume Channel Mode - int
  • Soundtrack Category - int

  • Research Item - int
  • Research Tier - int
  • Research Category - int
  • Research Item State - int
  • Mercenary - int
  • Mercenary State - int
  • Mission Archive - int
  • Mission Archive State - int
  • Mission Archive Type - int

  • No Text - text
  • No String - string
  • String Case Option - bool
  • String Case Sensitivity - bool
  • String Containment Location - int
  • String Not Found - int
  • String Replace All - int
  • Text Expression Tokens - string

Tech Tree

  • Tech Tree Count Type - int

  • Text Tag - int
  • Text Tag Color - int
  • Text Tag Edge - int
  • Text Tag Fade - int
  • Text Tag Image Type - bool
  • Text Tag Time - int
  • Text Tag Time Value - real

  • Elapsed/Remaining Option - bool
  • Time Type - int
  • Timer Duration - fixed
  • Timer Format - text
  • Timer Pause Resume - bool
  • Timer Repeating Option - bool
  • Timer Window - int
  • Timer Window Component - int
  • Timer Window Image - int
  • Timer Window Style - int
  • No Timer - timer
  • Any Timer - timer

  • Default Portrait Model - gamelink
  • Default Speaker - text
  • Default Subtitle - text
  • No Transmission - transmission
  • Transmission Flash Option - bool
  • Transmission Ping Option - bool
  • Transmission DurationTypes - int
  • Transmission Option - int
  • Transmission Transition Duration - real

  • No Trigger - trigger
  • Any Trigger - trigger
  • Trigger Check Conditions Option - bool
  • Trigger Queue Active Option - int
  • Any Event Name - string
  • Thread Flags - int

  • Boss Bar Race - int
  • UI Command Option - int
  • UI Hotkey - int
  • UI Frame Type - int
  • Ally Color Setting - int
  • Achievement Toast Style - int
  • Message Area - int
  • Clear Message Optioins - int
  • Transition Duration - real
  • Screen Mode - int
  • Loading Screen Image Scale - int
  • Selection Type - int
  • Mouse Button - int
  • Mouse Button Flag - int
  • Key - int
  • Key Modifier State - int
  • Up Down Option - bool
  • Game Menu Dialog Item - int
  • Help Page - int
  • Tip Type - int
  • Custom Dialog Result - int
  • Custom Dialog Type - int
  • Flyer Helper Display - int
  • Status Bar Display - int
  • Nydus Link - int
  • Path Display Location - int
  • Hotkey - int
  • Ability Class Filter - int

  • All Behaviors - gamelink
  • Next Level - int
  • First Veterancy Behavior - gamelink
  • All Veterancy Behaviors - gamelink
  • Show Kill Display Settings - int
  • Ability Auto Cast Change - int
  • Ability Charge Type - int
  • Ability Class - int
  • Ability Enabled - bool
  • Ability Stage - int
  • Any Ability Command - abilcmd
  • Any Item - unit
  • Any Unit - unit
  • Any Weapon - gamelink
  • Any Behavior - string
  • Attribute Type - int
  • Behavior Change - int
  • Behavior Count - int
  • Behavior Flag - int
  • Behavior Category - int
  • Blend Options - bool
  • Cargo Load/Unload State - bool
  • Commandable Option - bool
  • Cooldown Operation - int
  • Current/Default Option - bool
  • Damage Fatal Option - int
  • Damage Type - int
  • Command State - int
  • Idle State - bool
  • Inventory Manipulation - int
  • Inventory Item Count - int
  • Inventory Item Slot - int
  • No Ability Command - abilcmd
  • No Unit - unit
  • No Unit Filter - unitfilter
  • Placement Tests - int
  • Region Enter/Leave State - bool
  • Replace Unit Options - int
  • Share/Unshare - bool
  • Spend Location - int
  • Training Queue Property - int
  • Training Queue Slot Type - int
  • Training Queue Time - int
  • Transport Property - int
  • Unit AI Option - int
  • Unit Attribute - int
  • Unit Collide - int
  • Unit Color Change Option - bool
  • Unit Cost Type - int
  • Unit Create Style - int
  • Unit Create Flags - int
  • Unit Damage Take/Deal - int
  • Unit Damage Change Option - int
  • Unit Filter State - int
  • Unit Filter Type - int
  • Unit Flag - int
  • Unit Order Queue Option - int
  • Unit Plane - int
  • Unit Progress Control - int
  • Unit Progress Type - int
  • Unit Progress Stage - int
  • Unit Progress State - int
  • Unit Property (Get) - int
  • Unit Property (Set) - int
  • Unit Reference Option - bool
  • Unit Type Property - int
  • Unit State (Get) - int
  • Unit State (Set) - int
  • Unit Values - unit
  • Unit Vital Type - int
  • Vulnerable/Invulnerable Option - bool

  • Idle Worker Option - bool
  • Idle Count - int
  • Unit Alliance - int
  • None Game Link - gamelink
  • Unit Alliance With Self - int
  • Unit Count Type - int
  • No Unit Group - unitgroup
  • Anywhere - region

User Data

  • No User Data Instance - userdata
  • User Data Type - int
  • User Data Compare - int

  • Fill Type - int
  • Explored/Unexplored Option - bool
  • No Revealer - revealer
  • Visibility Type - int
Community content is available under CC BY-NC-SA 3.0 unless otherwise noted.