Search found 84 matches

by Filipsan
Fri Oct 12, 2012 10:10 am
Forum: Modding
Topic: How to check which item is in alcove?
Replies: 75
Views: 39651

Re: How to check which item is in alcove?

Please, use Code formatting, thanks :) Again - link every altar with Lua entity (function CheckAltars) Lua should have this code (not tested, i'm not sure about the multiple-row if syntax...) function altarHasItem(altar,item_name) print("checking for "..item_name) for i in altar:containedItems() do ...
by Filipsan
Fri Oct 12, 2012 9:41 am
Forum: Modding
Topic: feedback and suggestions...
Replies: 10
Views: 3340

Re: feedback and suggestions...

I'd love to test it for you :)
by Filipsan
Fri Oct 12, 2012 8:33 am
Forum: Modding
Topic: How to check which item is in alcove?
Replies: 75
Views: 39651

Re: How to check which item is in alcove?

Try this: function altarHasItem(altar,item_name) for i in altar:containedItems() do if i.name == item_name then return true end end return false end function areitemsthere() if altarHasItem(altar_1, "chitin_boots") and altarHasItem(altar_2, "chitin_greaves") and altarHasItem (altar_3, "chitin_mail")...
by Filipsan
Thu Oct 11, 2012 8:27 pm
Forum: Modding
Topic: [MOD] Shadows of Grim Moon
Replies: 137
Views: 100807

Re: [MOD] Shadows of Grim Moon

IMHO so far best custom dungeon i have played. Good work! :)

EDIT: On the other hand, i wasn't able to finish it. I Could not get over pillar of penitence.
I also didn't get the puzzle in the skeleton area (Wrong is right + The other way)
Also, more respawn crystals would be nice :D
by Filipsan
Wed Oct 10, 2012 5:46 pm
Forum: Modding
Topic: Altar and counter
Replies: 17
Views: 4976

Re: Altar and counter

by Filipsan
Wed Oct 10, 2012 2:58 pm
Forum: Modding
Topic: Altar and counter
Replies: 17
Views: 4976

Re: Altar and counter

Try somethingl like this (not tested) function gemcheckfunc() checkAltar(waltar1) checkAltar(waltar2) checkAltar(waltar3) if gemcounter:getValue() == 3 then gemdoor:open() else gemdoor:close() end end function checkAltar(altar) for i in altar:containedItems() do if i.name == "green_gem" then gemcoun...
by Filipsan
Sat Oct 06, 2012 2:52 pm
Forum: Modding
Topic: Help Req! - 3 gems(r/g/b)-3 alcoves-2 doors(diff combos)
Replies: 7
Views: 2943

Re: Help Req! - 3 gems(r/g/b)-3 alcoves-2 doors(diff combos)

Try this :) function testAlcove() local red_gem_in = hasItem(alcoveRed,"red_gem") local green_gem_in = hasItem(alcoveGreen,"green_gem") --yellow_gem_in = hasItem(alcoveYellow,"yellow_gem") local blue_gem_in = hasItem(alcoveBlue,"blue_gem") print("red: " .. tostring(red_gem_in)) print("green: " .. to...
by Filipsan
Thu Oct 04, 2012 11:09 pm
Forum: Modding
Topic: Some Scripting Questions
Replies: 13
Views: 5299

Re: Some Scripting Questions

I would like to create an Replicator: 2 alcoves, 1 lever and one lua entity when the lever is pulled, i can check items in alcoves when both alcoves contain just one item, and one of them is for example rock (or anything else), a want to replace this rock with the item in the other alcove. My 2(3) q...
by Filipsan
Thu Oct 04, 2012 9:17 pm
Forum: Modding
Topic: [MOD] Eye of the Beholder: Waterdeep Sewers
Replies: 324
Views: 325939

Re: EOB: Waterdeep Sewers

I love the intro! :)