User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
display_choices [2021/06/29 19:28]
display_choices [2021/06/29 20:42] (current)
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 is displayed containing the text "Justin and Sarah's House".+//Results:// A [[dialogue]] box spoken by Sarah is displayedcontaining 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 that determines the next event in a cutscene when the player is faced with a decision.
 </WRAP> </WRAP>
display_choices.1625020115.txt.gz ยท Last modified: 2021/06/29 19:28 by justin