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
Trigger Editor Overview | Events |
Conditions | Functions |
Variables And Records | Data Types |
Presets/Constants | 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.
Index of Presets/Constants
Actor
|
|
|
|
AI
|
|
AI Advanced
|
|
Animation
|
|
Bank
|
Camera
|
|
|
Catalog
|
|
Cinematics
|
Conversation
|
|
|
Conversion
|
Cutscene
|
Data Table
|
Debug
|
Dialog
|
|
|
Effect History
|
Environment
|
|
|
Game
|
|
|
|
Game User
|
General
|
|
|
|
|
Leaderboard
|
|
Logic
|
|
Melee
|
Objective
|
Order
|
|
Ping
|
Player
|
|
|
|
Player Group
|
Point
|
Portrait
|
|
Region
|
Selection
|
Sound
|
|
|
Story
|
|
String
|
|
Tech Tree
|
Text Tag
|
|
Timer
|
|
|
Transmission
|
|
Trigger
|
|
UI
|
|
|
|
|
Unit
|
|
|
|
|
Unit Group
|
|
User Data
|
Visibility
|