Added input variable to draft spec

This commit is contained in:
Tony Bark 2025-02-21 15:39:48 -05:00
parent 3119129b8b
commit ce82a4ca0e

View file

@ -28,30 +28,35 @@ The Interactive Story Draft (ISD) format is a intermediate language designed for
- **Syntax:** `(set: $variableName to value)`
- **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]`
- **Description:** Displays text or content based on a condition.
6. **Else Clause:**
7. **Else Clause:**
- **Syntax:** `(else:)[Text if false]`
- **Description:** Follows an `(if:)` statement to handle the false condition.
7. **Drop down:**
8. **Drop down:**
- **Syntax:** ``(dropdown: $variableName to "Option 1", "Option 2")``
- **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))`
- **Description:** Sets a variable to a random number between `min` and `max`.
9. **Text Styling:**
10. **Text Styling:**
- **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~`
- **Description:** Applies basic text formatting.
- **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~`
- **Description:** Applies basic text formatting.
### Usage