primem0ver Posted April 7, 2022 Share Posted April 7, 2022 Hello,I am wanting to put a "treasure map" (not really... but a map of locations) in a chest in my mod. I know how to do everything except use the parts of a "treasure map". I have found several examples in the game and they all have note with a treasure map script that uses a keyword and a treasure chest as script properties. I assume the "chest" is the location where the map is found. How do I add keywords to map markers so that they can be used to make the map reveal the location of the map markers? Link to comment Share on other sites More sharing options...
dylbill Posted April 7, 2022 Share Posted April 7, 2022 Hey, you can use the AddToMap function to reveal your map marker directly. Here's how I would do it: Scriptname TreasureMapScript extends ObjectReference ;script goes on your treasure map. ObjectReference Property MyMapMarker Auto Auto State Waiting Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) If akNewContainer == Game.GetPlayer() ;the player picked up this object. GoToState("Done") ;prevent this event from firing again. MyMapMarker.AddToMap(false) ;Add MyMapMarker to map, but can't fast travel to it. Endif EndEvent EndState State Done EndState Link to comment Share on other sites More sharing options...
primem0ver Posted April 8, 2022 Author Share Posted April 8, 2022 Thanks for the help Link to comment Share on other sites More sharing options...
dylbill Posted April 8, 2022 Share Posted April 8, 2022 No problem Link to comment Share on other sites More sharing options...
Recommended Posts