Scripting a Pressure Plate puzzle - Help!

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
dnaeil
Posts: 9
Joined: Fri Apr 13, 2012 2:44 pm
Location: Germany

Re: Scripting a Pressure Plate puzzle - Help!

Post by dnaeil »

No problem, i self didn't have a lot of free time the last weeks. But I tried several new things and a friend tried to help me a bit ... but it doesn't work yet.
Thats what he wrote at the end of the script:

function isPressed()
counter = counter + 1
local correct_plate = findEntity(runes[counter])

if not correct_plate:isDown() then
counter = 0
end

if counter == #runes then
rune_doors:open()
for i = 0, 3 do
rune_doors_name:open()
end
counter = 0
end

Maybe i will give up to open several doors and only open one door, but then i still have to signal the player, when he pressed the right pressure plates.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Scripting a Pressure Plate puzzle - Help!

Post by msyblade »

THINK you can try:

runedoor0: open()
runedoor1: open()
runedoor2: open()
runedoor3: open()
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply