Jump to content

[LE] Getting an NPC to move to marker and setting objective to location


Recommended Posts

Hi all, so I'm a bit of a scripting and quest making noob and I'm hoping y'all can help me.

 

For a quest I'm making I want my NPC to move to an xMarker outside a cave I made, after the player accepts the quest and leaves the cell (Solitude).

 

Here's my first problem, the quest marker doesn't go to my cave. I set both a reference alias to the Cave marker and a location alias because I didn't know which one to use, and neither seem to do it.

 

Second, my NPC won't move to the marker. I got her to immediately disappear with just a MoveTo command on the quest stage, but then she didn't show up to the marker. I tried this code to try and get her to move not immediately, but that failed in all aspects (though it did compile).

Scriptname COTHACaraMoveOutside extends ReferenceAlias  

Quest Property aaCurseOfTheHoundAmulet  Auto  


ObjectReference Property XMCara  Auto  


Actor Property Cara  Auto  




Event OnCellDetach()
if aaCurseOfTheHoundAmulet.GetStage()==20
  GoToState("Done")
(GetReference() as Actor).MoveTo(XMCara)
EndIf
endEvent
Here's my esp if anyone wants to look at it

 

https://www.dropbox.com/s/n5dwwzq00xebv19/cotha%20and%20scripts.zip?dl=0

Edited by ANiceOakTree
Link to comment
Share on other sites

hey all... so my issues weren't really with the location alias, it took me two days to figure out but it was a dialogue bug that wasn't making my objectives pop up. I needed to generate a seq file and it's all finally working

 

and to make her move I'm using an xmarker and a travel package

Link to comment
Share on other sites

  • Recently Browsing   0 members

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