RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Skill-Class problem logic problem

_Epila_

Sorceror
I'm trying to clone POL/ZH class system into RunUO.
It can tell your class and level based on your skills

The original system is based on 8-skill classes with a max value of 150 for each skill
However I want to change it to 100 skill max value
If each class skills value must be 75(original) to achieve level 1 (base 150)
then each class skill must be 50 to achieve level 1 (base 100)
(other values also follow a 2/3 or 100/150 ratio)

But I don't know what is happening, Hunter class (has 12 skills instead of 8)
can never reach level 2 or more, even with 100 in each skill (1200 total)

Every other class is OK even with 'EachMustRepresent=7.5' instead of 5.0 as I expected

Seems that the problem here is that the main logic is entirely designed for 8-skill classes,

Class description source http://wiki.zhr.ru/eng/doku.php?id=info:classes:start
(You can find the pol original script at the end of attached script)

EDIT:
Solved
 

Soteric

Knight
You have to start debugging your code. Try add Console.WriteLine things to check intermediate calculations. So you'll be able to see where the calculation gives the wrong result.
 
Top