Jump to content

Level player up through script - can be done?


antstubell

Recommended Posts

In order to level up the player needs to have enough experience points on the character. In the default game, the character gains experience through leveling up the various skills. Basically, a percentage of the skill experience is given towards the character experience. There are some mods which change this mechanic i.e. gain experience from quests. They most likely rely on an SKSE DLL plugin to make this change.

 

I do not think what you want to do can effectively be done with Papyrus alone. Theoretically, with papyrus only you could give the player a small portion of experience points in each skill line, hopefully it would add up to a character level increase without increasing skill lines too much.

 

Probably not what you wanted to hear.

Link to comment
Share on other sites

There's some SKSE functions that can help with this.

Game.SetPlayerExperience() https://www.creationkit.com/index.php?title=SetPlayerExperience_-_Game

Game.GetPlayerExperience() https://www.creationkit.com/index.php?title=GetPlayerExperience_-_Game

Game.GetExperienceForLevel() https://www.creationkit.com/index.php?title=GetExperienceForLevel_-_Game

 

It does say that using SetPlayerExperience won't trigger a level up notification, so you might want to set it so you gain enough experience to almost level up, and put in a notification of your own.

Link to comment
Share on other sites

Adding to what Ishara has suggested, you can store the initial values of the skills and then increase them all to force a level up and then set them back to the skill levels they were before, skills can go down a level but player level cannot. Downside is that this triggers their skill level up notifications, so it can get a bit spammy :/.

Link to comment
Share on other sites

Leveling up in Skyrim is not a reward unless you have the skill ranks to compete at that level. Leveling the player without increasing their skills is significantly to their detriment, because enemies get tougher while the player doesn't improve at all. You might be better off letting the player pick, say, ten skills to automatically gain a rank in. If they pick their higher rank skills, they'll probably increase a level. If they pick their lower rank skills, they probably won't increase in level, but in that case they probably don't want to increase in level because they are trying to improve a low ranking skill to the point that it is viable at their current level before they go increasing level again, and the game world gets harder.

 

If the bonus you are looking to give the player is the +10 in an attribute, I would suggest just giving them an ability that boosts that attribute, because again otherwise you're actually penalizing them for completing your quest.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...