Everything in this thread is to be considered a spoiler for my CFD submission.
SKIP TO PAGE 7 OR BEYOND to avoid spoilers and leave feedback!
I'm making a thread to ask for help getting my submission together and playtested. I'm a total noob at scripting, but I've used RPGMaker software to make games before and way back when I used to hand type BASIC code from magazines to "make" games for my C64. So I got a bit of background with what I'm doing. I hope I can learn a lot without causing too many grey hairs, but I think it's appropriate to set some expectations so anyone who knows themselves well enough to know they don't have the temperment to deal with teaching a noob can save themselves some headaches.
If you got through that and you think you'd like to help, then let's get going!
Major spoilers start now and I won't make any further mention of this. Past this point, I'm laying it all out there.
The main puzzle basically revolves around putting the correct three items into the correct three of six alcoves. This then opens the exit door. The tricky bit is there is a second "correct" solution that will open the way to a fourth object that will be placed into a mouth socket, which will then open a door to a nice prize to take with you. And the final twist is that all incorrect solutions will damage the party with one of the elemental spells or spawn a monster or something like that.
So, that's what I need help with.
I've already got this script:
Code: Select all
function checkAlcoveForItems()
local itemFound = false
if puzzle_pit_alcove:getItemCount() == 0 then
itemFound = false
else
for i in puzzle_pit_alcove:containedItems() do
if i.name == "golden_chalice" then
itemFound = true
break
else
spawn("poison_cloud", party.level, party.x, party.y, 0)
itemFound = false
break
end
end
end
if itemFound then
playSound("level_up")
puzzle_pit:deactivate()
else
puzzle_pit:activate()
end
end
That's it for now. I have a pretty short deadline so hopefully the next couple of days can be productive. Thanks!