Yeah I want to have it saved in between maps.
Problem is, the xp/leveling system is not an inventory item. It is within an ACS script which goes as follows:
#include "zcommon.acs"
int currentXP = 0;
int currentLevel = 1;
int xpToLevel[20] = { 0,
100, //lvl 2
200, //lvl 3
300, //lvl 4
400, //lvl 5
500, //lvl 6
600, //lvl 7
700, //lvl 8
800, //lvl 9
900, //lvl 10
1000, //lvl 11
1100, //lvl 12
1200, //lvl 13
1300, //lvl 14
1400, //lvl 15
1500, //lvl 16
1600, //lvl 17
1700, //lvl 18
1800, //lvl 19
1900, //lvl 20
};
script 1 (int amount)
{
currentXP = currentXP + amount;
HudMessage( d:amount, s:" XP"; HUDMSG_PLAIN, 3, CR_CYAN, 0.5, 0.9, 35);
for (int i = 19; i >= currentLevel; i--)
{
if (currentXP >= xpToLevel[i])
{
Print(s:"YOU LEVELED UP!");
currentLevel = i + 1;
break;
}
}
ACS_Execute(1, 0,0,0,0);
}