Timed decisions

Is it possible to make decisions timed using Choicesript IDE? I couldn’t find anything on the Wiki.

1 Like

Nope, ChoiceScript simply does not have this functionality. It’s a pretty limited language, for better or worse. Stuff like timed decisions is why we have more general platforms for interactive fiction like Twine with its various (more or less) flexible formats.

4 Likes

Would I be able to move my code to twine without any trouble or is it a completely different language?

Twine is a tool for creating interactive fiction, not a language. And yes, it has nothing to do with ChoiceScript aside from having been made for a similar purpose at roughly the same time. You should not even think of importing your code that way, nothing aside from the text itself will translate.

4 Likes

It depends what you mean by timed decisions.

It you mean a certain time to select a choice then no. But if you mean having a time limit to make choices in general it is kind of possible.

This code would allow players to choose 2 options before they run out of time.

*create hours 2

*label search
*if (hours = 0)
    *goto late
You have ${hours} left. 
*choice
    #Search the living room.
        *set hours -1
        *goto search
    #Search the kitchen. 
        *set hours -1
        *goto search
    #Search dining room.
        *set hours -1
        *goto search
    #Search basement.
        *set hours -1
        *goto search

*label late
Oh dear you're out time.
*ending
1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.