> exp_to_level = 0; > for (i = 1;i <= level;i++) // level is the argument from the character > exp_to_level += handy formula (write one... Think parabola...) > } > exp_to_level * modifier; > > return exp_to_level; an even better thing to do is take whatever formula you want, and paste it into an excel worksheet, and have it generate a table..then make the table into an exp_perlevel array..array lookups are faster than recalculating every time someone types score or whatever..not to mention that you can make a cool graph to see if the function actually looks like what you think it should.. siv +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST