Jump to content

Revealing Map Marker through Dialogue?


Recommended Posts

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

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

  • 1 year later...

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

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

  • 3 years later...

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

  • Recently Browsing   0 members

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