T
That Random Guy
Guest
Well, I've been working on a PHP game(altairiarpg.com), and so for it's been working out
I have part of the administration area down, the user account management down, and a login/register system. Right now I really can't get any further into the production of this game until I actually add a battle or combat system, but I want to do it with javascript. There's the problem; the user's stats and information are in PHP... I've tried echoing the PHP info on the document and using the getElementById method, but the values always come out as null, and this is probably because the Javascript script gets the elements before they are given their value... I know that there is one PHP game that has a battle script like this, but the developer is inactive now and there's no way of me getting a little know-how from him... I'm pondering the different ways to do this, but I don't want it to be one of those battles where it happens and you read about it; I want it to have buttons that say "attack","flee", etc. Does anybody know how I could do this, or some other good alternative for this... Thanks 

