Page 1 of 1

Teleport activation with item (EOB like)

Posted: Sat Nov 24, 2012 10:25 am
by AmiDARK
Hi,

Does someone already had the idea to create a teleporter system like in Eye of the Beholder when you're in the dwarfs levels :
Image

Activation of the teleporter when you use a specific item on the wall object.

Is this feature possible with Grimrock ?

Re: Teleport activation with item (EOB like)

Posted: Sat Nov 24, 2012 11:21 am
by Asteroth
Aaah, those doors are the symbol of the series to me. For some reason the stone thingies would actually pass to game two. Some of them at least, whereas most plot items disapeared. Anyways, I think it could be done.It might be possible via an invisible alcove (Daemon head eye socket style) but alter the position and change code to say. Something like:

Code: Select all

defineObject{
	name = "eob_teleport_door_socket_ankh",
	class = "Alcove",
	anchorPos = vec(0.21, 1.58, -0.45),
	targetPos = vec(0.2, 1.65, -0.45),
	targetSize = vec(0.1, 0.1, 0.1),
	placement = "wall",
	onInsertItem = function(self, item)
		return item.name == "door_ankh" and self:getItemCount() == 0
	end,
	editorIcon = 92,
}
Some parts like anchorPos might need changing.

Re: Teleport activation with item (EOB like)

Posted: Sat Nov 24, 2012 11:24 am
by Xanathar
Hi, I think there are multiple ways to do it
  • You can use a set of invisible alcoves (ask the alcove experts here for more help, I'm kind of an alcove noob), so to detect the item click and activate the teleporter --> Edit: See Asteroth solution above :)
  • You can use an invisible button, and then in script do something different depending on the mouse item (only difference, you click on the same place, not on the empty tile of the gate as in eob)
  • You can use a set of locks on the same wall. After use, respawn the stone item in hand and destroy/spawn the used lock again (so that it can be reused).
If you aren't striving for exactly the same effect as EOB, but only funcionally similar then you have additional options. For example I use altars and items put over them for teleportation. (Simpler and more in tune with my dungeon for example).

Re: Teleport activation with item (EOB like)

Posted: Sat Nov 24, 2012 12:00 pm
by Komag
Yeah, more than one way to skin a feline. I think the sockets(alcoves) option would be pretty easy

Re: Teleport activation with item (EOB like)

Posted: Sat Nov 24, 2012 12:14 pm
by AmiDARK
Thank you for your answers ... will try to do that.