Grimrock-Script "Wait"
Grimrock-Script "Wait"
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
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
Best
Chris
Chris
Re: Grimrock-Script "Wait"
You could have it so that the timer only starts working when the player enters that level?
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
Re: Grimrock-Script "Wait"
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
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"
yeah, I was thinking something along those lines, sort of making the time-keeping job go along with you in order to remain accurate
Finished Dungeons - complete mods to play
Re: Grimrock-Script "Wait"
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
Thanks
Best
Chris
Chris
Re: Grimrock-Script "Wait"
Wouldn't it be great if an item could be a timer too? haha
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
Re: Grimrock-Script "Wait"
You know what I am thinking? Grandfather clock alcoves!Neikun wrote:Wouldn't it be great if an item could be a timer too? haha
BASILEUS
Re: Grimrock-Script "Wait"
Oh god.
And the pendulum is a removable key!
And the pendulum is a removable key!
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
Re: Grimrock-Script "Wait"
So, there is no easy way let script wait for X seconds?