Grimrock-Script "Wait"

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
sirK2005
Posts: 14
Joined: Wed Oct 10, 2012 3:26 pm

Grimrock-Script "Wait"

Post 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
Best
Chris
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Grimrock-Script "Wait"

Post by Komag »

sorry, no such thing
Finished Dungeons - complete mods to play
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Grimrock-Script "Wait"

Post by Neikun »

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
  • Message me to join in!
User avatar
Shroom
Posts: 98
Joined: Tue Mar 27, 2012 6:37 pm
Location: UK

Re: Grimrock-Script "Wait"

Post 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 :)
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Grimrock-Script "Wait"

Post 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
Finished Dungeons - complete mods to play
sirK2005
Posts: 14
Joined: Wed Oct 10, 2012 3:26 pm

Re: Grimrock-Script "Wait"

Post 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
Best
Chris
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Grimrock-Script "Wait"

Post by Neikun »

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
  • Message me to join in!
User avatar
Kuningas
Posts: 268
Joined: Wed Apr 11, 2012 10:29 pm
Location: Northern Finland

Re: Grimrock-Script "Wait"

Post 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!
BASILEUS
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Grimrock-Script "Wait"

Post by Neikun »

Oh god.
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
  • Message me to join in!
tymur
Posts: 27
Joined: Fri Jan 25, 2013 7:22 pm

Re: Grimrock-Script "Wait"

Post by tymur »

So, there is no easy way let script wait for X seconds?
Post Reply