Search found 3 matches

by jsi7iv
Tue Jul 02, 2013 5:04 am
Forum: Modding
Topic: Detect that item is food?
Replies: 3
Views: 3383

Re: Detect that item is food?

Isaac, Thanks a bunch for the post! I was hoping to avoid the brute force approach as I was thinking about altering the puzzle to require that players place food items totaling some nutritional value. That way they can't just get rid of a couple of there "baked_maggot"'s; however, your sol...
by jsi7iv
Tue Jul 02, 2013 3:58 am
Forum: Modding
Topic: [Help] Remove torch from holder script?
Replies: 15
Views: 13023

Re: [Help] Remove torch from holder script?

Here is some code that I found solved this issue for me. It will remove the old torch holder, any torches, and then spawn a new one. It is um... ugly, but hey it works. function leftEyeRemoved() -- cycle through items at my torch holder location for k in entitiesAt(party.level, 4, 17) do -- if the i...
by jsi7iv
Mon Jul 01, 2013 10:39 pm
Forum: Modding
Topic: Detect that item is food?
Replies: 3
Views: 3383

Detect that item is food?

I've just started working on my very first LoG custom maps, and I've hit a snag. I want to create an alcove that requires food to be placed on it before the party is able to progress through my map; however, I can't find a way to see if an item has a nutritionValue! I know I can do this function ite...