How to make pit puzzle, such as the chamber of pits?
How to make pit puzzle, such as the chamber of pits?
It is possible to do it without sscripting? Sorry for my English.
Re: How to make pit puzzle, such as the chamber of pits?
there are lots of pit puzzle possibilities - what is the "chamber of pits"?
Finished Dungeons - complete mods to play
Re: How to make pit puzzle, such as the chamber of pits?
The chamber of pits is the puzzle in 5th level, Hallways if I remember correctly.
Re: How to make pit puzzle, such as the chamber of pits?
OK, that probably did'n give you any informations about what I meant xD So: I decided to make puzzle which opens and closes pits in specified order. BTW I probably wrote all the sentences wrong.
Re: How to make pit puzzle, such as the chamber of pits?
I think chamber of pits has "just" a path of traps, with timers to make it more difficult. it requires a lot of testing, for sure...
ad&d / ff / d&d
Re: How to make pit puzzle, such as the chamber of pits?
There is a trapdoor riddle in Dungeon Master. To solve the Problem how to open and close the pits every pit has its own hidden_plate which is connected to other pits for open/close/toggle.
The other way is to use timers.
The other way is to use timers.
Re: How to make pit puzzle, such as the chamber of pits?
Yes, that's not too hard to set up, you just have a timer running which will open and shut the pits you set it to. Here is a similar script:
Use a single timer's repeating signal to perform a series of events in a row
Use a single timer's repeating signal to perform a series of events in a row
Finished Dungeons - complete mods to play
Re: How to make pit puzzle, such as the chamber of pits?
I won't do the whole script here since it gets very lengthy once all the functionality is in and any potentially buggy cases are handled. But I'll give you something where you can start off but mind you, it won't be the simplest of scripts!
Anyhow, here's the essentials of how I made the chamber of pits (this pseudocode contains only the essence of what we're trying to achieve so this is definitely unusable as-is):
The pitSequence-function is activated with a timer.
So, I leave it as an excercise to the scripters here to work it out how to make this thing actually work . One thing that definitely needs to be fixed there is the line where pits are closed since tables don't have negative indexes (the script looks for sequence[-2]). A clever modulo ( "(time-3) % #sequence" I think...) or an if-then conditional could handle it.
edit: Komag's example is probably easier for a beginner scripter to pull off and it will do its job but this solution should be more straightforward to work with and iterate once the base work has been done (you can change the sequence more easily or reverse it easily with a lever like in the original).
Anyhow, here's the essentials of how I made the chamber of pits (this pseudocode contains only the essence of what we're trying to achieve so this is definitely unusable as-is):
Code: Select all
time = 1
function pitSequence()
local sequence = { pit9, pit8, pit7, pit4 and so on } --this doesn't contain ALL the pits, only the exact sequence or the path of closing and opening pits
sequence[time]:close() --close a pit in the sequence
sequence[time-3]:open() --and then open a pit again a few steps behind
time = time + 1
end
So, I leave it as an excercise to the scripters here to work it out how to make this thing actually work . One thing that definitely needs to be fixed there is the line where pits are closed since tables don't have negative indexes (the script looks for sequence[-2]). A clever modulo ( "(time-3) % #sequence" I think...) or an if-then conditional could handle it.
edit: Komag's example is probably easier for a beginner scripter to pull off and it will do its job but this solution should be more straightforward to work with and iterate once the base work has been done (you can change the sequence more easily or reverse it easily with a lever like in the original).
Steven Seagal of gaming industry
Re: How to make pit puzzle, such as the chamber of pits?
I don't think i will be able to do that, but i get the general idea. I wouldn't even think about it you can just type time+1 and get correct timing. My brain just exploded
Re: How to make pit puzzle, such as the chamber of pits?
This is the system I used to open and close pits in a sequence.
Attached to a timer with an interval of 3 seems to work pretty well.
If you wanted to avoid scripting all together, I think the best you could do is attach a timer to a pit with the activation set to toggle, that would just repeatedly open and close the door.
Code: Select all
step = 1
function cyclePits()
if step==1 then
dungeon_pit_42:deactivate()
step = 2
elseif step==2 then
dungeon_pit_43:deactivate()
step = 3
elseif step==3 then
dungeon_pit_44:deactivate()
dungeon_pit_42:activate()
step = 4
elseif step==4 then
dungeon_pit_45:deactivate()
dungeon_pit_43:activate()
step = 5
elseif step==5 then
dungeon_pit_46:deactivate()
dungeon_pit_44:activate()
step = 6
elseif step==6 then
dungeon_pit_45:activate()
step = 7
elseif step==7 then
dungeon_pit_46:activate()
step = 8
else
timer_3:deactivate()
step = 1
If you wanted to avoid scripting all together, I think the best you could do is attach a timer to a pit with the activation set to toggle, that would just repeatedly open and close the door.