Exp math help

laxking97laxking97 Member Posts: 114
edited November -1 in Working with GS (Mac)
Okay so I'm working on a RPG and I need help haha.

Okay so the exp needed to level up is level³. So if you are level 100 then your exp is 100³, or 1,000,000.

Now the exp gain is 120 * (level of enemy)/5

So theres an enemy, lvl3 so
120 * 2/5
which comes out to 75 exp.

If my character is level 1 with 0 exp then that will level him up to 4 and 11 exp.

I'm wondering how I could put this as a rule(s). If someone helps me then I would be happy to share as a FREE template.

I KNOW THIS MIGHT BE HARD SO IF NO ONE HELPS IT WILL BE ALRIGHT

Comments

  • outasiteoutasite Member Posts: 417
    Exp formula:
    [(n-1)^(10^(1+(n/10)))+b] * (1+(n/10)
    n- current lvl
    b- initial value

    Examples:
    level 1 {(0*10^1.1+100)*1.1=110}
    level 2 {(1*10^1.2+100)*1.2=139}
    level 3 {(2*10^1.3+100)*1.3=181}
    level 4 {(3*10^1.4+100)*1.4=245}
    level 5 {(4*10^1.5+100)*1.5=339}
    Play with and alter as u like (depending on how big you want numbers to be).

    For the enemies.
    Attributes:
    lvl: enemy level

    { [(lvl-1)^(10^(1+(lvl/10)))+b] * (1+(lvl/10) }

    Examples:
    level 1 {(0*2^1.1+20)*1.1=22}
    level 2 {(1*2^1.2+20)*1.2=26}
    level 3 {(2*2^1.3+20)*1.3=32}
    level 4 {(3*2^1.4+20)*1.4=39}
    level 5 {(4*2^1.5+20)*1.5=46}
  • outasiteoutasite Member Posts: 417
    outasite said:

    [(n-1)^(10^(1+(n/10)))+b] * (1+(n/10)
    Play with and alter as u like (depending on how big you want numbers to be).

    I'd use the exp formula as a base for health. power, mana, money ect. for everything. Seems to make sense but idk.
  • outasiteoutasite Member Posts: 417
    Update: Formula v2.0

    Hero Exp formula:
    100^( 1+((n-1)/10) )

    Examples:
    level 1 {100^1.1 = 100}
    level 2 {100^1.2 = 158}
    level 3 {100^1.3 = 251}
    level 4 {100^1.4 = 398}
    level 5 {100^1.5 = 630}

    Enemy Exp formula:
    [ 100^( 1+((lvl-1)/10) ) ] / ((lvl-1)*2+4)

    Examples:
    level 1 {(100^1.1)/4 = 25}
    level 2 {(100^1.2)/6 = 26}
    level 3 {(100^1.3)/8 = 31}
    level 4 {(100^1.4)/10 = 39}
    level 5 {(100^1.5)/12 = 52}

    The 4,6,8,10,12 is how many kills it takes to level.

    Glossary:
    n- current hero level
    b- initial value
    lvl- enemy level
Sign In or Register to comment.