Questions tagged [php]

PHP is a general-purpose programming language that is especially suited for web development.

Resources

120 questions
3
votes
2 answers

PHP battle script

I have custom built as a little personal project a website coded in php that is a MMORPG. It is at the minute just a personal private project but I am stuck as what to do when it comes to users battling each others' accounts! I have four stats for…
2
votes
1 answer

How to display a hierarchical skill tree in php

If I have skill data set up in a tree format (where earlier skills are prerequisites for later ones), how would I display it as a tree, using php? The parent would be on top and have 3 children. Each of these children can then have one more child…
user3587554
  • 121
  • 3
0
votes
1 answer

Calculate Player Level in PHP

So in my program, I currently know how much Experience a player has. I was using this formula to figure out what level the Player was: function calcLevel($XP,$const){ $L = sqrt($XP)*$const; return floor($L+1); } Then I wanted to figure…
-2
votes
1 answer

PHP Battle System for RPG game

I posted this a while ago on stackoverflow, they thought it would be better place here, I agree. Essentially I know what I want to accomplish, and I have something to the effect of what I want but I am not satisfied with it. Here's the problem. Each…
Jay
  • 21
  • 1