summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-01-15 00:13:48 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-01-15 00:13:48 +0100
commitd272efa49173c3708ddde54a96486261b73d7908 (patch)
treec6b5fa20c04593552fb378777cdc78471b1892b8 /content/fate_v1/instructions/player_choices/_index.md
parent0a32a8eeb98d5f3507edf5e303ae655f4b923c74 (diff)
...
Diffstat (limited to 'content/fate_v1/instructions/player_choices/_index.md')
-rw-r--r--content/fate_v1/instructions/player_choices/_index.md14
1 files changed, 14 insertions, 0 deletions
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 >}}