Bring dynamic NPC conversations to your RPG Maker MZ project with NPC-GPT, the complete plugin + template combo that connects in-game events to AI-driven dialogue—no scripting required.

Easily prompt your players with fully customizable text-input windows, send their messages to your backend (REST-ready), and display rich, paginated responses using the built-in response window commands.

Join our Discord 

✅ Key Features

  • 💬 Prompt players anywhere: fire the userInput command from any event to gather text, limit word counts, and route the result into switches or variables.
  • 🎨 Totally skinnable UI: pick background style (window/dim/transparent), rows, width, position, face portraits, button labels, placeholder text, and more.
  • 🧠 Ready for AI pipelines: ships with commands that package input/output into JSON, making it easy to hit your own server (or NPC-GPT cloud) and bring responses back into events.
  • 🪄 Smart response windows: the new displayResponse command shows multi-page replies, supports actor faces, name boxes, and shares the same styling controls as the input window.
  • ⚙️ Event-friendly flow: interpreter wait modes are handled for you—events resume only after players finish typing, confirm responses, or close the window.
  • 🧱 Built for extension: exposes shared helper objects so you can hook in logging, analytics, cooldowns, or other custom systems with minimal effort.

📦 What’s Inside

  • 🧪 A complete browser-playable template project (also downloadable) showcasing live input + response chains.
  • 📁 NPC-GPT-Plugin.js ready to drop in your own projects.
  • 📑 Example events demonstrating prompt → fetch → response handling, variable storage, and branching control flow.

🛠 How to Use

  1. Download and extract the template project (try it online, then grab the files).
  2. Copy js/plugins/NPC-GPT-Plugin.js into your project’s js/plugins/ folder.
  3. Add any sample assets you want (faces, windowskins, etc.) to the standard img/ directories.
  4. In the RPG Maker MZ editor:
    • Open Plugin Manager → add NPC-GPT-Plugin.
    • Review the default parameters (API key variable, response storage, etc.).
    • Import the example common events or recreate your own using the plugin commands below.
  5. Create a free account at gamertoolstudio.com and get an API key
  6. Add the API Key to its respective Plugin Parameter
  7. Playtest: trigger userInput, hit your server, show the displayResponse, and continue your event logic once players confirm.

🧩 Plugin Parameters

ParameterDescription
API KeyYour personal API KEY from gamertoolstudio.com
API KeyGame variable storing your API key (or fallback static key)
GPT Response VariableStores serialized chat history (JSON string)

⚙️ Plugin Commands

userInput

prompt the player for text using a fully configurable input window. Supports background style, size, position, rows, placeholder, confirm/cancel labels, word caps, actor face/name boxes, and variable IDs for storing input.

ArgumentDescription
windowPositionPosition of the window (top, middle, bottom).
windowWidthCustom width in pixels; 0 = full width.
windowRowsVisible rows for the input field.
backgroundBackground skin (window, dim, transparent).
placeholderTextHint text shown when the input is empty.
inputVariableVariable ID where the player’s input is stored.
maxInputWordsMaximum number of words the player can enter (0 = unlimited).
actorFaceImageFace graphic (img/faces) to show beside the window.
actorFaceImageIndexFace index (0–7) within the chosen face graphic.
actorNameOptional speaker name shown above the window.
closeEventButtonsyes/no to show confirm + cancel buttons.
confirmButtonTextText label for the confirm button.
cancelButtonTextText label for the cancel button.

sendRequest

Shows how to package the user’s input, chat history, and character context into JSON and send it to your API endpoint.

ArgumentDescription
historyVariableIdVariable ID containing chat history (JSON string).
contextVariableIdVariable ID storing the character context payload.
inputVariableVariable ID holding the latest user input text.
responseStatusVariableVariable ID updated to track success/failure.
maxOutputWordsNumeric hint you can forward to your backend (0 = ignore).

characterContext

Stores character traits/background info in variables to seed requests (e.g. personality, knowledge, location).

ArgumentDescription
nameCharacter name to store in context.
ageCharacter age.
traitsPersonality traits string.
dialogueStyleSuggested speaking style for the AI.
backgroundStoryBackstory text.
eventsKnowledgeJSON string describing what the character knows.
environmentJSON string describing the current environment.
interestsInterests string (comma-separated or JSON).
friendlinessenemy, low, regular, high, best friend.
contextVariableIdVariable ID where the compiled context will be stored.

displayResponse

Render stored text in a matching response window. Shares styling controls with the input window, supports faces/name boxes, handles pagination (OK to advance, Cancel to exit), and resumes the calling event automatically.

ArgumentDescription
eventIdEvent to resume after the window closes (default: current event).
eventPageIdPage to resume when the window closes (default: 0).
actorImageFace image (img/faces) displayed in the response window.
actorImageIndexIndex (0–7) within the face image.
actorNameName label shown above the response window.
wrapTextLengthHard wrap length (character count); 0 = wrap by width.
windowPositionPosition of the response window (top, middle, bottom).
windowRowsVisible rows per page before pagination.
windowWidthCustom width; 0 = full width.
backgroundResponse window skin (window, dim, transparent).
responseStatusVariableVariable reset to 0 after the window closes.

📥 Installation Recap

  1. Add NPC-GPT-Plugin.js to js/plugins/.
  2. Configure plugin parameters (API/key variables, defaults, etc.).
  3. Use the template events—or build your own—to gather input, send it to your backend, store the response, and call displayResponse.
  4. Customize backgrounds, sizes, labels, and sounds in Plugin Parameters.

Compatibility

RPG Maker MZ

Terms of Use

  • Usable in free and commercial games.
  • Credit Gamer Tool Studio in your project.
  • You may edit the plugin for your own use (do not rename the file).
  • Redistribution of the plugin itself is not allowed.
  • Do not extract code for your own released plugins.

Ready to give your NPCs real conversations? Drop in the plugin, hook up your AI backend, and let players chat their way through your world.

Updated 1 day ago
StatusReleased
CategoryTool
PlatformsHTML5
Rating
Rated 1.0 out of 5 stars
(1 total ratings)
AuthorGamer Tool Studio
GenreInteractive Fiction, Role Playing, Simulation, Visual Novel
Made withRPG Maker
Tagsartificial-intelligence, Character Customization, Characters, Narrative, npc, RPG Maker

Purchase

Buy Now$3.99 USD or more

In order to download this tool you must purchase it at or above the minimum price of $3.99 USD. You will get access to the following files:

NPC-GPT Project.zip 94 MB

Development log

Comments

Log in with itch.io to leave a comment.

I can't log in or register on your website, and my plugin API key is invalid. What happened?

were you able to register for the first time and generate a new api key?

Hello, I’ve purchased your plugin, but I’m currently facing a major issue: I can’t input Chinese during conversations with NPCs. Do you have any solutions for this problem?

yes. Will upload a new version of the plugin with that feature 

Fake

??? What’s fake?

I cannot delete my account on your website, and the tokens are being counted in a fake way, meaning it is not showing any text of any kind, the NPC just glitches. I am not on Discord. 

you’re right. I still have to add the feature to delete accounts but the system is pay per use so we don’t charge anything unless you consume tokens.


regarding all the other issues, would be useful to check the implementation in your project. Discord is useful for that but you can also reach out through email  and we can figure it out over there: gamertoolstudio@gmail.com

(+1)

Hi, how is the update of the MV plugin?

MV version is now live: https://gamertoolstudio.itch.io/chat-gpt-plugin-rpg-maker-mv

(+1)

Any update on the MV plugin? :)

(+1)

Not yet unfortunately. We have been working on other plugins and our newest demo but we're seeing the demand increasing so we'll try to have it ready by the end of the year

sounds great!

MV version is now live: https://gamertoolstudio.itch.io/chat-gpt-plugin-rpg-maker-mv

Deleted 163 days ago
(+1)

Is the MV version still in development 

Yes. MV version still in development but shouldn't take long to come out. Will update this page once it's live.

MV version is now live: https://gamertoolstudio.itch.io/chat-gpt-plugin-rpg-maker-mv

Could you please provide an example RPG MAKER MZ Project File that has the multiple pages setup for a template? 

Sure will do that in an instant but you can check the pages setup in this page of our documentation as well:  https://gamertoolstudio.gitbook.io/npc-gpt/plugin-user-guide/example-implementat...