Text output

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
vorebane
Posts: 41
Joined: Wed Oct 03, 2012 4:31 am

Re: Text output

Post by vorebane »

I've been able to get 'wait-like' commands working! Essentially you make use of the timer, and use a couple more functions. Your script or pressure plate or what have you activates a timer, which ticks along until it gets to a number you set. The timer is set to activate another function or object that does what its supposed to. You will also want to include a script that turns off the timer, or else have the one thing timer does keep happening forever. I hope you can make your original version work somewhere else if you're done with this bit already.
Hariolor
Posts: 42
Joined: Sun Apr 15, 2012 5:59 am

Re: Text output

Post by Hariolor »

vorebane wrote:I've been able to get 'wait-like' commands working! Essentially you make use of the timer, and use a couple more functions. Your script or pressure plate or what have you activates a timer, which ticks along until it gets to a number you set. The timer is set to activate another function or object that does what its supposed to. You will also want to include a script that turns off the timer, or else have the one thing timer does keep happening forever. I hope you can make your original version work somewhere else if you're done with this bit already.
Absolutely, timers are really powerful.

To save some effort, you can give the timer a connection to itself and set it to "deactivate", rather than writing another function - this might be easier and 9/10 times will be all you need to keep it from cycling endlessly.
vorebane
Posts: 41
Joined: Wed Oct 03, 2012 4:31 am

Re: Text output

Post by vorebane »

Ah I can tell asking you about it would have saved myself some time coding then. :)
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Text output

Post by Komag »

indeed, if your complex script is behaving strangely, it's always a good idea to check whether a timer isn't set to deactivate itself!
Finished Dungeons - complete mods to play
Post Reply