赞 | 400 |
VIP | 0 |
好人卡 | 24 |
积分 | 250 |
经验 | 45372 |
最后登录 | 2024-7-2 |
在线时间 | 3339 小时 |
Lv5.捕梦者 (版主)
- 梦石
- 1
- 星屑
- 23994
- 在线时间
- 3339 小时
- 注册时间
- 2011-7-8
- 帖子
- 3926
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 guoxiaomi 于 2023-4-17 01:22 编辑
所谓事件其实就是一些特殊的指令,如果能让AI根据故事自动生成指令,动动嘴就能做游戏的日子就快到了
我做了个简单的测试(英语可能不太标准但是意思到了就行),首先我让AI了解这个任务是生成事件指令,然后告诉它我会给一些例子:
接下来是第一个例子,声明一个地图。我其实想让它只输出一个数组,但是它似乎理解错了,输出了一个完整的json字典形式,不过问题不大,将错就错吧。
然后是加入角色、对话和施展魔法:
最后我夸奖了它,然后给了它一个故事,让它生成对应的指令。
看上去效果不错,最终生成的指令如下:
[ { "command": "map", "map_name": "home", "width": 20, "height": 15 }, { "command": "join", "character_name": "Andy", "x": 10, "y": 8 }, { "command": "chat", "character_name": "Andy", "message": "Huh, what happened here?" }, { "command": "join", "character_name": "Dore", "x": 12, "y": 8 }, { "command": "chat", "character_name": "Dore", "message": "My name is Dore, please help me!" }, { "command": "magic", "caster_name": "Andy", "magic_name": "heal" }, { "command": "chat", "character_name": "Dore", "message": "Wow, I feel so much better now, thank you!" }, { "command": "chat", "character_name": "Andy", "message": "No problem, do you want to join me on an adventure?" }, { "command": "chat", "character_name": "Dore", "message": "Sure, I would love to!" } ]
[
{
"command": "map",
"map_name": "home",
"width": 20,
"height": 15
},
{
"command": "join",
"character_name": "Andy",
"x": 10,
"y": 8
},
{
"command": "chat",
"character_name": "Andy",
"message": "Huh, what happened here?"
},
{
"command": "join",
"character_name": "Dore",
"x": 12,
"y": 8
},
{
"command": "chat",
"character_name": "Dore",
"message": "My name is Dore, please help me!"
},
{
"command": "magic",
"caster_name": "Andy",
"magic_name": "heal"
},
{
"command": "chat",
"character_name": "Dore",
"message": "Wow, I feel so much better now, thank you!"
},
{
"command": "chat",
"character_name": "Andy",
"message": "No problem, do you want to join me on an adventure?"
},
{
"command": "chat",
"character_name": "Dore",
"message": "Sure, I would love to!"
}
]
RM系列内嵌一个GPT指日可待了,嘿嘿 |
评分
-
查看全部评分
|