# Game rules

> The bars (health, energy…) and text lines on the players' cards: how many show up, their names, their colors and who sees the numbers. And where the dice numbers come from.

Page: https://docs.rpgdesk.com/en/mestres/regras-de-jogo/

The players’ cards, in **Participants**, show **bars** (health, mana, energy…) and free-text **lines** (a condition, a position). The **game rules** say how many show up and how. They also say where the dice numbers come from. They are in **Room settings → Game rules**.

*Screenshot:* The Game rules page: two bars, Health (red) and Energy (blue), with the numbers for everyone, as value and maximum, and one line called Condition.

## The dice

Shows up when the RPG Desk server has a random.org key. **Dice numbers** applies to every roll in the room, by anyone: in the chat, in macros and in sheets.

- **True random (random.org)** (the default): the numbers come from atmospheric noise, and a small **R** shows next to everyone’s **Chat** tab. If random.org does not answer, the roll comes from the program and the **R** is struck through until the next roll that comes from it.
- **Generated by the program**: the server draws them, with no **R**.

## The bars

- **How many bars**: from 0 to 4.

- For each bar:

  - the **color** (the little square). **Use the plugin’s color** goes back to the color the sheet sends;
  - the **name** (“Health”);
  - **who sees the numbers**: **Numbers: everyone**, or **Numbers: GMs and owner**. The others see the bar, but not “18/22”;
  - **how to show the numbers**: **As value / max** (“18/22”) or **As percentage** (“82%”).

## The lines

- **How many lines**: from 0 to 4.
- Each line’s **name** shows up when someone edits the card.

In the unsaved changes bar at the bottom, click **Save**. The chat tells everyone the rules changed, and the cards change right away.

*Screenshot:* The cards with each character's two bars and the Poisoned line on Bram's card.

## Who fills in the bars

- **The sheet:** most sheet plugins fill in their owner’s card bars by themselves, when the sheet is the owner’s main character. In the RPG Desk Basic Sheet, bar 1 is health and bar 2 is energy.
- **The player:** double-click one of their bars or lines, or **Card bars and lines…** in their name’s menu. See [Participants](https://docs.rpgdesk.com/en/mesa/participantes/#bars-and-lines).
- **The game master:** everyone’s bars and lines, the same way.

*Screenshot:* The Davi's card dialog, with the values and maximums of Health and Energy and the card line filled in with Poisoned.

> **The chat notices**
>
> When a bar changes, everyone sees it in the chat, for example “Davi’s Health: -4”. For whoever cannot see that bar’s numbers, the notice is just “-?”. If you do not want these notices, turn them off in **Settings → Chat → Post a chat notice when the players’ bars change**.

A room with no saved rules shows 4 bars and 4 lines, with the numbers for everyone, and uses random.org when the server has the key.
