Welcome to the brand new Codemasters Forums! Be sure to check the FAQ and Forum Rules before you get started.

Basic Attack System

Hello all,
What I am trying to do is make a basic attack system i already have parts of it done I just need help figuring out how to do a few specific things. 

Problem #1
I have three tables in my mysql databse. one keeps track of the users and thier stats, one keeps tracks of characters and thier stats, and the third is the battle table to store info for the battle and then for recall later.
What I want to do is as an admin pick out the two users from dropdown menus
then pick the two characters they are playing as from dropdown menus
then I want to combine the two stats together from the different tables and put them into the battle table

(like so)
player1_attack(battle table) = users_attack(picked from dropdown) + characters_attack(picked from dropdown)

Problem #2
May come in the future! 
Sign In or Register to comment.