Jump to content

Portal Scripting Help


Recommended Posts

Ok, so I've made a help room that contains chests with cool stuff and at the top of the stairs in said room is a door that leads to a house in the same cell. There is a solo trap door in the help room. This is the only way out. So what i need help with is: I want to make a extremely small portal thing and stick it on the exterior doorframe of every default in-game house. (Don't worry, I've taken into account the ArmoryLab Mod that does the same thing and made sure no incompatibility would occur.) Now what i would like to happen is when you activate the portal from within the help room a menu will pop up and ask you which city you would like to be teleported to. How would i script this to happen.

 

Thanks-

Link to comment
Share on other sites

I cannot tell how to make script for that, but it's like this:

- Place static markers outside of the portal, as well as inside. They will mark where you enter from or return to. (Do not forget to give them unique reference ID)

- Use player.moveto to teleport player when he/she activate the portal or choose destination from the menu.

Link to comment
Share on other sites

Thats something I've tried. I used the XMarker and scripted it all, but when you exit the room you go to that city and above the XMarker however you are a good 5000 feet above it. Dont know whats wrong I opened the ArmoryLab.esp file and copied the script from it and pasted it on the exit portal. Its promising but has some issues needs a little bit of work.

Heres the portal script.

 

  Reveal hidden contents

 

Link to comment
Share on other sites

Ok this is my script for the teleportation spell:

 

  Reveal hidden contents

 

However on line 5 which is the MoveTo Line i get this error: Syntax error Reference not allowed in this context.

 

Whats wrong with it? And how do i fix it? Sorry I got it didn't need the HelpRoom. Prefix as its a persistent Reference

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...