Search found 6 matches

by haffhedd
Fri May 23, 2014 8:55 pm
Forum: Modding
Topic: onDie hook/counter problem
Replies: 4
Views: 5168

Re: onDie hook/counter problem

^ That did the trick. My hook now looks like this: cloneObject{ name="SnailDoor", baseObject="snail", onDie=function(monster) monsterDoor:decrement() if (monsterDoor:getValue() == 0) then monsterdeadDoor:open() else monsterdeadDoor:close() end end } For whatever reason, the game ...
by haffhedd
Fri May 23, 2014 6:54 pm
Forum: Modding
Topic: onDie hook/counter problem
Replies: 4
Views: 5168

onDie hook/counter problem

Hey there, Once again, I have hit a brick wall with my dungeon. I've searched a few similar threads about the onDie function, specifically: http://www.grimrock.net/forum/viewtopic.php?f=14&t=3239 http://www.grimrock.net/forum/viewtopic.php?f=14&t=3784#p38693 http://www.grimrock.net/forum/vie...
by haffhedd
Wed May 21, 2014 9:15 pm
Forum: Modding
Topic: Item on Alcove Puzzle Issue
Replies: 8
Views: 6199

Re: Item on Alcove Puzzle Issue

Aha!

Figured out what the issue was. I didn't replace the Alcove with the cloned asset (did I mention I'm new? :P). Neat! Works perfectly now.

Once again, thanks for the help and your patience.
by haffhedd
Wed May 21, 2014 7:56 pm
Forum: Modding
Topic: Item on Alcove Puzzle Issue
Replies: 8
Views: 6199

Re: Item on Alcove Puzzle Issue

Tried the new code.

No longer get the error but placing the dagger on the Alcove does nothing with the code above.

Am I missing a step?

Thanks,
- Haff
by haffhedd
Wed May 21, 2014 7:16 pm
Forum: Modding
Topic: Item on Alcove Puzzle Issue
Replies: 8
Views: 6199

Re: Item on Alcove Puzzle Issue

snip Thanks for the help! It's really appreciated. That said, I ran into a script error. I followed your script and replaced the assets as appropriate. Here's my code. Let me know if I did anything wrong. This was inserted into the objects.lua file in my dungeon folder. cloneObject{ name = "it...
by haffhedd
Wed May 21, 2014 6:06 pm
Forum: Modding
Topic: Item on Alcove Puzzle Issue
Replies: 8
Views: 6199

Item on Alcove Puzzle Issue

Hey Guys! Brand new to Lua and modding for Legend of Grimrock. My question is a pretty simple one but the solution may not be as straightforward. How do I create an 'item on alcove puzzle' where putting the correct item on an alcove opens a door and removing the item closes the door. I've read the m...