[Request] A new hook for alcove "onRemoveItem"

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Lilltiger
Posts: 95
Joined: Sun Sep 16, 2012 1:12 am

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

Post 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.
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

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

Post by Komag »

it will if you turn on activate always
Finished Dungeons - complete mods to play
Darklynx
Posts: 9
Joined: Thu Apr 12, 2012 4:06 pm
Location: Italy, Rome

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

Post 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.
Post Reply