#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"; }