Here's a working version of three different classes. To make more classes, just add another when #... and "@exp_list = {" before the "else"
def make_exp_list
actor = $data_actors[@actor_id]
case actor.class_id
when 1 #first class
@exp_list = {
1 => 0,
2 => 2200,
3 => 4400,
4 => 8800,
5 => 16500,
6 => 30000,
7 => 55000,
8 => 100000,
9 => 200000,
10 => 400000,
11 => 600000,
12 => 800000,
13 => 1000000,
14 => 1200000,
15 => 1500000,
16 => 1800000,
17 => 2100000,
18 => 2400000,
19 => 2700000,
20 => 3000000
}
when 2 #second class
@exp_list = {
1 => 0,
2 => 3000,
3 => 5500,
4 => 10000,
5 => 22000,
6 => 44000,
7 => 88000,
8 => 150000,
9 => 250000,
10 => 500000,
11 => 750000,
12 => 1000000,
13 => 1250000,
14 => 1500000,
15 => 1750000,
16 => 2000000,
17 => 2250000,
18 => 2500000,
19 => 2750000,
20 => 3000000
}
else #base class
@exp_list = {
1 => 0,
2 => 2000,
3 => 4000,
4 => 8000,
5 => 16000,
6 => 32000,
7 => 64000,
8 => 125000,
9 => 250000,
10 => 500000,
11 => 750000,
12 => 1000000,
13 => 1250000,
14 => 1500000,
15 => 1750000,
16 => 2000000,
17 => 2250000,
18 => 2500000,
19 => 2750000,
20 => 3000000
}
end #end case
end # end exp list