Jump to content

Recommended Posts

Window Timer



This script provides basic countdown timer functionality for windows.

The timer is stored in frames, and decreases by 1 per frame update.


I have also implemented two features to demonstrate how it is used (ie: make this script actually useful)


1. Message windows. Automatically skips the message when time-out

2: Choice window. Automatically selects a time-out choice.




Script: http://db.tt/BUQC7Vfa




This script uses the control character "\T" (case insensitive) to specify time-out.

It is used in text input as follows




Where n is the number of seconds before time-out (1 second = 60 frames)


In message windows, you just need to include the control character somewhere.


In choice windows, the last choice that contains a time-out control will be selected as the time-out choice. So for example you might have


choice 1
choice 2
choice 3
  \T[5]Can you repeat the question?


If choice 2 was the cancel choice, and you time-out, then choice 3 will be selected.


For developers


For the most part you will probably only need to specify the time-out behavior. Simply alias or super that method


def update_timeout
  # your code

Edited by Tsukihime
  • Like 3

Share this post

Link to post
Share on other sites

This is exactly what I needed--thanks so much!


I hope you don't mind; I added it to my global/shared repo of scripts here.

Share this post

Link to post
Share on other sites

This is pretty cool and handy.


One issue/question in relation to the 2nd feature: If a choice is made should the timer not disappear or become inactive? When I was testing it I had a choice followed by a choice and the timer seemed to continue over to the second choice?

Share this post

Link to post
Share on other sites
On 9/4/2019 at 7:43 PM, roninator2 said:

I cannot find the script.

I tried downloading the files but I don't see it.

tried checking in the GitHub files abut I don't see it.

Is the script under a different name or something?

Because the only thing I see that's is close to the title and creator is 'Window Animation'

Maybe it's only accessible for certain users or something?

I don't know.

Edited by xSydRowex
Forgot detail.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Top ArrowTop Arrow Highlighted