RPG Game energy upgrade

Discussion in 'Programming' started by starsi, Jun 2, 2009.

  1. #1
    Anyone with experience in RPG's here?

    I have this Mafia Wars-like game. Almost everything is working well except for the part where you can distribute skill points every level up.

    I've solved the energy and health upgrade by doing a cron job, but this one stumps me.

    Anyone got an idea? Or can you point to a tutorial?

    Thanks in advance.
     
    starsi, Jun 2, 2009 IP
  2. *LESTAT*

    *LESTAT* Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what is the url?
     
    *LESTAT*, Jun 3, 2009 IP
  3. darkmessiah

    darkmessiah Peon

    Messages:
    500
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you dont need a cron job for energy upgrades

    You can figure out how many "ticks" have past based on the last update time,current update time and the time each tick takes. A bit more involved than that, but don't rely on a cron job to do something that needs to be checked on in real time. Plus most people will have a different update time(offset) based on when they created their account.

    as for skill points,

    just check for when a player has hit the exp threshold and credit the player with "ZEN" (mafia live reference) points. Then create a form where a player picks an attribute to add to, continue until there are now more "ZEN" points.
     
    darkmessiah, Jun 10, 2009 IP