From d272efa49173c3708ddde54a96486261b73d7908 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sat, 15 Jan 2022 00:13:48 +0100 Subject: ... --- content/fate_v1/instructions/player_choices/_index.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'content/fate_v1/instructions') diff --git a/content/fate_v1/instructions/player_choices/_index.md b/content/fate_v1/instructions/player_choices/_index.md index 4b54789..7b7ac58 100644 --- a/content/fate_v1/instructions/player_choices/_index.md +++ b/content/fate_v1/instructions/player_choices/_index.md @@ -30,6 +30,20 @@ A special version of the `for` loop is also possible, as described below: ### USER CHOICE - FOR TODO +### COMMAND PROMPT +{{< fatecode >}}(prompt_command! [(STRING LIST) REFERENCE] [MIN = INT] [MAX = INT] [TEXT]){{< /fatecode >}} + +Prompts the user for a list of strings separated by spaces. `[MIN]` and `[MAX]` +indicate the total number of characters (spaces included) allowed as input. +The `[TEXT]` message is prompted to the user. The result is stored in +`[(STRING LIST) REFERENCE]`. + +### FLOAT PROMPT +{{< fatecode >}}(prompt_float! [FLOAT REFERENCE] [MIN = FLOAT] [MAX = FLOAT] [TEXT]){{< /fatecode >}} + +Prompts the user for a float between `[MIN]` and `[MAX]` by displaying the +message `[TEXT]`. The result is stored in `[FLOAT REFERENCE]`. + ### INTEGER PROMPT {{< fatecode >}}(prompt_integer! [INT REFERENCE] [MIN = INT] [MAX = INT] [TEXT]){{< /fatecode >}} -- cgit v1.2.3-70-g09d2