|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (2 bit)
Join Date: Mar 2005
Posts: 3
|
PHP RPG Issue
Hi, I'm building a MMORPG using php & mysql.
I've encountered a problem. I want to implement a battle system with multiple rounds. Something like: Round 1. Player tries to hit monster... HIT:10 dmg Monster tries to hit player... MISS Actions: Next Round | Try To Run | Cast Spell | Use Item BUT, I don't want the player to hit the browser's "back button" to escape the fight... If he is pushing the back button, I want his browser to load the same page, or to show something like "You can't use the back button when fighting" Any ideeas please...
|
|
|
|
|
|
#2 |
|
Member (2 bit)
Join Date: Mar 2005
Posts: 3
|
Anyone? Please?
|
|
|
|
|
|
#3 |
|
Chop Chop
|
I don't know how or even if this would work, but you might try setting a session that stores the battle data. That might not work, or maybe you already tried it.
__________________
Main Computer: Intel Core i5 2500K | AsRock Extreme3 Z68 | Corsair Vengeance 2 x 4GB DDR3 1600 | EVGA GTX460 768MB | Western Digital Caviar 750GB 7200RPM SATAII | Mushkin 60GB SSD w/ SRT enabled | Asus 20X DVD Burner | Antec 550W Modular | Cooler Master HAF 912 w/ 4 fans | NXZT Sentry Mesh fan controller | W7 | 2 x 23" LG IPS Monitors Laptop: Asus EEE 1000HE | 2GB RAM | Ubuntu Laptop: Lenovo Thinkpad T60p | 4GB RAM | W7 |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Rounds are stored in a database right? Give each round a unique ID, and check whether the round has been played before...
|
|
|
|
|
|
#5 |
|
Chop Chop
|
Problem with doing that, aym, is your dbs could get very big if every round is stored.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|