Hello.
Just wonder what is the best way to create requirements for lets say, some stat like "Strenght"?
I want this stat be available only for player with level 4 and above. How do i do this?
Just do IF/switch operations and then display/allow player to interact with this stat or it's an additional column in DB which decides on what level player gets this stat and can raise it?
player stats table looks like:
CODE
"CREATE TABLE `p_stats` (
`a_id` INT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY(`a_id`),
`c_id` INT(20) UNSIGNED NOT NULL,
`p_id` INT(20) UNSIGNED NOT NULL,
`strenght` INT(20) UNSIGNED default '0',
`agility` INT(20) UNSIGNED default '0',
`vitality` INT(20) UNSIGNED default '0',
`focusing` INT(20) UNSIGNED default '0',
`rage` INT(20) UNSIGNED default '0',
`intellect` INT(20) UNSIGNED default '0',
`wisdom` INT(20) UNSIGNED default '0'
)";
Thanks, Fratyr.