20 January 2010

A Wonderful Thing is a Trigger; A Trigger's a Wonderful Thing

I spent this afternoon working on a project which I should shelve due to time constraints, but once I started thinking about it I found it difficult to stop.

The project involves development of a communication network amongst triggers.  Triggers are fairly common in Clan Lord's quests and booby traps.  Most of them just wait around for a player to step on them or bump into them, and once activated, the trigger produces a specific event which typically ends right then and there (like avalanches within the Foothills).

I am trying to develop a system that enables triggers to talk to each other: when one trigger is activated (like when a lever is pulled) and the trigger declares an event (like opening a door), then that trigger will notify all of the other triggers within its network of its actions.  Those triggers may respond to this notification with their own event (like closing a different door).  The trick is to enable lots of general communication hooks, so instead of just levers (which have two positions: up and down), we can also have, say, dials with the number 0 though 9 on them: when three dials are set to 6-6-6 then one event happens.  When the same dials are set to 9-9-9 then a different event happens.  Theoretically we could rig the script so that the dials and the levers would have the option to communicate with each other.

This is crazy stuff, but this kind of communication system a lot of fun to create from the ground-up.  Thanks to ServerGM for the guidance on this project.  I'm constantly amazed by how a simple chat with him develops into a wonderful thing.

No comments:

Post a Comment