how to award Character Xp through script?

Post » Thu Aug 28, 2014 1:09 am

so normally you gain character xp from leveling up skills.

i want it so that skills gains don't level up the character at all, which can be done by adjusting gameplay settings.

however, i want the player to gain varying amounts of character xp from killing actors.

are there any script commands that add specific amounts of character xp?

i know about the player.advancelevel command which simply gives u one full level.

but i'd prefer something like "player.advcharacterxp 30" etc. which would allow me to slowly progress the players level as a result of combat only.

one other workaround idea i had, was to create a new skill, set it to skill level 1000 (with the use of the skill uncapper), and then use "player.advanceskill" to increase it by 1, then use player.modav to set it back to 1000 again, and run this script each time an actor is killed.

then i could set the xp needed per level to 20000.

the end result would be that killing 20 actors grants the player a level, but increasing a lot of skills has only a small effect towards a level up.

User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm

Post » Wed Aug 27, 2014 4:37 pm

You're looking for http://www.creationkit.com/AdvanceSkill_-_Game. You'll have to tinker with it a little to figure out the right amount to advance the skills by. Each skill works differently, so some will need to be advanced more than others to get the same proportion toward the next level. Also keep in mind that as the player's skill level increases, the amount needed to advance to the next level increases exponentially, so you'll have to develop a formula to increase the amount of skill advanced as the player reaches higher levels.

User avatar
Daramis McGee
 
Posts: 3378
Joined: Mon Sep 03, 2007 10:47 am


Return to V - Skyrim