I really need to study up on Ajax I guess... It gets mentioned a lot around hereCayle wrote:The mob mode solution I put forth would work regardless of the UI technology. There is an ongoing thread on the Planeshift forums, discussing what Planeshift would have been like had it been a 2D world. A couple of devs mentioned that originally was. It was a nearly completed 2D world before being converted to 3D and there are a lot of ruleset quirks that are a direct result of this. Also, EQ1 was more or less a text diku with the text interface replaced by a 3D one. In fact, aggro was invented on MUDS because, having a nodal coordinate system, they needed a way for a mob in a room with two characters to choose which one to attack; hence aggro.
I never played with Ajax, but I do believe that it is the solution to your asychronous needs in this case.Jackolantern wrote:I think most browser-based MMOs handle PvP quite differently than other MMOs for that reason. I believe Halls was planning to make a video about it if he has not already.OldRod wrote:One thing I'm stuck trying to understand - is there a way to tell someone they are under attack (by a player or a monster, either one) without them doing a page refresh?
I haven't looked at crons yet, would a cron be able to do that?
Designing a combat system
Re: Designing a combat system
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Designing a combat system
yes ajax will work here but you are looking at a beast.
PHP is server side meaning no updates without a refresh
Javascript is client side, meaning you can update without refresh but not make any server changes
ajax brings these two together by reaching to your server and calling a php page to run some code without having to refresh your current page. Its basically a hack job done right.
i go over some ajax in IR gold.
PHP is server side meaning no updates without a refresh
Javascript is client side, meaning you can update without refresh but not make any server changes
ajax brings these two together by reaching to your server and calling a php page to run some code without having to refresh your current page. Its basically a hack job done right.
i go over some ajax in IR gold.
Re: Designing a combat system
You've mentioned that a couple times now... we're waiting /tapfoot, /tapfoothallsofvallhalla wrote: i go over some ajax in IR gold.