Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Chat Gpt Caller - ChatGptCaller.js
Plugin desc : ChatGPT calling plugin
License : MIT License
Author : Triacontane
Website : https://triacontane.blogspot.com
Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/ChatGptCaller.js
Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/ChatGptCaller.js
File name : ChatGptCaller.js
Help of plugin :
@target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/ChatGptCaller.js @plugindesc ChatGPT calling plugin @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MZ-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- ChatGptCaller.js Calls ChatGPT and sends a question. The question is executed asynchronously, and the specified switch is turned ON when the result is returned. The answer is stored in the file [save/gptAnswer.rmmzsave] and remains even after the game ends. You can retrieve the answer using the control character ¥ans[id] or the following script: $gameTemp.findGptAnswer(id); The API key is entered as a parameter, so please be careful when publishing your game. The API is generally only called during development, and the saved answers are intended to be used after publication. This plugin requires the base plugin ”PluginCommonBase.js.” ”PluginCommonBase.js” is located in the following folder under the RPG Maker MZ installation folder. dlc/BasicResources/plugins/official Terms of Use: You may modify and redistribute this plugin without permission from the author, and there are no restrictions on its use (commercial, 18+, etc.). This plugin is now yours. @param apiKey @text API Key @desc Please enter your ChatGPT API key. @param organizationId @text Organization ID @desc Enter your ChatGPT organization ID if necessary. @param responseTrigger @text Answer receiving trigger @desc Specify the switch ID that will be turned ON when a response is received. @type switch @default 0 @param responseSelfTrigger @text Self-triggered response reception @desc Please specify the self switch that will be turned ON when a reply is received. If not specified, the setting of the plugin parameter will be used. @type select @option none @value @option A @value A @option B @value B @option C @value C @option D @value D @param model @text Model @desc Please specify the ChatGPT model. @default gpt-3.5-turbo @param requestTemplate @text Request Template @desc This is a template for requests to add weapons or enemy characters. No editing is required. @type multiline_string @default Please come up with one %2 like %1. Please return the result in RPG Maker MZ database json format. @command CALL_GPT_QUESTION @text Question call @desc Ask ChatGPT a question and store the results in a file. @arg questionId @text Question ID @desc This is an arbitrary identifier that is unique for each question. Answer data is saved using this ID as a key. @default 1 @arg questionText @text Question @desc Please specify the question text. @type multiline_string @arg responseTrigger @text Answer receiving trigger @desc Specify the switch ID that will be turned ON when a response is received. If not specified, the setting in the plugin parameter will be used. @type switch @default 0 @arg responseSelfTrigger @text Self-triggered response reception @desc Please specify the self-switch that will be turned ON when a reply is received. If not specified, the setting of the plugin parameter will be used. @type select @option none @value @option A @value A @option B @value B @option C @value C @option D @value D @arg temperature @text Sampling Temperature @desc Please specify the sampling temperature. Please specify a value between 0 and 200. The higher the value, the more random the answers will be. @type number @default 70 @max 200 @arg wait @text Wait until completion @desc The event execution will wait until the API result is returned. @type boolean @default false