2025-05-28 21:48:33 -04:00
### Function: CreateOptionWindow()
2025-05-13 22:57:49 -04:00
2025-05-28 21:48:33 -04:00
**Description:** Creates a new custom option selection window. This window can hold multiple options (buttons) that the script can present to the player, usually as part of a custom UI or dialogue.
2025-05-13 22:57:49 -04:00
2025-05-28 21:48:33 -04:00
**Parameters:** None (after creation, use other functions to add options).
2025-05-13 22:57:49 -04:00
2025-05-28 21:48:33 -04:00
**Returns:** OptionWindow – A handle or reference to the newly created option window object.
2025-05-13 22:57:49 -04:00
2025-05-28 21:48:33 -04:00
**Example:**
2025-05-13 22:57:49 -04:00
2025-05-28 21:48:33 -04:00
```lua
2025-05-13 22:57:49 -04:00
-- Example usage (creating an option window with choices)
local window = CreateOptionWindow()
AddOptionWindowOption(window, "Accept Quest", "Do you accept the quest?")
AddOptionWindowOption(window, "Decline Quest", "Maybe later.")
2025-05-28 21:48:33 -04:00
SendOptionWindow(window, Player)
```