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/Conditions
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Triggers/Conditions
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!
''If you want to create an action or function page, use this [[Triggers/Trigger Page Template|Template]]. If you want to create a new trigger category page, use this [[Triggers/Category Template| Template]].'' {{Trigger Elements}} =Conditions= Conditions are evaluated to determine if a trigger should be run, like an if statement. All native conditions in Starcraft 2 belong to the [[Triggers/Category Logic|Logic]] category. You can define new conditions with [[Triggers/Definitions|Condition Definitions]], which must return true or false ([[Types/Bool|Boolean]] return type). A trigger will only run if every condition is valid. ==Condition Index== ===[[Triggers/Conditions/And|And]]=== Returns true if all of the conditions listed under the "And" condition return true. By default, lists of conditions without an "And" condition or an "Or" condition must all return true in order for the condition to evaluate to true (they are treated as if they were under an "And" condition). Therefore, this condition is only necessary if it is nested within another condition such as a "Not" condition or an "Or" condition. ===[[Triggers/Conditions/Comparison|Comparison]]=== Evaluates and compares two '''Parameters''' of the same [[Types|Type]]. ===[[Triggers/Conditions/Not|Not]]=== Returns true if all the conditions listed under it evaluate to false. If multiple conditions are listed under the "Not" condition, those conditions will first be evaluated as if they were under an "Or" condition, and then the "Not" condition will invert the result. ===[[Triggers/Conditions/Or|Or]]=== Returns true if any of the conditions listed under the "Or" condition return true. By default, lists of conditions without an "And" condition or an "Or" condition must all return true in order for the condition to evaluate to true (they are treated as if they were under an "And" condition). ===[[Triggers/Conditions/Text Has Been Set|Text Has Been Set]]=== Returns true if the '''Text''' [[Types|Type]] '''Parameter''' is not null. ===[[Triggers/Conditions/Within Bounds|Within Bounds]]=== Returns true if the Value parameter is in between the Min and Max parameters, or if the Value parameter is equal to either the Min or the Max parameter. All the parameters accept any numeric value. [[Category:Triggers]]
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)
Template used on this page:
Template:Trigger Elements
(
view source
)
Follow on IG
TikTok
Join Fan Lab