From ce82a4ca0e50755e1d6492f1c18f529781817cf2 Mon Sep 17 00:00:00 2001 From: Tony Bark Date: Fri, 21 Feb 2025 15:39:48 -0500 Subject: [PATCH] Added input variable to draft spec --- draft/README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/draft/README.md b/draft/README.md index 839088d..41a93fa 100644 --- a/draft/README.md +++ b/draft/README.md @@ -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:** - - - **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~` - - **Description:** Applies basic text formatting. +10. **Text Styling:** + + - **Syntax:** `''italic''`, `'''bold'''`, `^^superscript^^`, `~~subscript~~` + - **Description:** Applies basic text formatting. ### Usage