SC2Mapster Wiki
Register
Advertisement

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 Trigger Editor Overview Ui-editoricon-triggereditor newevent Events
Ui-editoricon-triggereditor newcondition Conditions Question Functions
Ui-editoricon-triggereditor newvariable Variables And Records Ui-editoricon-triggereditor newvariable Data Types
Ui-editoricon-triggereditor newpresettype Presets/Constants Ui-editoricon-triggereditor newaction 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 Actors Ui-editoricon-triggercategories ai AI Ui-editoricon-triggercategories aiadvanced AI Advanced Ui-editoricon-triggercategories animation Animation Ui-editoricon-triggercategories bank Bank
Ui-editoricon-triggercategories cameras Cameras Ui-editoricon-triggercategoriescampaign Campaign Ui-editoricon-triggercategories catalog Catalog Ui-editoricon-triggercategories cinematics Cinematics Ui-editoricon-triggercategories conversations Conversation
Ui-editoricon-triggercategories conversion Conversion Ui-editoricon-triggercategories datatable Data Table Ui-editoricon-triggercategories debug Debug Ui-editoricon-triggercategories dialog Dialog Ui-editoricon-triggercategories environment Environment
Ui-editoricon-triggercategories game Game Ui-editoricon-triggercategories general General Ui-editoricon-triggercategories leaderboards Leaderboard Ui-editoricon-triggercategories math Math Ui-editoricon-triggercategories melee Melee
Ui-editoricon-triggercategories objective Objective Ui-editoricon-triggercategories orders Order Ui-editoricon-triggercategories ping Ping Ui-editoricon-triggercategories player Player Ui-editoricon-triggercategories playergroup Player Group
Ui-editoricon-triggercategories point Point Ui-editoricon-triggercategories portrait Portrait Ui-editoricon-triggercategories region Region Ui-editoricon-triggercategories unitselection Unit Selection Ui-editoricon-triggercategories sound Sound
Ui-editoricon-triggercategories story Story Ui-editoricon-triggercategories strings String Ui-editoricon-triggercategories techtree Tech Tree Ui-editoricon-triggercategories texttag Text Tag Ui-editoricon-triggercategories timer Timer
Ui-editoricon-triggercategories transmission Transmission Ui-editoricon-triggercategories triggers Trigger Ui-editoricon-triggercategories ui UI Ui-editoricon-triggercategories unit Unit Ui-editoricon-triggercategories unitgroup Unit Group
Ui-editoricon-triggercategories variable Variable Ui-editoricon-triggercategories visibility Visibility Effect History Game User User Data
Logic Cutscene

Index of Presets/Constants

Actor

  • 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

AI

  • 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 Advanced

  • 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

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

Bank

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

Camera

  • Camer Shake Amplitude - string
  • Camer 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

Catalog

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

Cinematics

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

Conversation

  • 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

Conversion

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

Cutscene

  • Cutscene - int

Data Table

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

Debug

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

Dialog

  • 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

  • Effect History - int
  • Effect History Effect - int

Environment

  • 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

Game

  • 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

General

  • 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

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

Logic

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

Melee

  • Melee Option - int

Objective

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

Order

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

Ping

  • No Ping - ping

Player

  • (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

Player Group

  • No Player Group - playergroup
  • Player Alliance - int

Point

  • No Point - point

Portrait

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

Region

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

Selection

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

Sound

  • 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
  • CINEMODE_VOLUMEPERCENT - fixed
  • SPEECH_VOLUMEPERCENT - fixed

Story

  • 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

String

  • 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

  • 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

Timer

  • 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

Transmission

  • 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

Trigger

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

UI

  • 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

Unit

  • 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

Unit Group

  • 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

Visibility

  • Fill Type - int
  • Explored/Unexplored Option - bool
  • No Revealer - revealer
  • Visibility Type - int
Advertisement