I've been working on this problem all day, and the resources and Youtube tutorials Komag put together have been an incredible help, but it's time to admit my shortcomings at programming and organizing my thoughts appropriately for it.
I have a door with an alcove on each side of it, and the goal is to get the player to place a skull in each alcove and activate the door. This is the basic code I've managed to put together:
Code: Select all
function puzzleR101()
local itemName = "skull"
local alcoveID = R1Alcove1
for i in alcoveID:containedItems() do
if i.name == itemName then
playSound("lever")
else
end
end
end
Thank you again. If this is too complicated to pull off with the resources available, so be it.