User Tools

Site Tools


conditional_expression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
conditional_expression [2020/02/14 12:30] justinconditional_expression [2020/02/14 12:35] justin
Line 21: Line 21:
 global.property["gems_collected"] >= 5 global.property["gems_collected"] >= 5
 </code> </code>
 +Evaluates to true if the global property "gems_collected" contains a numerical value greater than or equal to 5.
 <code bauxite> <code bauxite>
-player.inventory contains "Gold Key"+player.inventory contains "ITEM_0001"
 </code> </code>
 +Evaluates to true if the player has at least one of "ITEM_0001" in their inventory.
 +<code bauxite>
 +initiator.tags contains "human"
 +</code>
 +Evaluates to true if the initiator [[entity|entity's]] list of model tags includes the tag "human".
  
conditional_expression.txt · Last modified: 2022/12/16 18:25 by justin