Script for teleporting to you home

Post » Fri Jan 30, 2015 9:16 pm

I wanted to make an object that opened a menu of a list of homes the Player has

Now I can make the menu, and I can make the teleport script but I am not sure how to

get the list of homes a player has to populate the menu when the object is clicked on.

Anyone have a snip-it I can look at

Thank

User avatar
CRuzIta LUVz grlz
 
Posts: 3388
Joined: Fri Aug 24, 2007 11:44 am

Post » Fri Jan 30, 2015 6:22 am

You can populate the list through the Message form itself--when you make a new Message, there's a slot at the bottom for the 'Buttons'; just put each Town's name in there, and then use conditions to determine when they come up (easiest way would be to see if the PC has the required key, but if they drop it or lose it... A better way would be to look at the House Purchase Quest, and see how it flags them as owned).

I'd do it something like...

Event OnActivate(ObjectReference Target)  Button = MyMessage.Show()  If ( Button == 0 )     ;Teleport to First House   ElseIf ( Button == 1 )     ; Teleport to Second House     ; And so on...   EndIfEndEvent

MyMessage would be a self-contained Form with all six options (five Homes + Cancel) and the initial "Where do you want to go?" text.

User avatar
Rachel Eloise Getoutofmyface
 
Posts: 3445
Joined: Mon Oct 09, 2006 5:20 pm


Return to V - Skyrim