Duk3nat0r Posted October 10, 2016 Share Posted October 10, 2016 Hi, hope someone can help with a little bit of scripting. I'm trying to check if a map marker has been discovered to enable a teleporter. This is the script I wrote for it: ObjectReference Property MapMarker Auto ObjectReference Property Teleporter Auto Int Property DoOnce Auto GlobalVariable Property tdNPDisplayMAX Auto Event OnCellAttach() if DoOnce == 0 if MapMarker.IsEnabled() == true if Teleporter.IsEnabled() == false Teleporter.enable() DoOnce = 1 tdNPDisplayMax.SetValue(tdNPDisplayMax.GetValue() + 1) endIf endif endif endEventthen I realized it's not gonna work. The map marker is enabled to begin with, but how do I script to check if it's been discovered or not? Link to comment Share on other sites More sharing options...
Duk3nat0r Posted October 13, 2016 Author Share Posted October 13, 2016 (edited) I need to bump this, as I'm still looking for a solution. I also tried: if MapMarker.IsMapMarkerVisible() == true but, it doens't realy work, it enables the teleporter even though the mapmarker hasn't been discovered yet. Edited October 13, 2016 by Th3 Duk3 Link to comment Share on other sites More sharing options...
csbx Posted October 13, 2016 Share Posted October 13, 2016 http://geck.bethsoft.com/index.php?title=GetMapMarkerVisible Check to see if something similar is set up for Skyrim. Link to comment Share on other sites More sharing options...
Duk3nat0r Posted October 13, 2016 Author Share Posted October 13, 2016 (edited) Ah tnx csbx for the link, looks like I've been using wrong. Gonna try it now. Edit: Nope, seems "GetMapMarkerVisible is not a valid function or does not exist" Edited October 13, 2016 by Th3 Duk3 Link to comment Share on other sites More sharing options...
Duk3nat0r Posted October 13, 2016 Author Share Posted October 13, 2016 Ok, I finally got it to work, so if anyone is looking for something similar, here is the code: ObjectReference Property MapMarker Auto ObjectReference Property Teleporter Auto Int Property DoOnce Auto GlobalVariable Property DisplayMAX Auto Event OnCellAttach() if DoOnce == 0 if MapMarker.CanFastTravelToMarker() == true if Teleporter.IsEnabled() == false Teleporter.Enable() DoOnce = 1 DisplayMax.SetValue(DisplayMax.GetValue() + 1) endif endif endif endEvent Link to comment Share on other sites More sharing options...
FrankFamily Posted October 14, 2016 Share Posted October 14, 2016 For the future, you can find the vailable functions here: http://www.creationkit.com/index.php?title=Category:Papyrus Link to comment Share on other sites More sharing options...
Recommended Posts