Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Battle system

  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Battle system

    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

  • #2
    Regular Coder
    Join Date
    Jun 2011
    Posts
    103
    Thanks
    0
    Thanked 13 Times in 13 Posts
    do you have any code to start with at all?

  • #3
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    no i deleted all attempts

  • #4
    Regular Coder
    Join Date
    Jun 2011
    Posts
    103
    Thanks
    0
    Thanked 13 Times in 13 Posts
    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)

  • #5
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #6
    Regular Coder
    Join Date
    Jun 2011
    Posts
    103
    Thanks
    0
    Thanked 13 Times in 13 Posts


  •  

    LinkBacks (?)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •