Page 1 of 1
Trying to setup Daemon Eyes Puzzle
Posted: Wed Oct 10, 2012 3:51 am
by Shadix
Its the finishing piece to my first dungeon and I would really appreciate it if you help me find out how I get one to work.
I searched everywhere and turned up nothing to help me with it.
Thanks!
EDIT : It's the puzzle where you insert gems into the Daemons Eyes, I'm using red gems if there is any difference.
Re: Trying to setup Daemon Eyes Puzzle
Posted: Wed Oct 10, 2012 4:03 am
by Komag
There is a large difference! The ones in the game are all preset to take blue gems. If you want to use red ones you'll need to script it to work for you. The eye sockets are alcoves, so you should review the alcove threads linked in the Editing Superthread.
Re: Trying to setup Daemon Eyes Puzzle
Posted: Wed Oct 10, 2012 4:04 am
by Shadix
OOOH! Alrighty, thanks for the insight Komag.

Re: Trying to setup Daemon Eyes Puzzle
Posted: Wed Oct 10, 2012 5:44 am
by crisman
Hey there, here's the eye sockets for red gems!
Code: Select all
cloneObject{
name = "eye_socket_left_red",
baseObject = "eye_socket_right",
onInsertItem = function(self, item)
return item.name == "red_gem" and self:getItemCount() == 0
end,
}
cloneObject{
name = "eye_socket_right_red",
baseObject = "eye_socket_right",
onInsertItem = function(self, item)
return item.name == "red_gem" and self:getItemCount() == 0
end,
}
If you do not know, you have to put this code into object.lua in *yourDungeon*/mod_assets/scripts.
then you should be able to see them in the props!