Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Location discovered check?


mjenmae
 Share

Recommended Posts

I'm looking for a scripting solution that checks whether or not the player has discovered a named location. I've Googled, and grepped the existing skyrim scripts but haven't been able to find anything I can use. It feels like it ought to be relatively simple, but I haven't managed to figure it out!

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

You could check the discovery with CanFastTravelToMarker. If the player hasn't discovered it yet, then it would return False. Or you could probably just check whether or not the map marker of the location is enabled, since I believe "discovery" is just a matter of the marker becoming enabled when the player is close enough. I'm not sure how that happens, but you might look to see if map markers have some kind of script attached to them that handles this, which might give you some ideas.

 

Edit: There is also IsMapMarkerVisible that might help. The marker may count as visible, though, if some book or map or conversation places it on your map, even if you haven't been close enough to enable it for fast travel.

Edited by BrettM
Link to comment
Share on other sites

Thank you for your suggestion. I took a look through the existing scripts and found these snippets..

 

ReferenceAlias Property MapMarker Auto

If (MapMarker.GetRef().CanFastTravelToMarker() == True)

 

I haven't tried implimenting it yet, but this is definitely a step in the right direction!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...