Death, corpses, and unconscious PCs
Posted: Wed May 24, 2006 4:03 am
I've been thinking this architecture may suit us better. The three systems are closely intertwined, but the shared functionality of PC corpses means I think this may be a good way to organize them,
(Edit, this forum doesn't like ASCII art)
curing/healing abilities ----> Nonlethal system <----> corpse system
raise dead abilities -----> Dead system <------> corpse system
So the death system would only handle moving PCs to the fugue plane, applying experience loss on a raise, and of course persistantly keeping track of whether or not a PC is dead (I'm thinking a bitwise local int for this, if anyone can think of other flags which might need to be set on a PC we could make a small system out of it).
The nonlethal system would handle the same things for unconsious PCs. Do something with the PC itself, while spawning a corpse. With all the PC's items.
The corpse system is more complex, persistantly keeping track of every PC corpse on the server and who they belong to. It also handles transportation, looting, mutilation, and coupe-de-grace saves and damage tracking (for KOed PCs). It also is in charge of moving a KO/dead PC back into his corpse, giving his inventory back and re-equiping his items.
Thoughts?
(Edit, this forum doesn't like ASCII art)
curing/healing abilities ----> Nonlethal system <----> corpse system
raise dead abilities -----> Dead system <------> corpse system
So the death system would only handle moving PCs to the fugue plane, applying experience loss on a raise, and of course persistantly keeping track of whether or not a PC is dead (I'm thinking a bitwise local int for this, if anyone can think of other flags which might need to be set on a PC we could make a small system out of it).
The nonlethal system would handle the same things for unconsious PCs. Do something with the PC itself, while spawning a corpse. With all the PC's items.
The corpse system is more complex, persistantly keeping track of every PC corpse on the server and who they belong to. It also handles transportation, looting, mutilation, and coupe-de-grace saves and damage tracking (for KOed PCs). It also is in charge of moving a KO/dead PC back into his corpse, giving his inventory back and re-equiping his items.
Thoughts?