For my game, I want a mechanic that gives you only a specified amount of time to make a choice (via 'Show Choices') and request a script for it. I do not want all of my choices to have this time limit, so maybe it could be activated by a toggle via script call or switch?
These choices usually occur in a large line of text, so if the player runs out of time, it will move on with the event and display the next text box and remove the choice box.
Strange. The script worked for me with choices.
I don't know if it would work, but even if it does, I can't see any convenient way of doing what is requested here with it.
The choice selection shows up, which means that an event is currently running already.
The choice selection stays for the specified amount of time at max (or until the player selects one, of course).
After the specified time, the choice selection will be terminated, the specified choice will be automatically selected, AND it continues the current event processing like if the player would have selected a choice normally.
I can't see this happening in any way with the script you mentioned.
You could end the events with it when the timer expires, but that would mean it would end the whole event, skipping anything below (or inside) the choice selection branches.
You could also possibly use other script calls to forcibly end the choice selection of the specified event only, but why do that, when there is a script designed especially for this anyway?
But if you know a way of doing what is requested with the script you linked without convoluted solutions, I am always ready to learn new things.
I must admit that my eventing skills with the default engine got a bit rusty. 😛
I just used switches, and it worked just fine for me. I don't want a big hussle about it, and I'm sure you don't either 😛 so let's just let the requester pick what they want.