Simple. Do exactly what you said, to create an array. Then, each time a char
kills a mob, update the chars exp, then compare it with array[ch->level -
1]. So basically array[ch->level - 1] is ch->exptnl
Eg...
{ 1000, // to get to lvl 2
2000, // 2000 more to get to lvl 3
}
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 20, 2002 8:21 PM
Subject: New Exp System
> 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}
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>