SYSTEM NOTICE

Auto translation by AI. Be sure, accuracy, nuances and authorial intent may not be fully reflected.
見出し画像

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

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

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.

With this, it will act as a guard NPC.

Playing with Guard A

Ironclad...!


Before this, I had introduced myself as 'I am the King'...


Wait... it turned into something like a government office counter...

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 B's prompt

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.

They are being iron-clad with such a gentle tone...

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

Without me realizing it, the scenario is gaining depth...

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

They are talking like a staff member, but it was Guard B.

Let's try to break through.

I tried to break through in a tabletop RPG style, just in case.

I tried a meta-play approach to get the conditions out of them, but...

Extracting the settings

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

They have already forgotten about the 'Token of Erdrick'.

Having them roll the dice

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

ChatGPT pretending to roll the dice.

They are performing normal operations, at least.

I thought they had forgotten, but they remembered properly.

I chuckled a bit at their honest remark, 'That is exceptional'.

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.

Also, what I felt after interacting with it is,

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.

Puella Magi Madoka Magica, space background, magic circle, shooting arrows

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

Generated with Nijijourney

In the production process, there were also some guards who looked even more intense.


This is way too heroic
This is the rough draft
The hand and weapon on the bottom right are no good
The bottom left has a nice flavor
And that's how I was born

いいなと思ったら応援しよう!

白井暁彦 aka しらいはかせ チップとデール!チップがデール!ありがとうございましたー!!