Modifying timer? Decreasing it by 1 minute?

I was wondering if there is a way to modify the timer? A person has 5 minutes to get to work, but every time the bus drives passed them, 1 minute goes automatically. Also the bus ride goes down 2 minutes as well. Is there a way to do this? To change the timer as it's running?
You can either use a scipt call, like this:


$gameTimer._frames = $gameTimer._frames - 600;


Replace the 600 with the number of frames you want to subtract from the timer (1 second = 60 frames).


It might also be a good idea to check if the time left would be negative, and in that case set the timer to 0, like this:


if ($gameTimer._frames - 600 > 0) {
$gameTimer._frames = $gameTimer._frames - 600;
} else {
$gameTimer._frames = 0;
}




Or you can use a plugin like this one:


http://forums.rpgmakerweb.com/index.php?/topic/54387-timer-expansion-mv-v10/#comment-535464


The download link is a bit broken, you can find the plugin here:


http://pastebin.com/raw/iuhzZqLV


Hope that helps 🙂

Original thread: https://forums.rpgmakerweb.com/threads/modifying-timer-decreasing-it-by-1-minute.69261/