how do i add Combat stats?

General Chat, Comments
Post Reply
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

how do i add Combat stats?

Post by KaL »

i'm trying to build a module to add combat stats as a reward.

i have tried:

$user = LoadCombatStats($userId);

$user['max_damage']->value+=8; (fail)
$user['max_damage'] + 8; (fail)

i notice combat stats is not a database value. More like a database value after an operator end result.
Can you tell me what is the best step to achieve this process?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: how do i add Combat stats?

Post by a_bertrand »

Those are just in the combat module. Check out when / where I set them up and you will be able to modify them. It's in the lib file of the combat BTW.
Creator of Dot World Maker
Mad programmer and annoying composer
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: how do i add Combat stats?

Post by KaL »

Thanks again. Yeah, I checked it out already. Those value are not store value. So I decided to use the database stats to influence the combat stats instead. It works great!
Post Reply

Return to “General”