Skip to main content

First Script

Writing Your First Message

  1. Create a new script file:
    Create a new file named my_first_chapter.yarn.

  2. Create your first node:
    In this new file, write your first Yarn node:

    title: my_first_node
    ---
    Hello, I’m your first message
    -> And I’m your first button

    I can help you write stories!

    ===
  3. Save the file:
    Once your script is ready, save it.

  4. Link your new node:

    • Open the start.yarn file.
    • Link your new node by adding <<jump my_first_node>> where indicated in the comment:
    // Jump to your start node
    <<jump my_first_node>>
    ===

Creating a Bot on Telegram

To create a bot, follow these steps:

  1. Open Telegram and search for BotFather.
  2. Start a chat with BotFather by sending /start.
  3. Use the /newbot command to create a new bot.
  4. Follow the instructions to choose a name and username for your bot (the username must end with "bot").
  5. Once the bot is created, BotFather will provide you with a token. Save this token; you'll need it later.

Uploading Your Story

  1. Go to t-Plot Builder.
  2. Add your new build by clicking Add build.
  3. (Optional) In the Settings tab, enter your bot’s token and username (without @ or https://t.me/). For example, if your bot’s username is @my_super_cool_bot, enter my_super_cool_bot.
  4. You can test your story by navigating to the Publish tab and clicking Run new Player.

Launching the Bot

If you’ve entered your bot’s token and username, go to the Publish tab and click Start Bot.