Jump to content
MakeWebGames

Atrophy Mod - Slowy take away stats from the inactive LITE V1 V2


Agon

Recommended Posts

I was thinking some sort of daily cron event to take away a small amount of stats for the inactive. Just like real life, if you quit working out, your muscles get weaker.

So yeah, some sort of cron to lower strength, agility, guard, and labor if inactive for X amount of days.

Thanks for the read!

Link to comment
Share on other sites

This??

 

$lose_stat = mysql_query("SELECT userid FROM users WHERE laston  < unix_timestamp() - 2592000");//This would be 30 days...
$stat = mysql_fetch_assoc($lose_stat);
mysql_query("UPDATE userstats SET strength = strength - 50, agility = agility - 50, guard = guard - 50, labour = labour - 50, IQ = IQ - 50 WHERE userid = ".$stat['userid']."");

 

Completely untested...

Link to comment
Share on other sites

Wouldn't a percentage be better? Say 0.5% because 50 may be high for some users, and low for others. Also could go into -

It would depend how you structure your game. If you make it easy to get stats, than a percentage would work, but if it's hard to get stats, i would you a set amount and a percentage.

ex. stat - (100 + (1 % of stat))

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...