Smelltastic
Member
Since I just found out Veracity added a bunch of interesting property functions, I whipped up a script to track property changes. This is probably mostly useful to script authors who like to see exactly what properties get changed and when so they know how to react to them.
Suggested use is to call "Changes.ash update" in your afterAdventureScript, or "Changes_Since(true);".
ASH Usage:
Checkpoint( [string name] ):
CLI Usage:
Changes (set|update|since|ignore) [name]:
Suggested use is to call "Changes.ash update" in your afterAdventureScript, or "Changes_Since(true);".
ASH Usage:
Checkpoint( [string name] ):
Save all properties to a Checkpoint. If "name" is unspecified, uses the checkpoint "last".
Property values are stored in "Changes_<Character_Name>_<last>.txt".
Changes_Since( [string name], [boolean update] ):Property values are stored in "Changes_<Character_Name>_<last>.txt".
Prints out all changes since checkpoint <name>, optionally updating that checkpoint (default true).
IgnoreProperty( string prop ):
Adds/Removes a given property to a list of properties to ignore (Changes_ignores.txt).
Will verify the property exists first, correcting case if necessary.
Will verify the property exists first, correcting case if necessary.
CLI Usage:
Changes (set|update|since|ignore) [name]:
If "name" is unspecified, uses the checkpoint "last".
Changes set [name]: Creates a checkpoint, same as ash Checkpoint().
Changes update [name]: Lists all changes, and updates the checkpoint. Same as ash Changes_Since( [name], true ).
Changes since [name]: Lists all changes, does not update. Same as ash Changes_Since( [name], false ).
Changes ignore <name>: Ignores the specified property, or stops ignoring it. Corrects improper casing.
Changes set [name]: Creates a checkpoint, same as ash Checkpoint().
Changes update [name]: Lists all changes, and updates the checkpoint. Same as ash Changes_Since( [name], true ).
Changes since [name]: Lists all changes, does not update. Same as ash Changes_Since( [name], false ).
Changes ignore <name>: Ignores the specified property, or stops ignoring it. Corrects improper casing.
Code:
svn checkout https://svn.code.sf.net/p/kolm-changes/svn/