User Tools

Site Tools


display_choices

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
display_choices [2021/06/29 20:13] justindisplay_choices [2021/06/29 20:41] justin
Line 20: Line 20:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-display_choices("Choose a reward!", array["Gold Coins", "Potions"], entity["Sarah"]);+display_choices("Choose a reward!", array["Food", "Potions"], entity["Sarah"]);
 </code> </code>
 //Results:// A [[dialogue]] box spoken by Sarah is displayed, containing the text "Choose a reward!" along with two options for the player to choose between. //Results:// A [[dialogue]] box spoken by Sarah is displayed, containing the text "Choose a reward!" along with two options for the player to choose between.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Display Choices** function to .+Use the **Display Choices** function to provide a list of rewards for the player to choose from upon completing a quest or to provide a prompt to determine the next sequence in a cutscene when the player is faced with a decision.
 </WRAP> </WRAP>
  
display_choices.txt · Last modified: 2021/06/29 20:42 by justin