Jump to content
  1. DOWNLOAD MODS

    Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

    LEARN MODDING

    Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

    JOIN THE ALLIANCE

    Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Tigersong

[SKY] General Stats

Recommended Posts

Having looked at the General Stats menu, I know the game keeps track of values such as number of books read and places discovered. What I'd like to know is, can those values be called in scripts? So, for instance, would it be possible to add a perk when the player discovers a certain number of locations?

Share this post


Link to post
Share on other sites

Yes, of course. :)
 
There is a condition function that can get the stats you need for your script: GetPCMiscStat.

I'm not much of a scripter but your script should look something like:

If Game.QueryStat("Locations Discovered") == xxx
    Game.GetPlayer().AddPerk(PerkToAdd)
EndIf

Add it to a Player alias in a quest. :)

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×