4
Fork 0

Added an SKSE switch to _00E_Func_ComputeNeededExp

development
Eddoursul 3 months ago
parent 8f713030c6
commit 0d28276096
  1. BIN
      scripts/_00E_Func_ComputeNeededExp.pex
  2. 19
      source/scripts/_00E_Func_ComputeNeededExp.psc

@ -1,19 +1,20 @@
Scriptname _00E_Func_ComputeNeededExp Hidden
;import Math
import Math
float Function Run(int CurrentLevel, float Slope, float Mult, float fExpAcc = 1.0, float fExpAcc_Level20 = 1.2, float fExpAcc_Level30 = 1.5, float fExpAcc_Level40 = 2.0) Global
{Computes the total Experience (EP) needed by the player to reach the level CurrentLevel + 1. This includes the experience needed for the previous level.}
return EnderalFunctions.ComputeNeededExp(CurrentLevel, Slope, Mult, fExpAcc, fExpAcc_Level20, fExpAcc_Level30, fExpAcc_Level40);
if SKSE.GetVersion()
return EnderalFunctions.ComputeNeededExp(CurrentLevel, Slope, Mult, fExpAcc, fExpAcc_Level20, fExpAcc_Level30, fExpAcc_Level40);
endif
; This can be used as a quick way to scale the leveling process
; for all levels:
;/
float fExpAcc = 1.0
float fExpAcc_Level20 = 1.2
float fExpAcc_Level30 = 1.5
float fExpAcc_Level40 = 2.0
;float fExpAcc = 1.0
;float fExpAcc_Level20 = 1.2
;float fExpAcc_Level30 = 1.5
;float fExpAcc_Level40 = 2.0
Mult *= fExpAcc
@ -38,7 +39,7 @@ float Function Run(int CurrentLevel, float Slope, float Mult, float fExpAcc = 1.
return result
endif
EndIf
/;
EndFunction
; A debugging function:

Loading…
Cancel
Save