Smart Variables
Learn about using smart variables that determine their value at run-time.
Why Use Smart Variables?
Practical Examples
Example 1: Character Relationships
<<declare $player_is_friends_with_sam = $sam_relationship_score > 50>>
<<if $player_is_friends_with_sam>>
Sam: Hey buddy! Good to see you again.
<<else>>
Sam: Oh, it's you. What do you want?
<<endif>>Example 2: Item Availability
Example 3: Time-Based Events
Benefits in Complex Games
Last updated
Was this helpful?
