Added input variable to draft spec
This commit is contained in:
parent
3119129b8b
commit
ce82a4ca0e
1 changed files with 13 additions and 8 deletions
|
@ -28,27 +28,32 @@ The Interactive Story Draft (ISD) format is a intermediate language designed for
|
||||||
- **Syntax:** `(set: $variableName to value)`
|
- **Syntax:** `(set: $variableName to value)`
|
||||||
- **Description:** Assigns a value to a variable.
|
- **Description:** Assigns a value to a variable.
|
||||||
|
|
||||||
5. **Conditional Statements:**
|
5. **Input Variable**:
|
||||||
|
|
||||||
|
- **Syntax:** `(input: $userVariable, "Placeholder")`
|
||||||
|
- **Description:** Allows the user to input data.
|
||||||
|
|
||||||
|
6. **Conditional Statements:**
|
||||||
|
|
||||||
- **Syntax:** `(if: condition)[Text if true]`
|
- **Syntax:** `(if: condition)[Text if true]`
|
||||||
- **Description:** Displays text or content based on a condition.
|
- **Description:** Displays text or content based on a condition.
|
||||||
|
|
||||||
6. **Else Clause:**
|
7. **Else Clause:**
|
||||||
|
|
||||||
- **Syntax:** `(else:)[Text if false]`
|
- **Syntax:** `(else:)[Text if false]`
|
||||||
- **Description:** Follows an `(if:)` statement to handle the false condition.
|
- **Description:** Follows an `(if:)` statement to handle the false condition.
|
||||||
|
|
||||||
7. **Drop down:**
|
8. **Drop down:**
|
||||||
|
|
||||||
- **Syntax:** ``(dropdown: $variableName to "Option 1", "Option 2")``
|
- **Syntax:** ``(dropdown: $variableName to "Option 1", "Option 2")``
|
||||||
- **Description:** Assigns a drop down menu with the given strings as options.
|
- **Description:** Assigns a drop down menu with the given strings as options.
|
||||||
|
|
||||||
8. **Random Number Generation:**
|
9. **Random Number Generation:**
|
||||||
|
|
||||||
- **Syntax:** `(set: $variableName to (random: min, max))`
|
- **Syntax:** `(set: $variableName to (random: min, max))`
|
||||||
- **Description:** Sets a variable to a random number between `min` and `max`.
|
- **Description:** Sets a variable to a random number between `min` and `max`.
|
||||||
|
|
||||||
9. **Text Styling:**
|
10. **Text Styling:**
|
||||||
|
|
||||||
- **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~`
|
- **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~`
|
||||||
- **Description:** Applies basic text formatting.
|
- **Description:** Applies basic text formatting.
|
||||||
|
|
Loading…
Add table
Reference in a new issue