I am trying to make a script that when the player activate an item, the script takes the skill level they have when activating the object, then resets their level, skills and perks back to default values (15 for most skills, with +5 more in some depending on race, level 1, 100 max health, mana and stamina and 0 perks), and then advances the skills the player had back to where they were before, effectively giving them a chance to change their perks and tweak their health, mana and stamina.
I am not sure how or if I can even take the initial values as a variable, change the value, and still have the script save the original number, though.
If I use
int PlayersCurrentOneHanded = Game.GetPlayer().GetActorValue("onehanded") as intTo declare the variables at the start, can I simply do
Game.AdvanceSkill("OneHanded", PlayersCurrentOneHanded-15)???