MildPsychedelic Posted February 16, 2017 Share Posted February 16, 2017 Hi there. So I'm making a small quest through the CK and testing it in-game. I basically want to do what some of the vanilla quests do where the NPC will reveal a relevant Map Marker to your world map if you haven't already got it (eg when an NPC says "Here, I'll mark it on your map").According to the functions for the script, I just go into the End Papyrus Fragment section on the relevant piece of dialogue, and enter: KarthwastenMapMarkerREF.AddToMap()But whenever I tried to compile it, the return is failed. So I tried creating a custom script and going into the properties to make a ObjectReference type, then entered the same code. However, while it did return as 'successful' after compiling, it doesn't function in-game like it's supposed to. I don't get the Map Marker for Karthwasten added to my map.Would appreciate if anyone can point to where I'm going wrong here, thanks. Link to comment Share on other sites More sharing options...
PeterMartyr Posted February 16, 2017 Share Posted February 16, 2017 Fully open the frag source code that you copied, you will see it has a property value. so replace KarthwastenMapMarkerREF.AddToMap() with ; Close Topic Info (So it compiles and saves) & open it again Open the Source in the built in CK Editor & add at the bottom the Property Value of ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 1 Scriptname TIF__0205B383 Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE ; ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment ObjectReference Property KarthwastenMapMarkerREF Auto & Save with a (Ctrl + S) to compile, close the Editor (Alt + F4). Then replace ; with KarthwastenMapMarkerREF.AddToMap() Lastly open Property Dialogue Box & fill your property (Auto Fill All) Close for last time to Compile & Save. Don't blame me for all the baby steps it just how it works. When adding a property to any frag (TIF PF QF) use ; semi-colon comment marker to kick started it. once you've done it a couple of times you soon get the general idea, just kept playing with it, when copying any fragment, open the source code just in case. For the moment anyway. Link to comment Share on other sites More sharing options...
PeterMartyr Posted February 16, 2017 Share Posted February 16, 2017 Also experiment with adding a Properties using the Property Dialogue Box (copy & paste Editor ID for Auto Fill) or give a unique name if required. Cheers Link to comment Share on other sites More sharing options...
MildPsychedelic Posted February 17, 2017 Author Share Posted February 17, 2017 Peter you're an absolute legend, it worked perfectly. Thanks a lot! Link to comment Share on other sites More sharing options...
sdjknights Posted April 29, 2018 Share Posted April 29, 2018 I've been trying to get this sorted for a week, and the advice given above has really helped me out, but it's still not working for me. It's finally compiling (both the "main" script and the end fragment), which is a huge step up for me. It seemed the only step I was missing was using the semi-colon first and closing the editor. But even though it's compiling now, I'm not actually getting the map marker. The difference I've noticed is that auto-fill isn't doing anything for me, though I can select the map marker manually. Any extra tips would be greatly appreciated. Link to comment Share on other sites More sharing options...
Deleted3897072User Posted April 29, 2018 Share Posted April 29, 2018 Auto-fill relies on the property being named identically to the thing you want it to point to. So, for example, if you had a Faction Property called PotentialHireling and you asked it to auto-fill, it would assign the PotentialHireling faction (000BC9A) to it. If you don't happen to have used matching names, you just have to fill it manually. Link to comment Share on other sites More sharing options...
sdjknights Posted April 29, 2018 Share Posted April 29, 2018 Ha! Found the issue! I clicked on the entry next to the map marker in the reference list. Cheers for your help guys! Link to comment Share on other sites More sharing options...
Dahveed Posted December 20, 2021 Share Posted December 20, 2021 Super old mega-necro here but if anyone can help (PM me preferably) I can't get this to complile. It keeps telling me that AddToMap isn't a function (?????) I've had errors before, usually brain farts. But why is it telling me that a function listed officially on the CK tutorial guide isn't even a function? For the love of Talos the CK is so unbelievably retarded sometimes, there seems to be no logic to it sometimes for the most simple things. Link to comment Share on other sites More sharing options...
Recommended Posts