Jump to content

How can I check the number of murders committed by the player?


Recommended Posts

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 tempRef

begin 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
endif
end


As 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

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

  • Recently Browsing   0 members

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