DaylenTheMaleficar Posted June 13, 2014 Posted June 13, 2014 As a personal project to learn Papyrus, I've been re-writing the Third Era Attributes mod from scratch and have gotten everything from the level up messages to the MCM working, but I still can't seem to get the skill tracking to work. I've made a quest that triggers on Skill Increase, attached the script and all that jazz, but nothing happens in game and I don't know why. Is there something wrong with this code? Or is The quest somehow breaking? Scriptname ssAttribSkill extends Quest GlobalVariable property ssStrInc auto GlobalVariable property ssEndInc auto GlobalVariable property ssIntInc auto GlobalVariable property ssWilInc auto GlobalVariable property ssAgiInc auto GlobalVariable property ssSpeInc auto GlobalVariable property ssPerInc auto Event OnStoryIncreaseSkill(string asSkill) if asSkill == "OneHanded" || asSkill == "TwoHanded" ssStrInc.SetValue(ssStrInc.GetValueInt() + 1) elseif asSkill == "Block" || asSkill == "HeavyArmor" || asSkill == "Smithing" ssEndInc.SetValue(ssEndInc.GetValueInt() + 1) elseif asSkill == "Alchemy" || asSkill == "Enchanting" || asSkill == "Conjuration" ssIntInc.SetValue(ssIntInc.GetValueInt() + 1) elseif asSkill == "Alteration" || asSkill == "Destruction" || asSkill == "Restoration" ssWilInc.SetValue(ssWilInc.GetValueInt() + 1) elseif asSkill == "Archery" || asSkill == "Lockpicking" || asSkill == "Pickpocket" || asSkill == "Sneak" ssAgiInc.SetValue(ssAgiInc.GetValueInt() + 1) elseif asSkill == "LightArmor" ssSpeInc.SetValue(ssSpeInc.GetValueInt() + 1) elseif asSkill == "Speechcraft" || asSkill == "Illusion" ssPerInc.SetValue(ssPerInc.GetValueInt() + 1) endif Debug.Notification("Skill Tracked.") self.stop() endevent
lofgren Posted June 13, 2014 Posted June 13, 2014 (edited) Have you added the quest to the story manager? What settings are you using for the story node? Edited June 13, 2014 by lofgren
DaylenTheMaleficar Posted June 13, 2014 Author Posted June 13, 2014 Have you added the quest to the story manager? What settings are you using for the story node? Ah! That's what I was forgetting to do. Thank you! Works now.
GrimThor3 Posted April 17, 2017 Posted April 17, 2017 Hello from three years in the future. How do you add the quest to story manager? I've been reading the creation kit wiki and I'm still confused
Recommended Posts