Item for teleport use

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Ulwaen
Posts: 44
Joined: Thu Feb 07, 2013 4:12 pm

Item for teleport use

Post by Ulwaen »

Hello everyone!
To finalize the dungeon I'm working on, I need an item (scroll/object, ect) that allows me to teleport the party to a predefined coordinates.
In fact, in the dungeon there is a labyrinth, wich switch of way any time we use a new lever inside it. So just after the first lever, we can't leave the labyrinth until to reach the exit (a little frustrating...)

I toke a look to this posts:
viewtopic.php?f=14&t=4883&p=52292&hilit ... oll#p52292
viewtopic.php?f=14&t=4629&hilit=learn+spell&start=10
but it's talking about spell which uses runes, instead of a simple "right clic on the item", like the magic scroll in Baldur's Gate
(Ok in Baldur the magic scroll may be use one time, no matter what skills the wizard requires, but that's not the point ^^(it may inspire brillant modder here ;) )

So, doest it exist a way to teleport the party by just right clicking on an item?
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: Item for teleport use

Post by Ryeath_Greystalk »

This is a bit over my skill level, but a suggestion might be to have the item spawn a teleporter to the party location.

So maybe clone a rock (to steal the hearthstone idea from World of Warcraft) that has the ability to call a Lua script that can spawn a teleporter at party.loc(x,y,z) and maybe add a timer to remove the portal after 1 second or something.

Of course one of the knowledgeable modders would need to step in here and determine if that would work. I'm just throwing a guess out there.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Item for teleport use

Post by Neikun »

Oh we had an item like that come up once before. Successfully made. Who made it though, I can remember. Maybe Diarmuid or P.Ferguso?

Was it Lark, maybe?
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: Item for teleport use

Post by Ryeath_Greystalk »

Looking through the scripting reference I find the party.setPosistion(x,y,facing,level) function. You could probably use that a forget what I said about spawning a portal.

Now just need to figure out how to get the item to trigger it.

I also remember seeing talk of the scroll of safe return in the frankendungeon thread. Mayby there's a clue in there somewhere.
User avatar
Sutekh
Posts: 129
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: Item for teleport use

Post by Sutekh »

Maybe something like this?

viewtopic.php?p=32303#p32303
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: Item for teleport use

Post by Xanathar »

Try defining this item:

Code: Select all

	defineObject{
		name = "tome_teleport",
		class = "Item",
		uiName = "Tome of Maps",
		model = "assets/models/items/tome.fbx",
		description = "The cover of this book says 'go where you wanna go with our kind service - dial 1-800-TOMEOMAP for details'",
		skill = "spellcraft",
		requiredLevel = 7,
		gfxIndex = 30,
		weight = 1.0,
		gameEffect = "Teleports you somewhere else meh",
		onUseItem = function(self, champion)
			party:setPosition(4,3,2,1)
			return false
		end,
	}
Not tested.
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Item for teleport use

Post by Komag »

This thread just game me the idea that it would be possible to have a fully functional magic map using a lot of scripting and a lot of gui hook stuff
- recreate the function of the automap (keep track of every explored x/y coordinates)
- graphically display it with gui render hook (when player uses map object in inventory)
- set up so clicks on opened walkways will teleport player there
Finished Dungeons - complete mods to play
User avatar
Ulwaen
Posts: 44
Joined: Thu Feb 07, 2013 4:12 pm

Re: Item for teleport use

Post by Ulwaen »

Thank you all for your speed answers ;)
Xanathar > I tried but there is an error when I open the scene in the editor :/
The Montis's technic work just fine^^, thanks Sutekh
Post Reply