Is there a simple was to compare a float (skill exp on char) to a data table that has a float (skill exp) and an int (skill lvl) and set the value of an int (skill lvl on char) depending on where on the data table the float is = to? Sorry if this doesn't make sense..
Basically a system that says okay, you have 1200 experience points so this is what level you should be.
My data table right now has two columns, a Skill Lvl struct and a Skill Exp struct. My thought was compare my float to all the floats in the table to find the row it's between, and set my int to the int from that same row?.. but can't figure out how to do so.
Any help would be awesome!
Matt
Basically a system that says okay, you have 1200 experience points so this is what level you should be.
My data table right now has two columns, a Skill Lvl struct and a Skill Exp struct. My thought was compare my float to all the floats in the table to find the row it's between, and set my int to the int from that same row?.. but can't figure out how to do so.
Any help would be awesome!
Matt
Comment