0
\$\begingroup\$

I want to create a turn based battle system for Pokemon online rpg!

I will some how implement the coding of the battle..but I want to know how can a user send request for a battle to other user?

If a user wants to have a live battle with some other user, he will send a battle request! If the opponent wants to battle he will accept it otherwise it will be rejected and no battle will take place...!

How can I implement the above??

\$\endgroup\$
3
  • \$\begingroup\$ Yes, tell us what you've tried already and what about it didn't work. This gives us a starting point so that we can avoid telling you something you already know. It also drastically narrows the scope of the question, because there are dozens of ways to implement something like this. Finally, it will help solidify exactly what you want. \$\endgroup\$
    – House
    Commented May 6, 2014 at 22:41
  • \$\begingroup\$ I have implemented, Login, Registration, Searching Pokemons on Maps, Who's Online, Team (6 pokemons), Change Team(replace pokemon from the team) Everything is done yet only using PHP! \$\endgroup\$ Commented May 7, 2014 at 3:23
  • \$\begingroup\$ What you've completed so far is not the same thing as what you've tried to solve this problem. \$\endgroup\$
    – House
    Commented May 21, 2014 at 14:34

1 Answer 1

1
\$\begingroup\$

You will need some client Javascript and run AJAX regularly so you can run server-side PHP and check if there are any battle requests, or during combat turns to check for any player actions.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .