...

View Full Version : Battle system



Phantom90ro
06-30-2011, 07:19 PM
hi guys im new here. i need some help at a battle system java script im working at a wbmmorpg game and im stuck at the battle system i dont know how to make that script i tryed some methods but all were wrong. i want the battle script to calculate the following procedure:
attack vs deffense
inteligence vs intelligence
agillity vs agillity
those attributes are taken from MySQL database.
can you please explain or make the script for that combination or at least for one.
i appreciate it thanks

Fugix
06-30-2011, 07:24 PM
do you have any code to start with at all?

Phantom90ro
06-30-2011, 07:28 PM
no :( i deleted all attempts

Fugix
06-30-2011, 07:37 PM
well to start you off, sql is a server side language, so you will need to use PHP to grab the values from your db table(s)

Phantom90ro
07-01-2011, 05:41 PM
i think this works on that
doquery("SELECT id,name FROM {{table}}", "attributes");
to select from the attributes from table now i work on select specific data from table if any sugestions pls tell me:P

Fugix
07-01-2011, 07:23 PM
refer here.

http://dev.mysql.com/doc/refman/5.0/en/select.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum