Jump to content

mysq and php math function help


Jiraiya

Recommended Posts

i want a to have a fighting like system in the game i am making. like in the mysql table

there are npc enemys for players to fight against to train there characters. the npc enemys have preset health Skill(what is used to determine strength basically its just subtracting the skill from the enemys health and keep doing that until the one of them dies by having there health reach zero. and when a player kills a npc enemy i want the player to gain a set amount of "skill" points and cash to add to there character profiles any idea were i should start? im new to using php and mysql but im learning

Link to comment
Share on other sites

I figured out the hard way, you can't make a game like that if you are new to PHP SQL and MySQL. It will eat you alive! *rawr!*

 

I would say you need to know how to alter stuff in the database  by Update and stuff.

 

secondly I would go for the train thingy.

 

thirdly (Lol, I know) I would go for the different kinds of skills.

Link to comment
Share on other sites

I would recommend you read the page Crayon Violent wrote.

 

You will need to know how to do all the MySQL, SQL, and PHP functions with that.

 

SELECT - Take out out of the database

UPDATE - Update an existing column

ALTER - Change something in the database (Add to or something)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.