Jump to content

[LE] Sailing Away! How to change location via boat ride.


KibaFrost

Recommended Posts

Hello internet,

 

TL;DR I want to create an island and have player hire boat man to "Ship" (hehe) them away and return them.

 

Basically Im creating a DLC addon and I have tried, failed, and failed again to get the PC a way to the island. I want it to happen just like DLC2 boat ride where you just walk up to Gjhimndnd (pretend I spelled his name correctly) and be like, hey boy - here is 300 gold please away me to my destination! and he will be like, cool.

 

I have everything but the way to port (hehe) the player.

 

Thanks for any help, or just looking at this post - but most importently, thanks for being you!

 

Kiba, Frozen at heart.

Link to comment
Share on other sites

Seriously Dont know whats wrong with this;


If ( Player.GetGoldAmount() >= 300 )

Player.RemoveItem( Gold , 300 )


EndIf


(Player.moveto( Graywater ))




Starting 1 compile threads for 1 files...

Compiling "HLSA01Script01"...

A:\SteamLibrary\steamapps\common\skyrim\Data\Scripts\Source\temp\HLSA01Script01.psc(14,8): type mismatch on parameter 1 (did you forget a cast?)

No output generated for HLSA01Script01, compilation failed.


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

Failed on HLSA01Script01


Link to comment
Share on other sites

Try

if (game.GetPlayer().GetItemCount(Gold001) >= 300)

Game.GetPlayer().moveto(Graywater)

Game.GetPlayer.RemoveItem(Gold001, 300)

endIf

 

 

Dont forget properties

ObjectReference property Gold001 Auto Fill with Gold001

ObjectReference Property Graywater Fill with Xmarker you want to move to

Actor Property PlayerRef Auto instead of Game.GetPlayer() if you want

Link to comment
Share on other sites

  • Recently Browsing   0 members

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