Extended Game Timers
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:
Code:
$game_variables = InputNumber() # Not really putting InputNumber() in code, just showing in code format.
$game_variables = $game_variables / 60
$game_timer.set_timer($game_variables, [@map_id, @event_id, 'A', false])
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 ).
Hope that I explained myself well enough. Please let me know if I am missing something. Thanks!
本贴来自国际rpgmaker官方论坛作者:navybofus处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/extended-game-timers.1516/
页:
[1]