Jump to content

Scripting help


Bragux

Recommended Posts

Hi, I need to know how you would make it so when you talk to an NPC, and choose a special dialogue option, you would get transported to another cell.

 

Help?

Link to comment
Share on other sites

First, create the dialogue tree with the NPC in question. Then create an activator which has a script containing a variable which handles the move process.

 

The result script in the dialogue changes the variable on the activator, and once out of conversation (can be forced with the goodbye flag on the dialogue) the activator will reset itself and move the player.

 

short dest

begin gamemode

if dest == 1
set dest to 0
player,movetomarker <marker>

 

Ideally, you should also have a fixed pair of doors (using an invisible model) that link the two destinations so that companions can follow, but this is not always easy or something which can work.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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