Triggering map markers.

Post » Tue Jun 19, 2012 8:57 pm

Does anybody know how to trigger the location discovery system via a script?

i want to trigger a map marker without entering the marker radius, but i cant figure out what command to use in papyrus scripting to trigger the "you have discovered X" message.

using addtomap does just that, adds the marker to the map but doesent trigger the discovery of the location!

i thought it might be activate, but im getting nothing from it.

this script is applied to a trigger box by the way.

all i want it to do is trigger the normal function of the map marker as if i has walked into the radius of it!
User avatar
Prohibited
 
Posts: 3293
Joined: Tue Jun 12, 2007 6:13 am

Post » Tue Jun 19, 2012 5:15 pm

Try addtomap(true). The parameter allows fast travel, and defaults false if omitted.
User avatar
Janeth Valenzuela Castelo
 
Posts: 3411
Joined: Wed Jun 21, 2006 3:03 am

Post » Tue Jun 19, 2012 10:46 am

addtomap either true or false seems to have no effect on the system for discovering a location.

surely it has to be controlled by a script, telling it what message to play, what sound to play etc...... yet i can find nothing in the scripts or messages!

are there any particular scripts that are off limits to modders? ive got everything from the vanilla skyrim BSA files and i cant find it :dry:
User avatar
Marquis deVille
 
Posts: 3409
Joined: Thu Jul 26, 2007 8:24 am

Post » Tue Jun 19, 2012 6:42 pm

http://skyrim.nexusmods.com/downloads/file.php?id=9790 makes it a lot easier to find where the functions are used.

AddToMap appears in 162 files apparently. I looked at a couple but it will probably take some time to find one with the true param by hand.

(Now that the scripts are external, then it's no use using the CK to find the functions the same way it works in GECK.)

Do these in-game ones work?
Spoiler


$ grep -i addtomap\(true\) *.psc
TIF__000D90CC.psc:;MapMarker.AddToMap(true)
TIF__000D90ED.psc:MapMarker.AddToMap(true)
TIF__000D9169.psc:MapMarker.AddToMap(true)
TIF__000D9174.psc:MapMarker.AddToMap(true)
TIF__000D91CF.psc:MapMarker.AddToMap(true)
TIF__000DA63E.psc:MapMarker.AddToMap(true)
TIF__000DA647.psc:;MapMarker3.AddToMap(true)
User avatar
Tyler F
 
Posts: 3420
Joined: Mon Aug 27, 2007 8:07 pm

Post » Tue Jun 19, 2012 11:15 am

using AddToMap does work in this script, but it only adds the map marker to the map, it doesnt trigger the UI message for discovering a new location.

chossing true or false just changes wether the location is already discovered when it is added to the map, allowing fast travel immesdiately to that location.
choosing false means you have to discover the location before you can fast travel there (the black map marker is added)

im just looking for the command that would allow a map marker to perform its normal behaviour when the player triggers an activator in a different location (with the marker as a linked Ref in the trigger box, of course.)
User avatar
Miss Hayley
 
Posts: 3414
Joined: Tue Jun 27, 2006 2:31 am

Post » Tue Jun 19, 2012 10:21 pm

i still think im meant to be using activate, but i have no idea how to make it compile.

GetLinkedRef().Activate(****) i have no idea what goes in these brackets when using a map marker which is a linked ref!!
User avatar
Bad News Rogers
 
Posts: 3356
Joined: Fri Sep 08, 2006 8:37 am


Return to V - Skyrim