Hi-
I'm programming a forum based MUD game online, except with many components programmed in DBC (fighting, shopping, working for money etc.) I figured that that shouldnt be to hard...for a battle it might be structured like: IE relays player names to a program that waits in the background for IE's command, the program comes to the front, two SQL queries are run, each player's stats are retrieved, multiplayer functions should work for the actual battle (not too hard with only two people,) and finally, two more SQL queries are run to update the stats of each player.
My question is: is it possible for IE to relay information to a DBC program? I've seen this work with some things on Yahoo...
PS-Please don't flame me and say that this is too ambitious...I know it is. There's probably an 80% chance of this proving to be way too hard; I'm just toying around and seeing whats possible.
EDIT: I had an idea...what if the two programs relayed info via SQL?
There could be a field in the users table that could be like "current_DBcommand"...whenever the online script wanted the DBC program to do something, it could update that field with a new command. (There would also be a table for battle info, where the DBC program could extract the two player's names.) The player's user-id could be saved elsewhere on the computer...let's call is $usrid in both codes. It could be something like...
PHP:
[thing that triggers battle]
mysql_query("update players set current_DBcommand="battle" where id=$usrid");
DBC (SQL query format is probly wrong...I'll just use the PHP one.):
do
query$=mysql_query("select * from players where id=$usrid")
dim array$()
array$()=mysql_fetch_array(query$)
if array$(current_DBcommand)!="" then goto computeCommand
loop
etc etc