- Joined
- Jan 7, 2013
- Messages
- 19
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I know this is an old thread but I've seen this script and want to use it fully! Great job on creating this.
I am currently using your script for resource gathering node resets. Works wonders!
Now, I'm trying to use these timers to be controlled by variables which works fine too, as long as you don't need a timer less than 60 seconds or for 1 minute and 15 seconds. Sadly, I DO need timers that involve fractions of a minute.
Scenario:
First I store a variable from the InputNumber function, then I divide it by 60 to get minutes. After that I set a $game_timer to the minutes variable. Here's where my problem comes in. The game won't let me store variables with decimals, it always drops the decimal.
Does this mean that I won't be able to set your timers for minutes and seconds with variables? Because right now it will do whole minutes fine (with variables), and it will do manual fractions of a minute fine (7/60 [without variables]).
Hope that I explained myself well enough. Please let me know if I am missing something. Thanks!
I am currently using your script for resource gathering node resets. Works wonders!
Now, I'm trying to use these timers to be controlled by variables which works fine too, as long as you don't need a timer less than 60 seconds or for 1 minute and 15 seconds. Sadly, I DO need timers that involve fractions of a minute.
Scenario:
Code:
$game_variables[1] = InputNumber() # Not really putting InputNumber() in code, just showing in code format.
$game_variables[2] = $game_variables[1] / 60
$game_timer.set_timer($game_variables[2], [@map_id, @event_id, 'A', false])
Does this mean that I won't be able to set your timers for minutes and seconds with variables? Because right now it will do whole minutes fine (with variables), and it will do manual fractions of a minute fine (7/60 [without variables]).
Hope that I explained myself well enough. Please let me know if I am missing something. Thanks!