| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'content/fate_v1')
| -rw-r--r-- | content/fate_v1/_index.md | 4 | ||||
| -rw-r--r-- | content/fate_v1/instructions/player_choices/_index.md | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/content/fate_v1/_index.md b/content/fate_v1/_index.md index 2b14b63..43075d1 100644 --- a/content/fate_v1/_index.md +++ b/content/fate_v1/_index.md @@ -1,6 +1,6 @@ --- -title: "Fate (Version 1)" -menuTitle: "Fate" +title: "Fate Language (Version 1) Documentation" +menuTitle: "Fate Language" weight: 3 --- 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 >}} |


