Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added countdown options for next throw #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

misterwondo
Copy link

I really liked this script but I found it a bit annoying how I couldn't change the timer until next throw, and was forced to go into the file itself and edit it. So I took the time and added some stuff and there is now two new options that people can use. I've tested it with several different combinations of settings and it all seems to work.

  • "Shortest time until next throw (seconds)"
    -"Longest amount of time until next throw(seconds)"
    Range is 1 to 3600 seconds. Meaning that the longest time until next throw is an hour. Setting the two values will obviously not randomize the throws anymore and will instead just countdown the time set and throw the little cute cat or whatever the source is.

NOTE: I have never edited a OBS script, nor Lua before so if any of the code I added is not usable for some reason that I'm not aware of, please tell me because I would love to learn more about it. I didn't even know Lua existed before today. Same goes for github, I'm honestly so lost in this process so please do tell me If I've misunderstood anything

I really liked this script but I found it a bit annoying how I couldn't change the timer until next throw, and was forced to go into the file itself and edit it. So I took the time and added some stuff and there is now two new options that people can use. I've tested it with several different combinations of settings and it all seems to work. 

- "Shortest time until next throw (seconds)" 
-"Longest amount of time until next throw(seconds)" 
Range is 1 to 3600 seconds. Meaning that the longest time until next throw is an hour. Setting the two values will obviously not randomize the throws anymore and will instead just countdown the time set and throw the little cute cat or whatever the source is. 

NOTE: I have never edited a OBS script, nor Lua before so if any of the code I added is not usable for some reason that I'm not aware of, please tell me because I would love to learn more about it. I didn't even know Lua existed before today.  Same goes for github, I'm honestly so lost in this process so please do tell me If I've misunderstood anything
Fixed typos in some variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant