Creating an AI item¶
This Create an AI Item assembler enables you to create an AI item that facilitates interaction with an AI NPC. When you create this item, you can define a prompt associated with it. During gameplay, when you use the item, the prompt will be sent to the AI NPC, allowing the NPC to react or respond accordingly. This event fosters dynamic and interactive exchanges between the player and the AI NPC, enhancing the overall gameplay experience.
Prerequisite¶
-
YAHAHA Studio version 0.3.66 or later
-
An AI NPC, created using the Create an AI NPC assembler and placed in the scene Visual Studio Code is installed and integrated with your Studio.
Set up the assembler¶
-
Find the Create an AI Item assembler from Asset Library and open it in the scene.
-
In the assembler setup window, populate its basic settings:
a Select the model of this AI item: Choose an item model to trigger the AI Item event.b Set the name of this AI item: Enter a name for the item.c Enter the message for an AI character when using the item: Prepare a message for this AI item. When the player uses this item, this message will be sent to the AI character.d Select the AI NPC to receive the message: Choose an AI character to receive this message. In our example, we select the AI NPC we created, Mio. -
Click Assemble to start assembling this assembler. Once done, you can modify their properties in the Properties window.
Edit event-related properties¶
To edit the item, go to its Properties window on the right side. From there you can edit item information, pick-up mode, and message sent to a specific AI NPC. For more information on item configuration, see AiItem. To learn more about item creation and management, see Items and Inventory.
To edit the trigger event, update the properties located in the corresponding AiGameEventRelay pane. For more information on this component, see AiGameEventRelay.