Page 2 of 2

Re: [Request] A new hook for alcove "onRemoveItem"

Posted: Sun Oct 07, 2012 12:53 pm
by Lilltiger
remember that the alcove only activates on the first item put in, so if you place the gem as the second item it wont activate and do this stuff.

Re: [Request] A new hook for alcove "onRemoveItem"

Posted: Sun Oct 07, 2012 1:25 pm
by Komag
it will if you turn on activate always

Re: [Request] A new hook for alcove "onRemoveItem"

Posted: Sun Oct 07, 2012 4:37 pm
by Darklynx
Lilltiger wrote:remember that the alcove only activates on the first item put in, so if you place the gem as the second item it wont activate and do this stuff.
The alcove has this hook from the original asset of LoG:

Code: Select all

	onInsertItem = function(self, item)
		return item.name == "green_gem" and self:getItemCount() == 0
	end
In this way I can only put one gem in the alcove, and accepts only green gems.