Hi,
This my first time giving modding a go. I have a script for the activation of a teleport when an item is put in an alcove. I used a similar script elsewhere to open a gate, but some isn't working for this. Any help? Thanks.
Here's the Script
function checkItems(alcove)
if alcove.contents("blue_gem")
then teleporter_3:activate()
else
teleporter_3:deactivate()
end
end
Script Struggle
Re: Script Struggle
Try this:
Connect your alcove with this script on event "any".
Code: Select all
for i in nameofyouralcove:containedItems() do
if i.name == "blue_gem" then
teleporter_3:activate()
else
teleporter_3:deactivate()
end
end
end
Re: Script Struggle
Thanks maneus. I tried your script but it says "attempt to call method 'containedItems' (a nil value). [Note: this is for LOG 2].
Re: Script Struggle
If your future questions are for Grimrock 2 then please post your questions in the modding section of the forum for Grimrock 2. 
