Trilobytes MZ: Inworld Integration

Inworld Integration v1.00
Trilobytes by Trihan
​

Introduction
Inworld is a fascinating emerging technology aiming to provide AI-driven NPCs for gaming and training. Following a post on the rmweb forums asking about the possibility of integrating that with RPG Maker, I decided to create this plugin to do just that.

This is the free version, which supports the SimpleAPI method of messaging. It will retain session IDs for a short-term retention of conversation history, but it doesn't do any long-term storage. The premium version with more features will follow soon, including support for the node SDK which allows for things like sending triggers, which can activate goals and mutate character properties.

Features

  • Send a message to the NPC with full keyboard support.
  • Receive a response and display it as a message.
  • Automatic word wrap feature included.
  • Optional face graphic.
  • Style the input box with CSS if you wish!

Screenshots
inworld1.pngInworld2.pngInworld3.png

How to Use
Open your Plugin Manager, double click a blank space, select TLB_InworldIntegration_Free from the dropdown and have fun!

Plugin Commands / Script Calls

1. Open Dialog
Opens a dialog box for the player to enter what they would like to say to
the NPC. This supports full keyboard input. Thanks to biud436 for the
dialog code!

2. Display Response
Fetches the NPC's response from the Inworld server.

Arguments
Player Name: The name the NPC will know the player by, which they may
use in their reply.
Use Party Leader: The player will be known by the party leader's name.
Specify: The player will be known by a name specified in the command.
Specified Name: The name to use if "Specify" is chosen above.
Workspace: The workspace ID to which your character belongs.
Responding Character ID: The ID of the responding character.
Responding Character Name: The name that will be displayed for the
responding character.
Face Name: The face graphic to put in the response message (optional).
Face Index: The face index to use in the respones message (optional).

Demo
N/A

Download
Get it from itch.io

Special Thanks
biud436 for writing code for the input dialog

Terms and Credits
Copyright 2024 Trihan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Please credit "Trilobytes" or "Trihan" if using this plugin in your game. I would appreciate a copy of any finished game you create that uses it, but this is entirely at your discretion.
Congrats on releasing this. I'm not the most technical person in the world, but it sounded like quite the thing to pick up from a request.
lol, White Rabbit is a black cat.

Critter has some identity issues.
lol, White Rabbit is a black cat.

Critter has some identity issues.
Yeah, that was funny enough to me not to bother fixing it. I don't have a rabbit character and White Rabbit is a default demo character on the studio. 😛
Oh, this looks like it will be fun to play with. I wonder what I can do with some text parsing and a few conditionals.

Player clicks on mailbox.
TextBox- What do you want to do with the mailbox?
Player Input- Open mailbox
TextBox- Opening the small mailbox reveals a leaflet. What do you want to do now?
Player Input- Read leaflet
TextBox- (leaflet taken)
and well, you all know the rest.

Seriously, though, since most of what I do is educational and requires user input and text parsing, this definitely looks like something I'd want to use. Can't wait to download and test it out.
Oh, this looks like it will be fun to play with. I wonder what I can do with some text parsing and a few conditionals.

Player clicks on mailbox.
TextBox- What do you want to do with the mailbox?
Player Input- Open mailbox
TextBox- Opening the small mailbox reveals a leaflet. What do you want to do now?
Player Input- Read leaflet
TextBox- (leaflet taken)
and well, you all know the rest.

Seriously, though, since most of what I do is educational and requires user input and text parsing, this definitely looks like something I'd want to use. Can't wait to download and test it out.
Assuming I get the go-ahead from Inworld's legal team for the premium version, that will add the ability to send trigger activations to your NPC, which allows for you to provide parameters and also meet the goals you've set for them, so you could have a goal for, say, taking the leaflet, and have the NPC provide a specific reaction to that.
Amazing work Trihan! I'm so happy you took on the request 😀 I'll have a lot of fun with this!
Since someone's just asked for an update on this in the other thread about it: unfortunately it looks like I'm going to have to shelve this. Last time I went to update it, Inworld had switched to a subscription-only model and no longer has a free tier. As much as I'd love to continue working on this, I can't justify a subscription just for plugin development and I have no personal need for AI NPCs in my games, so unless someone is willing to buy access and continue where I left off, this is dead in the water.
Since someone's just asked for an update on this in the other thread about it: unfortunately it looks like I'm going to have to shelve this. Last time I went to update it, Inworld had switched to a subscription-only model and no longer has a free tier. As much as I'd love to continue working on this, I can't justify a subscription just for plugin development and I have no personal need for AI NPCs in my games, so unless someone is willing to buy access and continue where I left off, this is dead in the water.
I've been following your updates, but if you don't mind I would love to try finishing from where you left off, anyway you'd willing to share your files?

Original thread: https://forums.rpgmakerweb.com/threads/trilobytes-mz-inworld-integration.165355/