3 pressure plates, 1 door.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Nickydude
Posts: 44
Joined: Sun Oct 28, 2012 1:34 am
Location: UK

3 pressure plates, 1 door.

Post by Nickydude »

No, it's not a dodgy video lol!

I want to have a secret door open only when things are placed on three pressure pads, activating them, but only when ALL three have been active (removing an object deactivates the pad).

Could anyone point me in the right direction? Any help would be much appreciated. :mrgreen:
"Hey look! A dungeons and Dragons ride...!"
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: 3 pressure plates, 1 door.

Post by Komag »

gotta love the easy ones!

two methods, editor objects alone, or script.

Editor Objects:
place a counter set to 3
link each plate to the counter with two connections:
"activate --> decrement"
"deactivate --> increment"
link the counter to the door. and depending on whether you want the door to open permanently or not:
permanent: link with "activate --> open"
not permanent (only stays open if all three plates stay down): link with "any --> toggle"

Script:

Code: Select all

function checkPlates()
  if plate1:isDown and plate2:isDown and plate3:isDown then
     thisDoor:open()
    else
     thisDoor:close()
  end
end
link each plate to the script with "any --> checkPlates"
that is the non permanent setup. if you want the door to open permanently just change the script to:

Code: Select all

function checkPlates()
  if plate1:isDown and plate2:isDown and plate3:isDown then
     thisDoor:open()
  end
end
I haven't tested any of that but it's pretty straightforward so it should work I think
Finished Dungeons - complete mods to play
User avatar
Nickydude
Posts: 44
Joined: Sun Oct 28, 2012 1:34 am
Location: UK

Re: 3 pressure plates, 1 door.

Post by Nickydude »

gotta love the easy ones!
Wow, quick and painless, excellent Komag thanks, I'll try that when i get home.

Edit: may i add this to the Dungeon Editor Guide I'm compiling?
"Hey look! A dungeons and Dragons ride...!"
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: 3 pressure plates, 1 door.

Post by Komag »

You can do whatever you want, but it might be helpful to get some more experience and expertise under your belt first so you will have a better idea what should be part of the guide :)
Finished Dungeons - complete mods to play
User avatar
Nickydude
Posts: 44
Joined: Sun Oct 28, 2012 1:34 am
Location: UK

Re: 3 pressure plates, 1 door.

Post by Nickydude »

I now have it working but I'd like 1 pressure pad to do two things:

1/. When only the party stands on it it opens 1 door.

2/. Only when an item is dropped on it it opens door 2.

At the moment door 2 opens whether and item or the player is stood on it, this is because I have 'Triggered by Party' ticked as I want it to open door one AND I have 'Triggered by Item' because I only want an item to trigger opening door 2. is there any way to do the above?
"Hey look! A dungeons and Dragons ride...!"
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: 3 pressure plates, 1 door.

Post by Komag »

two plates, it's the only (easy) way
Finished Dungeons - complete mods to play
User avatar
Nickydude
Posts: 44
Joined: Sun Oct 28, 2012 1:34 am
Location: UK

Re: 3 pressure plates, 1 door.

Post by Nickydude »

Hmmm... really want to keep to 1 plate doing both but I guess you can't, no worries, thanks again Komag.
"Hey look! A dungeons and Dragons ride...!"
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: 3 pressure plates, 1 door.

Post by Komag »

You have one visible plate that links to nothing, so it appears to go down but that's all, and goes down with party and items, this is the "fake" plate.
You have 2 hidden plates, one for party, one for item, these have the real connections :)
Finished Dungeons - complete mods to play
User avatar
Nickydude
Posts: 44
Joined: Sun Oct 28, 2012 1:34 am
Location: UK

Re: 3 pressure plates, 1 door.

Post by Nickydude »

You mean put two plates on one tile?
"Hey look! A dungeons and Dragons ride...!"
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: 3 pressure plates, 1 door.

Post by Komag »

in this case, three!
Finished Dungeons - complete mods to play
Post Reply