RPGGO Creator Tutorial
  • Welcome to RPGGO Creator Handbook
  • Start Here
    • 🎨Getting Started
    • 🏀Things You Can Do as a Creator
  • Creator Tutorial
    • 🟢Quick Start
    • 🔮Creator Program
    • Understand the System
    • Build - Map - 2D Pixel AI Town
    • Build - Game
      • ⚒️Topic 1: How to Let AI Output Key Messages and Items In Game
      • ⚒️Topic 2: Write Powerful Lores
      • ⚒️Topic 3: Make Choice Selection / Q&A Based Game with Strict Order
      • ⚒️Topic 4: Make Dungeon Game with Dice Roll
      • ⚒️Topic 5: Value Based Game & Goal System
      • ⚒️Topic 6: What You Can Do with Goal and Chapter
      • ⚒️Topic 7: Add Customized Images in Prologue and Endings
    • Build - Character
    • Build - Module
    • Copilot - Create with AI
    • 💁Tip 1. Guide the Basis of the Content with Opening Line
    • 💁Tip 2. Format the Responses
    • 💁Tip 3. Talk to AI in Ways It Understands
    • 💁Tip 4. Generate Great Images for Avatar and Poster
    • 💁Tip 5: Build a Bot as Tool
    • ❓Frequently Asked Questions
  • Game Creator Log
    • 🕵️Which One is the Spy
    • 🐙Squid Game
    • 🗺️2D Pixel AI Town - After the story, MLP 2D game Dev blog
  • Import Data from Other Products
    • From Character Card - Silly Tavern / Chub.ai
    • ❓FAQ for Import
Powered by GitBook
On this page
  • Let AI output key messages when the player have completed something.
  • Step 1. Let AI know when these messages should be trigger
  • Step 2. Design All Messages
  • Let AI give items to the player when the player have completed something.
  • Step 1. Let AI know why it needs to know these items, and what cases can be triggered / acknowledged
  • Step 2. Design all items and results in a Table or like a Dictionary
  • Step 3. Let AI output in a solid logic that can trigger a code / action
  • Step 4. Add something that might help to form the result
  • TIPS: Advanced, triggering a system / action / flag
  • TIPS: Limited the count of Items if you only what it to use once.
  1. Creator Tutorial
  2. Build - Game

Topic 1: How to Let AI Output Key Messages and Items In Game

here are some suggestions from us and we believe you can take a try in the edit page to let AI listen to the command.

Before we move on to the details. Make sure you know which NPC you want to output the message:

  • If it is not the NPC that the player directly talking to, open the Group Chat and Share Memory Button in Game Intro page, so that they can know the player has completed the task by judging the game progress.

Some creators want the AI to listen to their fixed rules setup in their design. AI is not a perfect technology for logical follow (I would say rule based is much better on this), but here we want to talk about some tricks on these:

Let AI output key messages when the player have completed something.

This can be done by directly using natural language to tell the AI in Lores (see more detail about Lores in this section Topic 2: Write Powerful Lores)

Step 1. Let AI know when these messages should be trigger

Write reasonable and appropriate logics in the worldview.

Describe in natural language instead of code logic such as if...then... condition

When the player request for a key, you shall mention that: XXXX

When the player learnt that the culprit is XXX, you shall mention that:

Count your turn of response, and when you conduct the magic spell in the third round, YOU MUST EXACTLY OUTPUT THIS: XXXXXX

Step 2. Design All Messages

Design the series of messages you want to be responded to the player by the NPC, and fill it in spaces in the above sentence. You might incorporate them into brackets like this: [XXXXX]

Sometimes explicit and exact content are designed to trigger the PASS or FAIL in the game, otherwise its used to trigger an action. Move to the next section and see what this means.

Let AI give items to the player when the player have completed something.

You need to write 4 part of contents:

What does the NPC have & what does the NPC know

  • there might be some cases that your player will get off the topic, and to make sure you want the NPC react to the items that exactly designed by you in the game,

How it can be triggered

How it can be used once triggered

How to improve the output content (just tell AI what mistakes it makes and try to avoid)

Step 1. Let AI know why it needs to know these items, and what cases can be triggered / acknowledged

Step 2. Design all items and results in a Table or like a Dictionary

Design the series of items that NPC knows (which are those you want the NPC to use or give to the Player). Here are some examples:

Note Book: this is the James' diary, listing all the schedule of Mary since he became the butler of this manor.

Red Box: the box that is locked. The player need to find a key to open the box. Let the player know how the box looks like by describing it in your own way.

Award with 100 coins in a bag

Step 3. Let AI output in a solid logic that can trigger a code / action

Step 4. Add something that might help to form the result

TIPS: Advanced, triggering a system / action / flag

This is more like writing a code logic because you need a consistent output:

  • If you are giving an item or something to the player, you shall:

    • Emphasize the format and content that consistent with the other code you are about to trigger

    • List some examples

    • Include the condition of when to output the content in the exact format

    • last but not least... If it fails to do anything, you shall add additional content at the end of your input.

  • Example of a content in Lore

    • Important! When giving REPLACE_WITH_THE_NAME_SET to the player, please follow this strict format: 
      Use metadata tagging and a structured annotation naming system for your REPLACE_WITH_THE_NAME_SET. 
      Always enclose the REPLACE_WITH_THE_NAME_SET content in outer square brackets: [[ ... ]]. 
      Inside the square brackets, use the format reward: <NAME>, where: 
      reward is the key 
      <NAME> is the value, such as an_axe (underscores is absolutely necessary). 
      Do not add spaces before or after the colon (:). 
      Examples: 
       - Here's your [[REPLACE_WITH_THE_NAME_SET: NAME]] 
       - Here's your [[REPLACE_WITH_THE_NAME_SET: name]] 
       - Here's your [[REPLACE_WITH_THE_NAME_SET: NAME]] 
      Ensure that you strictly follow the format with no deviations, including the use of underscores.

TIPS: Limited the count of Items if you only what it to use once.

Let the NPC, who has the item, or anyone who you want it to know the existence of the item, knows that the total number of items are limited by telling the AI with detailed numerical values.

For example:

  • If you want to limit the total of non-consumable items, tell AI this.

There are only 3 keys in the dungeon. You are the only one holding the blue key. You don't know who is holder the other two keys.

  • If you only want the item be used / be consumed once, tell AI this:

There is only one prize, and once it is given, you need to count down -1. You shall not give it to another person.

PreviousBuild - GameNextTopic 2: Write Powerful Lores

Last updated 4 months ago

⚒️