Jump to content

Recommended Posts

Posted

Anyone know how I can set the player level to 1 in papyrus? I don't think the function is a part of the base game and can't find it in F4SE either. Anyone have a work around? Thanks.

Posted (edited)

I mean to include it into an activator, so right now I have?:

 

Event OnActivate(ObjectReference akActionRef)
Player.SetLevel(1)
EndEvent
and I'm getting:
(4,1): variable Player is undefined
(4, 8: none is not a known user-defined script type
Edited by foot89790
Posted
  On 2/17/2019 at 1:31 AM, DieFeM said:

Use Game.GetPlayer().SetLevel(1) instead.

I got (4,18): SetLevel is not a function or does not exist

I think it might be hardcoded in game that you can't lower your level. The console command for lowering your level that worked in skyrim doesn't work in f4 either. Dyou have any ideas on how I could get around that?

Posted

You can make your own SetPlayerLevel without SKSE, or any hackish tricks. You just need a bit of math. Luckily, I had already done this before and found the function I made. I didn't think it was useful to anyone, even for me because of the one thing that makes it bothersome: The xp counter will count forever and ever until it reaches the total exp gained up to that level you set. For example, if you set your level to 50 from level 1, that XP counter is going to keep going until it reaches the exp for level 50. There's no way to stop it. Your level itself is instantly set though.

 

 

  Reveal hidden contents

 

The formula in there actually has an exponent, but I changed it to avoid using math.pow().

Posted
  On 2/18/2019 at 1:18 PM, Rasikko said:

You can make your own SetPlayerLevel without SKSE, or any hackish tricks. You just need a bit of math. Luckily, I had already done this before and found the function I made. I didn't think it was useful to anyone, even for me because of the one thing that makes it bothersome: The xp counter will count forever and ever until it reaches the total exp gained up to that level you set. For example, if you set your level to 50 from level 1, that XP counter is going to keep going until it reaches the exp for level 50. There's no way to stop it. Your level itself is instantly set though.

 

This is some serious scripting. Its annoying that going back levels is hardcoded into the game though

  • Recently Browsing   0 members

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