Designing a combat system

For discussions about game development that does not fit in any of the other topics.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Designing a combat system

Post by OldRod »

Cayle 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.
Jackolantern wrote:
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?
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.
I never played with Ajax, but I do believe that it is the solution to your asychronous needs in this case.
I really need to study up on Ajax I guess... It gets mentioned a lot around here :)
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Designing a combat system

Post by hallsofvallhalla »

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.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Designing a combat system

Post by OldRod »

hallsofvallhalla wrote: i go over some ajax in IR gold.
You've mentioned that a couple times now... we're waiting /tapfoot, /tapfoot

:D
Post Reply

Return to “General Development”