Tigersong

[SKY] General Stats

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?

0

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. :)

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