Jump to content

syntax to reduce XP?


kucingkucing

Recommended Posts

hi, its me again, sorry for my bad english,

i like to ask, what syntax to reduce player XP?,

i have try Player.RewardXP with minus value, and it do not works

 

i know it can be done because thismod somehow can "rewind" player XP or player Level,

yes the XP meter move backward,

 

i have analyze it and i only understand about 20% of it,

i hope somebody can give me clue about it,

thanks

 

Link to comment
Share on other sites

Theoretically you could "Player.GetAV XP" (where "XP" is the "derived stat") and save to an integer variable, adjust that value as desired, then call "Player.ResetXP" (to zero), and then "Player.RewardXP <adjusted integer variable>". However, Perks (and their ranks if any) that adjust XP gains will complicate the formula.

 

-Dubious-

Link to comment
Share on other sites

Theoretically you could "Player.GetAV XP" (where "XP" is the "derived stat") and save to an integer variable, adjust that value as desired, then call "Player.ResetXP" (to zero), and then "Player.RewardXP <adjusted integer variable>". However, Perks (and their ranks if any) that adjust XP gains will complicate the formula.

 

-Dubious-

thank you Dubius,

I have tried it and the result is amazing,

the "Player.ResetXP" reducing Player XP to zero but do not reduce player level,

and you can add the player XP back with "Player.RewardXP",

thank you again,

 

note: I still wonder how that mod can move XP meter backward?, is there any logic behind this?

or there any other syntax to edit player XP value besides "Player.ResetXP" and "Player.RewardXP"?

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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