SC2Mapster Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Help
SC2MAPSTER
News
Maps
Assets
Teams
Authors
Forums
Paste
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
SC2Mapster Wiki
1,003
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Help
SC2MAPSTER
News
Maps
Assets
Teams
Authors
Forums
Paste
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Triggers/Category General
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Triggers/Category General
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===[[triggers/switch|Switch]]=== *'''Action'''. Switch statements check a specified condition, and perform a single action set based on the result. For example: If you wanted to apply a behavior to any unit that enters a certain region, but you want to apply a different behavior depending on the type of unit that enters the region, you could set up a Switch statement in your trigger based on the "Unit Type "of the "Triggering Unit". Individual cases could then be added to the switch statement for different Unit Types, each case with its own unique action set. The Default action set would fire if the result from the Switch statement did not match any of the cases.
Summary:
Please note that all contributions to the SC2Mapster Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab