I want to remove the current system of XP gaining from my ROM. I want it so it does this instead: Goes through an array, and determines how much xp you need to level that way. For an example, here is the XP array. You are level 1, and need to get to level two. Well, you need 20 exp to do so. So, when you get twenty XP, you are raised to level 2, and than need 40 XP to make it to level 3. Can someone tell me how I could implement this?
{1, 20, 40, 80, 100}

