pioneerspacesim/pioneer — pull request #725 by Brianetta (2011-10-25 23:19:41+00:00)
Title: NOT FOR MERGE - Persistent characters

This branch is the testing branch for [my persistent characters branch](https://github.com/Brianetta/pioneer/tree/characters).

This branch includes an additional module, [modules/CS-Test.lua](https://github.com/Brianetta/pioneer/blob/characters-testing/data/modules/CS-Test.lua), which allows rapid visualisation and testing of persistent characters.

The persistent characters are defined in [libs/Characters.lua](https://github.com/Brianetta/pioneer/blob/characters-testing/data/libs/Characters.lua), which provides a class name ```Character``` and a global array named ```PersistentCharacters```. ```Character``` is a general character sheet class, and the global array holds all those characters which are available to any module as a sort of library.

[Here's a copy of the codedoc](https://gist.github.com/1314759) as a gist.

I encourage people to play with this (use the Lua console to play with character sheets, for example) and feed back what works, what doesn't seem to, etc.

This class is not prescriptive. It's up to modders and scripters what the numbers might mean to them, and when and how often to run tests on character attributes.

If you have any questions, ask here or catch me on IRC. I plan to write a guide to this, if it turns out worthy, so questions are good.