1
General SMFShop Discussion / pet system
« on: July 14, 2008, 05:34:46 am »
hi there I have a lot of items in my shop that are "monsters"
I want to have three fields in my database: defense, attack, hp
an a option for a member to attack another monster
(both monster's attack values would be inflected on each other minus
the defense value cutting finally into the hp)
when a monster loses all hp I want the item to return to the shop so that
its in stock again
unfortunely I only have a breif understanding of mysql and php
has anyone got any tips on where to start etc
I want to have three fields in my database: defense, attack, hp
an a option for a member to attack another monster
(both monster's attack values would be inflected on each other minus
the defense value cutting finally into the hp)
when a monster loses all hp I want the item to return to the shop so that
its in stock again
unfortunely I only have a breif understanding of mysql and php
has anyone got any tips on where to start etc