Komag, don't you ever sleep?Komag wrote:spam cleaned up
![Wink ;)](./images/smilies/icon_e_wink.gif)
Komag, don't you ever sleep?Komag wrote:spam cleaned up
Ohhhhhhhhh.....now I see. I was looking for a statement "if i.name [is not equal to] "item name here"Decayer wrote:Add a counter and change its ID to counter_1 (or change counter_1 in the code to its ID). Set it to have an initial value of 2 and to toggle your door when it receives "any" event. Link your alcoves to the script entity with an "any" event and make sure that 'Activate Always' is unchecked.Code: Select all
function checkItems(caller) for i in caller:containedItems() do if i.name == "skull" then counter_1:decrement() return end end counter_1:increment() end