View Full Version : Battle system

06-30-2011, 08: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

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

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

06-30-2011, 08: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)

07-01-2011, 06: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

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