Busy week a few false starts and full code rewrite, so we are skipping to 0.5.
I found i can add “\n” to some text fields to create a line break. So the formatting and readbility of the tooltips is greatly improved. heres an example:
SetInfoText(“Current level is:” + hArmCurLvl + “Remaining Gold = ” + playerGold + “\n” + “Current xp is: ” + hArmCurXP + “\n” + “xp required for next level is: ” + hArmXpToLvl + “\n” + “you need ” + (hArmXpToLvl – hArmCurXP) + ” More xp to level up this skill”)
- fixed one handed skill defaulting to required xp when the player doesn’t have enough gold.
- Fixed values not updating properly during state changes (when click a button or accept a slider values update correctly).
- Fixed xp required for next level being calculated incorrectly. Current xp is not reset when a skill levels up as i thought it was.
- Altered tooltips to reflect the new calculation mentioned above.
Thanks to pragasette on reddit i figured out i was using the wrong functions to calculate the XP values: https://www.reddit.com/r/skyrimmods/comments/n5yote/using_script_to_level_up_skills_functions/
Get the mod here: https://www.nexusmods.com/skyrimspecialedition/mods/49140
fixed tooltips not having uniform formatting fixed button text not having uniform formatting Added current gold to button text for live updates Added new cost formula: (current skill level + offset) * multiplier Default offset is 3 and default multiplier is 17 Added new page: cost settings Players can now alter the cost formula, even…
Finally Version two has fully working basic features. I had a breakthrough learning the applications of functions that streamlined the process significantly and reduced the amount of code to around 30% of what it was. I also swapped out the clunky sliders for snappy buttons and overhauled the features to buy entire skill levels rather…
Fixed all but lockpicking, enchanting and alteration. May have issues if you update the mod and try to play a save that had previous version of the mod. Get the mod here: https://www.nexusmods.com/skyrimspecialedition/mods/49140
Thanks to cocacrispy find the correct functions and a great example of how to use them, i managed to implement a bunch of planned and requested features. There also many more to come! I was stuck, unable find away to get skill level xp values and how much xp would be needed to level a…
This mod allows you to purchase skill XP with gold via the mcm. Leveling up works as normal and you can’t directly buy player levels. Neither game nor the SKSE exposes the required code for that (though i believe some modders accomplished it with .net plugins, which are beyond my current skill). Skills already require…