# Show a character

> Add a character, show a sprite and write dialogue

Now bring in Shiori, who looks after the library, and let her talk.

## Add a character

1. Click "Characters" at the top of the screen, then click "Add a character."
2. Type "Shiori" in both "Display name" and "Character ID," and press Enter. The display name is the name shown in the game as the speaker, and the character ID is the name you use to refer to Shiori in the script. (If you leave the character ID empty, it is made from the display name in lowercase, `shiori`.)

![The Characters screen. Click "Add a character."](/shots/en/t4-cast-empty.webp)

## Add expressions (variants)

Click "Add a variant" and select all 5 images in the `chara/shiori` folder of the assets. The file names (normal, smile, surprised, think, trouble) become the names of the variants.

![The character has been added. Click "Add a variant."](/shots/en/t4-cast-added.webp)

![Five variants added.](/shots/en/t4-variants.webp)

## Show the sprite

1. Go back to "Script" and select the second narration line.
2. Double-click "Sprite" in the parts panel.
3. In the panel on the right, set `who` to "Shiori." `variant` then shows Shiori's expressions as faces; click "normal."

![Add the Sprite part, choose Shiori for who, and click normal in the variant faces.](/shots/en/t4-chara-part.webp)

## Write dialogue

Double-click "Dialogue" in the parts panel. A line with Shiori's name and a pair of quotation marks (`Shiori ""`) is added, ready for you to type inside the quotation marks. Type the line and press ⌘Enter. To change the speaker, click the name on the line and choose from the list.

![Double-click the Dialogue part and type the line inside the quotation marks.](/shots/en/t4-say.webp)

Add two more lines of dialogue the same way.

## Change the expression

Click the face to the left of the second line, "I'm Shiori. …," to show a list of Shiori's expressions. Click "smile," and a line that changes her expression is added before that line, so Shiori smiles.

![Click the face on the line and choose smile from the expressions.](/shots/en/t4-face.webp)

![The expression changed to smile.](/shots/en/t4-smile.webp)

![The game.](/shots/en/g4-smile.webp)

## In code

```
@chara Shiori normal
Shiori "Hello. Is this your first time in the library?"
@chara Shiori smile
Shiori "I'm Shiori. I help keep the books in order here."
Shiori "Would you like to borrow a book before you go?"
```

`@chara` shows a sprite or changes its expression. Add `at=left` to have the character stand on the left. A line made of the speaker's name followed by text in quotation marks is dialogue. (In Japanese, dialogue is written with the corner brackets 「」 instead.)
