When conditions are applied to relays

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

When conditions are applied to relays

Post by Chaos Awakes »

If I set a relay to trigger after a length of time, with a condition, the condition appears to be tested before the time starts counting down, not after. Therefore, if the event triggered by the relay doesn't happen for 10 seconds, it doesn't happen if the condition is false when the relay is triggered, not when the even happens 10 seconds later.

This messes things up for me. I have a door which is supposed to close after 10 seconds IF a condition is true when it is due to close. It doesn't work because the condition is always false when the relay is triggered, but could be either true or false 10 seconds later.
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Well then, simple, have a relay with a ten second delayr, then have that trigger another relay with your condition that activated immediately
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Nope, this is working exactly as it should.

The way to get the behaviour your want for your door is exactly what Beowuuf said!
Post Reply