It's such a long time since I wrote this - I thought I'd gotten into the habit of eval'ing all arguments so variables could be used. I'll take a look, but not sure how soon it'll be.
Thanks,
and what was in variable 160 prior to the call?
Reason for this is that I want the timer to be paused during a cutscene, so the player doesn't have to rush through it to make up for the fact the timer is still ticking down. 😛
Thanks.
I've just added this plugin to my own converted project, so I will be re-testing at some point. However, I've got a lot of script calls to convert first before I can even begin to play without any errors. So it might be a while, but it's on my list. You've got a solution though, so at least you're not waiting for me 🙂
What sets time to 1?
You have two conditions for if time = 1. Maybe the first one should be if time = 0?
Hi there!
I 'm trying to use this, but i have a hard time to get it to work.
I cant understand it very well.
So i have an event of two pages.
In page 1, when the event touch the player, it will start a timer of 10 seconds.
AddTimer resting 10
Then it will turn on the self switch A.
Then, in the page 2 activated by the SELF SWITCH A, i like to put a conditional branch that checks if the resting timer = 0 the it turn the self switch a off.
PAGE 1
◆Plugin Command:AddTimer resting 10
◆Plugin Command:HasTimer resting A
PAGE 2
???? How can i do that?
No, that's not how you use it. On page 1 you add your timer, and tell it to turn off self switch A after 10 seconds. You've added the timer, but you don't tell it what to do. You don't put anything on page 2. The plugin turns the self switch off when the time is up.
Does this plugin work with fractions of a second?
EDIT: One more thing, how would I get the timer to set a variable to a random value between 1 and 7 inclusive?
Thank you! That seems to have worked so far.
Alright, I'm still having some problems with the timer, so I might as well explain what I'm trying to do with it.
Shin Megami Tensei Nocturne's main battle theme has 7 variations of the chorus of the song, the game choosing which one to play next randomly. I want to implement this song, random choice included. (That's why I needed that number from 1-7 inclusive thing, to set the variable, thank you again).
I think the easiest way to do that would be to start a timer at the start of the song, then choose another variant from 1-7 and start a new timer for the length of that. However, I haven't been able to get the variable setting to work with your variable setting Plugin Command, so I was wondering if it would be possible to tell the Battle Event to not execute any of the remaining code until the timer was finished.
Is this possible with this plugin? And if not, could I request it be added as a feature? Thanks regardless.
This plugin would not pause a battle event in the middle of its list of commands, and I would not make a change for it to do so. That's not its function, and the request is far too specific.
Instead, you could experiment with using a switch to activate the battle event, and set the switch with the timer. In fact, I wouldn't use a timer for the random number either - I'd do that with a Control Variables which already has random number selection built in.