Closed asacolips closed 8 months ago
In GitLab by @mclemente on Dec 3, 2023, 18:34
Is there any difference from using a top/left attribute to count tokens and then having all moves set to Prompt?
Speaking in practical terms only. I can understand having an empty space on the sheet isn't desirable, so at least adding a non-stat thing (clock? counter?) to that section could be interesting.
If there is a difference:
Do you have anything already written or just a plan? I'm asking because there are some changes coming in the near future. I'm in the process of updating the system to use Data Models, so beware with adding new actor system data (as in, keep it under stats
).
I suggest you add an if (v.stats === 'tokens')
before this check for stats and changing the current check to else if
, and then set the TOML with stats = tokens
.
Besides all that, how are you planning on handling the use of tokens for rolls, though?
In GitLab by @s.paquay1 on Dec 4, 2023, 01:12
Not much difference. Not all move will be set to prompt, some move don't use token (no roll at all, or give token)
I've written nothing yet, just a plan. I'll keep it under stat. Maybe I could wait until you finish the migration, it's not really urgent. Your suggestion seems perfectly fine for me. ;-)
With this approach, a player should define a number of token to spend on a roll, capped (min/max & max available token), token spend should be deduced directly from available token. I'll surely use a dialog to ask user the number of token to spend on a roll.
I'll check the code, make a few tests and come back to you with a bit more details in a few days.
In GitLab by @mclemente on Dec 4, 2023, 16:44
Maybe I could wait until you finish the migration
The change won't affect something like that as long as it doesn't change the template.json, so feel free to make your changes.
I'll surely use a dialog to ask user the number of token to spend on a roll.
There is a Roll dialog handler since 0.7.3, so you could add your changes to configureDialog
and _onDialogSubmit
.
You could get away with minimal changes by copying the prompt's input on roll-dialog.html with a different description and changing the input to a number input with min/max values, just keep its name as prompt
and it'll be handled here.
You would need to set up the rollType
properly around here and here on item.js, and send the actor's min/max with it.
In GitLab by @s.paquay1 on Jan 24, 2024, 07:40
Hi there,
I've submitted a MR with these changes, it works fine with following stats in TOML: [character.stats] token = true label = "Darkness token" default = 0 max = 5
In GitLab by @Asacolips on Feb 5, 2024, 08:42
mentioned in commit 1f9d8822301a2a9b3900267d4b3293b862e4fec5
In GitLab by @Asacolips on Feb 11, 2024, 19:03
mentioned in commit 14bb53734ecd1b6ee3d3640e91b39099cd7c0681
In GitLab by @s.paquay1 on Dec 3, 2023, 12:43
Some PbtA doesn't use stats, like Libreté or Apocalypse Keys. Instead, they use a pool of token and the player choose how many they spend on a roll.
I can propose an alternative TOML config for these systems, using the stats area to display other fields and handle check appropriately.
I'll post a Merge Request if it's ok when it'll be done.