YooReFa Posted November 27, 2016 Share Posted November 27, 2016 Hey guys, to attain a quest stage in the specific way I was looking for, I was happy to find this form (from the creationkit wiki):Function SomeFunction() RegisterForTrackedStatsEvent("Barters", 50) ; Before we can use OnTrackedStatsEvent we must register. EndFunction Event OnTrackedStatsEvent(string asStatFilter, int aiStatValue) if (asStatFilter == "Barters") Debug.Trace("Player has bartered 50 or more times.") endif endEventI was only going to test it first, but since "Barters" doesn't seem to be a TrackedStat in Fallout4, I changed it to "Locks Picked" for the time being. Also, I changed the "Debug.Trace" -line into "X.SetStage(x)". It didn't work. Debug.Notification didn't either. Nothing works at all. So... what am I doing wrong? :confused: Link to comment Share on other sites More sharing options...
shavkacagarikia Posted November 27, 2016 Share Posted November 27, 2016 Are you calling SomeFunction() from somewhere? It wont be called automatically use Events instead Link to comment Share on other sites More sharing options...
YooReFa Posted November 28, 2016 Author Share Posted November 28, 2016 (edited) On 11/27/2016 at 12:09 PM, shavkacagarikia said: Are you calling SomeFunction() from somewhere? It wont be called automatically use Events instead Geez, thank you so much. Of course I didn't call the function at any point. Was kinda expecting the snippet to work... well, on a tracked stat event and got so fixated on the idea, I changed about anything but that. Again, thanks a bunch! Edit: Another thing: The "List Of Tracked Stats" also has things like "People", "Happiness", "Food", etc. which got me interested. Since this would be for individual settlements, how would I approach this? Edited November 28, 2016 by YooReFa Link to comment Share on other sites More sharing options...
Recommended Posts