Can't find this command anywhere.

Post » Fri Dec 20, 2013 2:20 am

What is the command to read the skill level from a perk tree?

Trying to script something that changes based on that level but the only way I can find out how to do that is from an actual perk in the perk tree, not trying to do that, want it to be a script tied to a weapon that triggers onequip.

Trying to setup the bound weapons so their base damage changes based on the Conjuration skill level on equip but can't seem to the command to read it anywhere.

I have been out of programming and scripting for over a decade now so already feel like a [censored] with how much I forgot, this one command is driving me nuts though.

User avatar
lolly13
 
Posts: 3349
Joined: Tue Jul 25, 2006 11:36 am

Post » Fri Dec 20, 2013 11:23 am

You're looking for http://www.creationkit.com/GetActorValue.

Game.GetPlayer().GetActorValue("Conjuration")

If you plan to access the player more than once, you're better off setting up a PlayerRef property than using Game.GetPlayer() each time, as it will be much faster for multiple access.

User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm


Return to V - Skyrim