Page 1 of 2
Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 11:15 am
by sirK2005
Hi folks,
is there a command for a function to wait a couple of seconds without using a timer?
In some ways I want to create my own timer, just scripted. Because I have a problem with timers on different levels beeing slower than normal and thus want to test if a "scripted timer" behaves normally all over the levels.
Best
Chris
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 11:19 am
by Komag
sorry, no such thing
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 11:43 am
by Neikun
You could have it so that the timer only starts working when the player enters that level?
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 12:47 pm
by Shroom
If you are wanting to have a timer start on one level and when it runs out, close a door (or something) on another level, then you could try the following.
Start timer on level 1 - This timer has a 1 second interval and links to a counter - set the action to increment the counter.
when they appear on level 2 (or leave level 1 - you would have to try what works best), use a plate to trigger a script to read the value in the counter on level 1 and set a timer on level 2 with the difference between it and the desired time as the level 2 timers Interval and activate it. This second timer can even be entirely constructed in code if necessary.
So basically you are using the counter on level 1 to count the number of seconds passed there and then set the timer on level 2 to be the remaining time. That timer can then activate whatever it is you wanted to do - probably best a script, to deactivate everything and reset it etc.
Hope this helps
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 1:01 pm
by Komag
yeah, I was thinking something along those lines, sort of making the time-keeping job go along with you in order to remain accurate
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 1:27 pm
by sirK2005
I have basically implemented Shrooms Idea know. It works. Though it's a bit nerve consuming always creating a plate when entering a knew level to set everything up.
Thanks
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 1:49 pm
by Neikun
Wouldn't it be great if an item could be a timer too? haha
Re: Grimrock-Script "Wait"
Posted: Fri Oct 12, 2012 3:07 pm
by Kuningas
Neikun wrote:Wouldn't it be great if an item could be a timer too? haha
You know what I am thinking? Grandfather clock alcoves!
Re: Grimrock-Script "Wait"
Posted: Sat Oct 13, 2012 2:25 am
by Neikun
Oh god.
And the pendulum is a removable key!
Re: Grimrock-Script "Wait"
Posted: Fri Feb 08, 2013 1:49 am
by tymur
So, there is no easy way let script wait for X seconds?