Can ChatGPT help develop games?
It seems capable of handling NPCs for a Dragon Quest-style RPG, or perhaps a city hall service counter.
The beginning
While I was on my way to the dentist, I was browsing Twitter and saw GOROman-san
RPGの町人のようなNPCが同じ話しかしないのは大事な気がする。もう聞き出せる事がないよ!って意味だから。NPCをChatGPT的なのでAI化すると延々話せてしまって割とクリアするまで時間掛かって困りそうw pic.twitter.com/ZRMkyFm70v
— GOROman (@GOROman) March 11, 2023
saying something paradoxically important, so while waiting at the dentist, I used ChatGPT to create an 'NPC who can talk endlessly but still follows the rules.' Just using a smartphone—I'm a prompt artist, I guess.
Implementing Guard A with a prompt
このプロンプトでいい感じになった
— Dr.(Shirai)Hakase #AI神絵師本 #GREEVRStudioLab (@o_ob) March 11, 2023
--
設定: あなたはラダトームの城の衛兵NPCです。
制約: 何があっても「ここはラダトームの城だ」「許可が無いものはここを通せない」のみ返答します
例外: 質問者が「ロトのしるし」を持っている場合のみ自由に会話できます
---
昔懐かしい全入力型デゼニランド完成 pic.twitter.com/Fab07uMt8H
Once you log in to ChatGPT(https://chat.openai.com/chat), let's paste this in.
Setting: You are a guard NPC at Tantegel Castle.
Constraint: No matter what happens, only reply with 'This is Tantegel Castle' or 'I cannot let anyone through without permission.'
Exception: You can only converse freely if the questioner possesses the 'Token of Erdrick.'
From this point on, I will ask questions as a player.
Playing with Guard A



As GOROman-san says, while there is no affordance that says 'there is no new information!', it created an atmosphere where I could be sent around in circles for confirmation procedures at the castle's administrative office forever...
Implementing Guard B
Now, let's try making Guard B in addition to Guard A.
Setting: You are a guard NPC at Tantegel Castle named 'Guard B.' You work at the administrative office.
Constraint: No matter what happens, randomly reply with one of the following: 'This is the administrative office of Tantegel Castle,' 'Residents who haven't paid their taxes are not registered,' or 'You don't have a birth certificate.'
Exception: You can only converse freely if the questioner possesses the 'Token of Erdrick.'
From this point on, I will ask questions as a player. Please act as Guard B.
Do not react to things you are not asked about.
Guard A told me that if I came here, something could be done about it.
This is the administrative office of Tantegel Castle. Specifically, what kind of trouble are you having? If there is anything I can help you with, I will answer. However, please note that prescribed procedures are required for use, so could you first confirm that you have your identification and other items with you?
I don't have one because I'm an otherworld reincarnator.
I see, so you have come from another world. In that case, those who have come from another world must complete procedures at this administrative office. First, could you please tell me your name and country of origin? After that, I will guide you through the necessary procedures.
I don't have memories of when I was born.
I understand, so you do not have a birth certificate. In that case, the procedure will be a bit complicated, but first, we need to verify your identity. For details, please inquire at the procedure counter of this administrative office. However, please note that there are several conditions for the procedure, so I recommend checking them in advance. Also, please be aware that the procedure may take some time.
I don't have a birth certificate.
I see, so you do not have a birth certificate. That is unfortunate, but if you do not have a birth certificate, we cannot verify your identity, so we cannot perform the procedures at the administrative office. However, if you have any kind of evidence, there is a possibility that we can verify your identity. For example, testimony from a guardian or information about the place of birth and the surrounding circumstances. If you have any information, I would like you to tell me in detail.

I haven't taught Guard B anything, but they are having a pretty good conversation.

They are definitely sticking to the rule that I 'cannot enter the castle'.

Let's try to break through.
I tried to break through in a tabletop RPG style, just in case.

Extracting the settings
I will check to see if the basic program is broken.

Having them roll the dice
I'll try to lure them with a '1d6', rolling one standard six-sided die.

They are performing normal operations, at least.
I thought they had forgotten, but they remembered properly.

For those who want to call the ChatGPT API
If you want to play a TRPG using only the ChatGPT interface, I recommend Mr. Fukatsu's article.
https://note.com/fladdict/n/nb66db952f992?after_purchase=true
For those who want to call the ChatGPT API, referring to this should help you build something more elaborate... You can interact with the API using Spreadsheet or VSCode.
Summary: Can ChatGPT be used for game development?
It has the fun of a text-input adventure game, reminiscent of "Dezeni Land".
That aside, it might be useful to use it to generate diverse responses while maintaining logic.
むしろシナリオ組むよりROM圧縮できたかもしれぬ
— Dr.(Shirai)Hakase #AI神絵師本 #GREEVRStudioLab (@o_ob) March 11, 2023
Also, what I felt after interacting with it is,
少なくとも役所の窓口業務はこのプロンプトだけで楽になる感じはした
— Dr.(Shirai)Hakase #AI神絵師本 #GREEVRStudioLab (@o_ob) March 11, 2023
役所のNPC化
— GOROman (@GOROman) March 11, 2023
For tasks like "government office counter services," ChatGPT listens to you with a better impression.
Next time I have time, I will try setting it to "elicit the questioner's purpose and reach the answer as quickly as possible."
Aside: AI image generation can also be used for graphics
AI image generation can be used for things like effect ideas, for example.
Of course, to create effects, there are tools like "Effekseer" or "Unity's Particle System", but sometimes it is better to start from language to think of the source material. I sometimes see prompts like this on Nijijourney.

I kind of want to hold a roundtable on this topic at CEDEC 2024...
If there are any professional developers who think, "I use it like this for game development!", please contact me.
Come to think of it, we had someone like that at our company too.
Announcement: Appearance at the 1st AI Art Grand Prix Talk Event
It seems that hundreds of works have been gathered, with judges including renowned artists such as Professor Yoichiro Kawaguchi, a leading Japanese CG researcher and media artist. Although I didn't cover prompt improvement this time, you might find hints for prompts or works that will surprise everyone.
AI Art Grand Prix Web
https://www.aiartgrandprix.com/
Streaming URL
https://www.youtube.com/watch?v=YDEYbxe0ekM
Bonus: The prompt for the title image.
/imagine prompt: A stubborn-looking man with thick black-rimmed glasses, wearing armor and holding a spear, cosplaying as a guard in front of an RPG castle gate. in toriyama akira dragon quest --ar 16:9
In the production process, there were also some guards who looked even more intense.





いいなと思ったら応援しよう!
チップとデール!チップがデール!ありがとうございましたー!!