Re: Event-based MUD server concept
ArchPrime brings up an important concern, which is scope. Some objects will want to react to local scopes (say, a door). Some might want to react to regional scopes (the city guard maybe), and other things might want global scopes (magical currents, weather patterns, etcetera).
The other important thing to suss out with event publishing/broadcasting is precedence. Who acts first? Which objects have precedence to handle events? Can they change data embedded in the event before another object catches the event?
I think if you can work out rules for scope and precedence, this system can work very well.
|