Aller au contenu principal

Template

To begin with, you need to generate a new template. You can create an empty template using /generate or by using the form available right here.

Usage

/generate (statistics) (die type) (total) (character) (critical_success) (critical_failure) (skill)

  • name`: The name of the statistics, separated by commas. If a name contains a space, enclose it in quotation marks.
  • de: The type of dice to be rolled, which may include a formula.
  • total: The total number of points that players can distribute.
  • character: Make it compulsory to enter a character name.
  • critical_success`: The value considered a critical success.
  • critical_failure`: The value considered as a critical failure.
  • skill`: Add fields for skill or attack dice.

See the template examples in the template files here.

Note

Statistics and dice are optional:

  • Without statistics, you won't be able to use the /dbroll command.
  • Without dice, you won't be able to use /dbd.

Next steps

Once the template is ready, register it with :

Usage

/register [#channel] [file] (#user_chan) (#personality_private) (?update) (?delete_everything)

  • #channel: Channel in which the template will be sent (used for file creation).
  • [fichier] : JSON file created previously.
  • #user_chan: Channel where the files will be published.
  • #personnel_private: Channel for private files (see box below).
  • ?update: Updates all old character files, if any.
  • ?delete_all: Deletes all old character files, if any.
About private files

If the sheet is not marked as private but is published in a room to which users do not normally have access, they will still be able to view the sheet with the /display and /graph commands.

The embed will be pinned for easy access.

embed

danger

You need to re-register the template if you want to change the default channel for private and public sheets.
But the registered user doesn't need to be re-registered, as the channel and message ID are saved in the database.

To move all sheets to another channel, use the /export command.

TLDR

  1. Create the template using form or the /generate command.
  2. Save the template with /register.
  3. Create a player file by clicking on the “Register character” button.
  4. Fill in the character information and click on “Validate”.
  5. Modify command access rights if necessary.

For more information on field syntax: see dedicated page.