Jump to content

Reveal Map Marker with "Treasure Map"


Recommended Posts

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

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

  • Recently Browsing   0 members

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