[Scripting]Level-Up Command?

Post » Wed Jun 20, 2012 12:34 pm

Hello,

We're currently trying to alter the Leveling system of Skyrim. However, we haven't yet been able to find a command that increases the player's level. Or just a function that sets the players level.
It seems to be working in the console though.

Any ideas? Any help would be greatly appreciated.

Thank you,

Nick
User avatar
carley moss
 
Posts: 3331
Joined: Tue Jun 20, 2006 5:05 pm

Post » Wed Jun 20, 2012 9:08 pm

What you're looking for is in the "Game" script. I can't see anything about leveling up completely but you can force a skill level up.

By the way, have you found any way to give the player additional spendable perk points via script?
User avatar
Kelly Upshall
 
Posts: 3475
Joined: Sat Oct 28, 2006 6:26 pm

Post » Wed Jun 20, 2012 1:05 pm

You simply cannot use Papyrus to set the player's level. It isn't in the http://www.creationkit.com/Actor_Value_List

You can set anything on that list though with this:
Function SetActorValue(string asValueName, float afValue) native
Function SetAV(string asValueName, float afValue)

Translates to Game.GetPlayer().SetAV("Health", 5)

Maybe SKSE will give us a means to do so...
User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am

Post » Wed Jun 20, 2012 12:29 pm

You can forcefully level up skills though. http://www.creationkit.com/IncrementSkillBy_-_Game
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Wed Jun 20, 2012 8:00 am

You can forcefully level up skills though. http://www.creationkit.com/IncrementSkillBy_-_Game
Which will in turn level the player. Yes, but that isn't what was asked. Though I suppose you could force a bunch of skill ups, then remove them after the level up, but that would'nt be efficient or workable I think.
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am

Post » Wed Jun 20, 2012 7:24 pm

Hi!

Thanks for the quick reply. :)

@Candlemaster

No, unfortunately we haven't. The only option seems to be the AddPerk-Function which adds a desired perk. But to get two perk points instead of one each levelup seems impossible so far. :(

@Aellis

Okay, thats what we thought. I'm still wondering why there's a way to level up via the console but no function in the CK. So the only way seems to be forcefully leveling the skills and thus filling up the level process bar.
Is there a function to do that in the Script Extender? is there any way to find out?

Thank you,

Nick
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Post » Wed Jun 20, 2012 2:44 pm

What I was planning for a small mod of my own is the ability to trade in dragon souls for spare perk points. I can spend dragon souls easily enough, but we can't add perks...
User avatar
Danial Zachery
 
Posts: 3451
Joined: Fri Aug 24, 2007 5:41 am

Post » Wed Jun 20, 2012 8:41 am

Hi!

Thanks for the quick reply. :smile:

@Candlemaster

No, unfortunately we haven't. The only option seems to be the AddPerk-Function which adds a desired perk. But to get two perk points instead of one each levelup seems impossible so far. :(

@Aellis

Okay, thats what we thought. I'm still wondering why there's a way to level up via the console but no function in the CK. So the only way seems to be forcefully leveling the skills and thus filling up the level process bar.
Is there a function to do that in the Script Extender? is there any way to find out?

Thank you,

Nick

There's lots of GetSomething with no corresponding Set. And vice versa. I just saw a thread listing some of them. Either a major oversight or a major f up on Bethesda's part.

A Papyrus Get / SetLevel has been requested from SKSE. However, there is no way for us to know if it will make the first public release of the Papyrus linkage.

As an alternative to the perk points, you can let your users know they can use the uncapper mod to allocate more than one per point per level. But it's hard coded into a dll.
User avatar
Shiarra Curtis
 
Posts: 3393
Joined: Thu Jan 04, 2007 3:22 pm

Post » Wed Jun 20, 2012 9:30 pm

Forcing skills up via script wont work AFAIK. skills increased by script do not count towards the levelup and don't cause an OnStorySkillIncrease event. At least not if you use the console.
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Wed Jun 20, 2012 10:56 am

Forcing skills up via script wont work AFAIK. skills increased by script do not count towards the levelup and don't cause an OnStorySkillIncrease event. At least not if you use the console.

Game.AdvanceSkill("asSkill", X) does indeed count towards level-up. http://www.creationkit.com/AdvanceSkill_-_Game
User avatar
Juan Suarez
 
Posts: 3395
Joined: Sun Nov 25, 2007 4:09 am

Post » Wed Jun 20, 2012 8:20 am

Game.AdvanceSkill("asSkill", X) does indeed count towards level-up. http://www.creationkit.com/AdvanceSkill_-_Game

ah, good to know. I have always used Actor.setav.
User avatar
Jeneene Hunte
 
Posts: 3478
Joined: Mon Sep 11, 2006 3:18 pm


Return to V - Skyrim