diff options
author | Your Name <you@example.com> | 2021-04-13 15:14:34 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-13 15:14:34 -0400 |
commit | 2ab51e507d620c4479e07ca0ec47d22c8c66bc90 (patch) | |
tree | 90906ecb043c01034280c767b83a88eb6df6956f /src/dmtool.cc | |
download | dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.gz dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.bz2 dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.zip |
Initial commit
Diffstat (limited to 'src/dmtool.cc')
-rw-r--r-- | src/dmtool.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/dmtool.cc b/src/dmtool.cc new file mode 100644 index 0000000..5c322e3 --- /dev/null +++ b/src/dmtool.cc @@ -0,0 +1,33 @@ +#include "creature.h" +#include "feature.h" +#include <iostream> + +using namespace std; + +void usage(string exename) { + cout << "Usage:\n"; + string indOpt = " " + exename + " "; + string indDesc = " "; + cout << indOpt << "[ls] [subfolder]\n"; + cout << indDesc << "List creatures and objects.\n"; + cout << indOpt << "[print] path\n"; + cout << indDesc << "Print existing creature or object.\n"; + cout << indOpt << "cp old-path new-path\n"; + cout << indDesc << "Copy old-path to new-path.\n"; + cout << indOpt << "rm [--recursive,-r] path\n"; + cout << indDesc << "Remove existing creature, object, or directory.\n"; + cout << indOpt << "roll [--advantage,-a] path name\n"; + cout << indDesc << "Roll, optionally with advantage, a skill check, save, or attack.\n"; + cout << indOpt << "damage path amount [type]\n"; + cout << indDesc << "Damage creature by amount. Type defaults to \"force\".\n"; + cout << indOpt << "set path field value\n"; + cout << indDesc << "Set a field to a new value, where field is any of:\n"; + cout << indDesc << " ability (str, dex, con, int, wis, cha); value is new ability score\n"; + cout << indDesc << " skill (athletics, \"sleight of hand\", etc.); value is (none|proficient|expert)\n"; + cout << indDesc << " name; value is new given name\n"; + cout << indOpt << "add path object\n"; + cout << indDesc << "Add object to creature's inventory. If it is armor or a weapon, it will automatically be equipped (if applicable)\n"; + + cout << indOpt << "help\n"; + cout << indDesc << "Show this help.\n"; +} |