Jump to content

[LE] Making the player travel with a dialogue


MathLeBeau

Recommended Posts

Hi, I am tring to make a dialogue, that, when the player speak with Captain Aebond, the player will have the options to sail for free to Frozen Island or from Frozen Island to Tamriel. I know the vanilla travel to Solstime use quest DLC2DialogueRavenRock and the Script DLC2DialogueRRQuestScript .

 

As you can see in the images, the dialogues works, but not the travel. http://imgur.com/a/GgjU9

 

If someone can help me to make the travel work, it will be appreciate!

 

Here is the Script so far:

 

Scriptname ST_BormirShipDialogueScript extends Quest

 

ObjectReference Property ST_FrozenIslandLandingMarker Auto

 

ObjectReference Property ST_TamrielLandingMarker Auto

 

WorldSpace Property ST_FrozenIslandWorld Auto

 

GlobalVariable Property ST_FreeSailing Auto

Edited by BeauMath
Link to comment
Share on other sites

OK, so the sailing is always free? Then you only need a one line script fragment in your dialog:

Game.getPlayer().moveTo(<targetReference>)

As target reference us an X-Marker heading you place where the player shall be teleported to. Then link this reference in the properties or an quest alias. Do the same for traveling back (with a different target of course).

Link to comment
Share on other sites

Ok so first, if you haven't already, extract the scripts archive in you Skyrim directory to Data/Scripts/src. Then delete the script fragment you have in your two dialogs (advanced tab). If you don't edit a vanilla quest, you can also delete your quest script.

 

So now some basic knowledge about quest scripts and fragments: Each response from an Actor can have a begin and an end papyrus fragment. The begin fragment is executed when the Actor starts speaking, the other after he finished. Dialog fragments are stored in a seperat file for each. You can also add papyrus fragments to a quest stage. These papyrus fragments are saved in the quest script. They are generated/updated when closing the quest window. You should never edit vanilla quests if you don't have to!

 

So now add a simple ";" to the end fragment of your Actor response and press compile. Close the window and open it again. The file is now generated. Now add a property of type ObjectReference and replace the ";" with the line i mentioned above. For <targetReference> use the name of the property you just created. At last fill the property with the target X Marker you want to teleport the player to.

 

This should already work if I didn't forget anything. I don't know if followers will also be teleported, but you could extend the script if not.

Link to comment
Share on other sites

ok, for that : game.getPlayer().moveTo(ST_TamrielLandingMarkerPlayer)

 

I got these errors :

 

Starting 1 compile threads for 1 files...

Compiling "ST___TIF__03021322"...

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\ST___TIF__03021322.psc(16,4): no viable alternative at input '.'

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\ST___TIF__03021322.psc(16,45): mismatched input '\\r\\n' expecting STATE

No output generated for ST___TIF__03021322, compilation failed.

 

Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on ST___TIF__03021322

Link to comment
Share on other sites

  • Recently Browsing   0 members

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