My leveling code is a mess.
Here's an example:
resBtH is Base to Hit
resExtra of resXP is XP needed for next level.
resmax of resLevel is the current characters level.
That's for one class of 12, and only to check for the 1st and 2nd level.
So, there must be some other way to do it, in non-HL code, I'd try to use an array of some sort.
Anyone have advice, because the way I have it right now, I'm close to the max of if/then statements. (Found that out the hard way and had to recode some sections)
BoomerET
Edit: I see arrayrows and matrixcolumns, maybe that's the way to go?
Here's an example:
Code:
if (field[resMax].value < 2101) then
hero.child[resBtH].field[resMax].value = 0
hero.child[resXP].field[resExtra].value = 2101
hero.child[resLevel].field[resMax].value = 1
elseif (field[resMax].value < 4701) then
hero.child[resBtH].field[resMax].value = 1
hero.child[resXP].field[resExtra].value = 4701
hero.child[resLevel].field[resMax].value = 2
elseif (field[resMax].value < 9401) then
resBtH is Base to Hit
resExtra of resXP is XP needed for next level.
resmax of resLevel is the current characters level.
That's for one class of 12, and only to check for the 1st and 2nd level.
So, there must be some other way to do it, in non-HL code, I'd try to use an array of some sort.
Anyone have advice, because the way I have it right now, I'm close to the max of if/then statements. (Found that out the hard way and had to recode some sections)
BoomerET
Edit: I see arrayrows and matrixcolumns, maybe that's the way to go?
Last edited: