Jump to content
MakeWebGames

user stat types question


orsino

Recommended Posts

hi i have a question

in order to do crimes on my game i added a new stat (nerve) in the database that works like the AP stat

it works fine when i do crimes it takes the stat away but the new stat type does not fill up again .

do i need to change or ad anything else ?

Link to comment
Share on other sites

In the table user_stat_types you need to set some value to the restore_rate of your new stat (nerve). AP have a value of 0.5 which means it restores 1/2 an AP per minute. It's the module restore_stats and more specifically the auto_pre_content.php file of it which does the start restore, you may check the code to see how it works.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...