zazz825 Posted July 18, 2020 Share Posted July 18, 2020 I have created a spell that I want to be accessible only by those who have murdered 10 or more people. So far, I have this code: ref tempRefbegin OnEquip player if getPCInfamy < 10 MessageBox "You cannot fathom the evil within this text. Your naivete of the dark secrets of this world forbids you from gaining this power." set tempRef to GetContainer tempRef.UnEquipItem ForceTomeC else tempRef.addspell ForceSpellTomeC ; Essence Crush endifendAs you can see, the script checks your Infamy stat, and if it's less than 10, you don't get the spell. This works great, but it occured to me that you could also get 10 infamy by stealing a bunch of stuff, so I thought I'd try to refine it more by using the Murders stat. Trouble is, I don't know how to measure that variable since I don't know what it's called... Is there an index of different variables somewhere? How can I check the number of murders committed? Thanks, zazz825 Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted July 18, 2020 Share Posted July 18, 2020 Your murders are listed in the statistics. Link to comment Share on other sites More sharing options...
zazz825 Posted July 18, 2020 Author Share Posted July 18, 2020 Your murders are listed in the statistics.Yeah, I know how to check it in game... that's not the issue here. How does the game measure murders? what variable is changed when the player murders an NPC? I need to reference that variable so the script can check it in game Link to comment Share on other sites More sharing options...
qwertyasdfgh Posted July 19, 2020 Share Posted July 19, 2020 GetPCMiscStat 32 https://cs.elderscrolls.com/index.php?title=GetPCMiscStat Link to comment Share on other sites More sharing options...
zazz825 Posted July 19, 2020 Author Share Posted July 19, 2020 GetPCMiscStat 32 https://cs.elderscrolls.com/index.php?title=GetPCMiscStatthis is perfect. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts