[Req] Teleporting Item

Post » Wed May 02, 2012 7:06 pm

I'm building an underground Mournhold-style mansion for personal use, and I want to be able to access it any time, anywhere, through use of some kind of teleporting item. I'm not very good at scripting, and figured that I could probably have the item available for me sooner by requesting someone put the appropriate script together for me, rather than take the next few weeks learning how to do it myself. There's a number of teleporting mods that provide scripts, but I'd rather not go butchering them. Especially since my needs are minimal.

I just need to be able to teleport straight into the mansion, through use of the amulet or ring that I attach the script to. Getting back out is no problem, since I already plan to set up a series of portals that can take me to a number of locations. And there's always the ever-handy Recall spell. Much simpler than scripting the amulet/ring to teleport me back to where I was, I think.

Anyone who can do this, I would appreciate you taking up the task. Keep in mind this is for a personal use mod, so your work will only ever be enjoyed by me.
User avatar
kristy dunn
 
Posts: 3410
Joined: Thu Mar 01, 2007 2:08 am

Post » Wed May 02, 2012 10:18 pm

There is such an item in Shannons hell house x mod, i suggest you adapt that as all you need do is change the destination from hell house to your mansion
User avatar
Lisha Boo
 
Posts: 3378
Joined: Fri Aug 18, 2006 2:56 pm

Post » Wed May 02, 2012 9:29 pm

I do believe there are several such scripts present in Morrowind already. One example is amuletDaedraScript.
User avatar
El Goose
 
Posts: 3368
Joined: Sun Dec 02, 2007 12:02 am

Post » Wed May 02, 2012 4:34 pm

This ois the script I use for the player house in Keening:

[script]Begin _KN_amuletScript01

short button
short messageOn
short reset
short OnPcEquip

;if ( MenuMode == 1 )
; Return
;endif

if ( OnPCEquip == 0 )
set reset to 0
endif

if ( reset == 1 )
return
endif

if ( OnPCEquip == 1 )
if ( reset == 0 )
Set OnPCEquip to 0
MessageBox "Would you like to return to Nova Manor?" "Yes" "No"
set messageOn to 1
endif
endif
endif

if ( messageOn == 1)

set button to GetButtonPressed

if ( button >= 0 )
set messageOn to 0
endif

if ( button == 0 )
Player->PositionCell, -534, -570, 752, 0, "Keening, Nova Manor"
set reset to 1

elseif ( button == 1 )
set reset to 1
return
endif
endif


End
[/script]

And, you can place an object and check its coordinates to pastwe into the script. I attached this to a ring. I was adapted from the Fort Moonmoth House Mod.
User avatar
elliot mudd
 
Posts: 3426
Joined: Wed May 09, 2007 8:56 am

Post » Wed May 02, 2012 9:04 pm

A (untested) version not equipping the clothing/armor item
begin teleportScriptshort OnPCEquipshort PCSkipEquipshort buttonshort stateif ( OnPCEquip )	set PCSkipEquip to 1  ; do not equip	set OnPCEquip to 0	; avoid possible doubling bug when associating item with a shortcut key, adding/removing standard engine object	Player->AddItem "Misc_SoulGem_Petty" 1	Player->RemoveItem "Misc_SoulGem_Petty" 1	set state to 1	MessageBox "Would you like to return to Nova Manor?" "Yes" "No"	returnendifif ( state )	set button to GetButtonPressed	if ( button < 0 )		return	endif	set state to 0	if ( button == 0 )		; PlaySound "spellmake success"		Player->PositionCell -534 -570 752 0 "Keening, Nova Manor"	endifendifend
User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Wed May 02, 2012 11:38 am

Thanks again, abot! I've plugged that in and it's perfect - better than what I was using.
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Wed May 02, 2012 5:11 pm

Thanks to everyone who provided advice. Decided to go with abot's script, though I haven't tested it yet. Been busy.
User avatar
Allison Sizemore
 
Posts: 3492
Joined: Wed Jul 19, 2006 6:09 am


Return to III - Morrowind