TheOracle icon indicating copy to clipboard operation
TheOracle copied to clipboard

slash command to increment/decrement PC resources

Open rsek opened this issue 4 years ago • 1 comments

i think this is on the trello, but i'll add it here too.

examples:

/suffer endure-harm pc-id 2 /recover heal pc-id 2 /momentum take pc-id 4 - momentum is added by many moves but has no specific recovery move. in the game's parlance, you "take +X momentum", so we can follow that example. a /momentum command group could be expanded with other momentum-related commands.

i think the MVP of this feature would have:

  • an autocompleting parameter to target a PlayerCharacter stored in the DB
  • subcommands or command options for incrementing/decrementing Health, Spirit, Supply, and Momentum
  • a way to set the amount suffered/recovered. for suffer that should be min 1, max 3. recover is more sensitive to assets, but for Health/Spirit/Supply could safely be restricted to 1-5. momentum gain is a little fuzzier; 1-16 would be a safe number (i don't think there's many cases there, but that's effectively the most momentum someone could gain at once).
  • a way to provide feedback to the user (since they're probably not looking at their character sheet). i'm imagining an ephemeral that reports whether the command succeeded/failed, the PC's old resource value, and the PC's new resource value

possible enhancements:

  • a convenient way to reference the relevant rules text from the same command?
  • a way to target Companion Health and Vehicle Integrity
  • integrate rolling the associated move, where appropriate?
  • a way to target asset resources, e.g. Ammo from Archer
  • automatically mark the Unprepared impact (and tell the player(s) about it) when pc/party supply reaches 0
  • offer suggestions/reminders (e.g. an ephemeral with some buttons) to mark Wounded, Shaken, Unprepared
  • an integrated way of handling/removing impacts that pro
  • a way to handle "overflow", for those situations where an incoming suffer exceeds the remaining resource
  • once parties are implemented: some way to manage Sojourn recovery moves

it might also be good to send an ephemeral message after it's done, so that the user receives feedback on whether it succeeded or failed, and their PC's new status.

questions to answer:

  • should the command parameters/subcommands be by move name or the resource name? is it feasible to do both?
  • should a seperate command could exist for setting resources/stats on a PC exist?
  • is some sort of autocomplete a good idea for handling the above? could it be leveraged for things like asset resources?

rsek avatar Jan 19 '22 05:01 rsek

this one's next on my list, i think - follows some similar patterns to XenotropicDev/TheOracle2#33, so i'll probably branch it from that.

rsek avatar Jan 24 '22 15:01 rsek