From 2ab51e507d620c4479e07ca0ec47d22c8c66bc90 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Apr 2021 15:14:34 -0400 Subject: Initial commit --- src/dmtool.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/dmtool.cc (limited to 'src/dmtool.cc') 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 + +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"; +} -- cgit v1.2.3