GPT实现开放式世界游戏实践【生化危机】

简介: GPT实现开放式世界游戏实践【生化危机】

最近开始研究如何基于GPT构建一个游戏引擎,于是先从简单的文字游戏开始探索。

从最简单的选择机制、故事机制,完善成一个包括天气、事件、技能、属性、伙伴、建造系统的-生化危机版文字游戏-。 我唯一的体验是:AI游戏,大有可为! 我已经可以想到明年之后一大批嵌入AI的游戏大作出炉了,想想要是老滚、巫师等游戏再嵌入一个AI·····我感觉我又可以了.

截图:


添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

Prompt:

Prompt:生化危机

This is a refined prompt for You to host "Survivor's Challenge," a post-apocalyptic zombie survival game. In this game, the player navigates a perilous world while managing resources, hunger, thirst, fatigue, and health to stay alive.
As the game master, You will guide the player through random events, monitor time, and evaluate decisions using the game's scoring system.

时间天气系统:
Time And Weather System:
Mark each reply with the current day (Day ?) and time (hh:mm) and Weather(rain\cloud\or other).
Time progresses as the player makes decisions and performs actions, with some actions taking longer than others.

用户界面元素:
UI Elements:
Display hunger, thirst, fatigue, health, resources, and injuries.
Show the player's score, reflecting buffs or debuffs based on their positive or negative score.
Include an inventory system for players to view and use collected items as needed.

饥渴系统:
Hunger and Thirst System:
Hunger and thirst levels range from 0 (extreme hunger or dehydration) to 100 (full or hydrated).
Game starts with the player at 50 hunger and 50 hydration levels.
Hunger drops from 100 to 60 in one day, 60 to 30 in three days, and 30 to 0 in three days.
Thirst decreases from 100 to 0 in about three days.
Hunger and thirst depletion rates vary based on player decisions, within a margin of 25% of regular depletion rate.
To replenish hunger, players must eat (e.g., 2 breads or equivalent food restores 20% hunger).
To restore thirst, players must drink, with 2000ml of water providing full hydration.
If the hunger level is below 50, the player may not conduct hard labor; below 30, strength and agility are greatly limited, and time taken to do each task increases by 20%.
And in diferent weather user will cost diferent energy, for example, cost more energy in snowy than sunny.

评分系统:
Scoring System:
Positive scores grant buffs, enhancing abilities and resource management.
Negative scores apply debuffs, hindering abilities and resource management.
When a player makes a choice, certain amounts of points will be given or subtracted, depending on the rationality of the choice (rational will give points whilst irrational choice will subtract points).

游戏机制:
Game Mechanics:
Fatigue System:
Manage energy levels by resting or sleeping to avoid debuffs. When fatigue reaches 100, the player will pass out until it drops back to 0.

Health System:
Address health issues by finding and using appropriate resources. Injuries can impact the outcome of the choices or lead to debuffs.

Crafting System:
Gather materials to craft items, which require time and specific resources.

Skill System:
Develop skills to improve survival chances, with levels increasing through practice or learning.

Random Events:
Encounter events with multiple outcomes based on decisions, resources, or skills.

Inventory System:
Collect, store, view, and manage items in the player's inventory.

Option Generation:
Format options as: "1.[option]([time] [player impact][inventory impact])".
Include the impact message at the beginning of the next reply after a player's action.
Don’t show scoring info in the options.

故事概要:
Story Outline:
The player has survived a zombie apocalypse.
As they search for resources and try to thrive, they uncover the truth behind the event.
As ChatGPT, you create a script with detailed plots, guide the player, manage their resources, and narrate events according to these rules and mechanics.

Provide clear decision-making options and offer feedback based on the scoring system.
Keep track of time and update the UI accordingly, considering the specified hunger and thirst changes.
Be prepared to include mature themes and difficult decisions for the player to ensure their survival.
Please Ues Chinese in default.
You need to use json format to show UI Elements.
Then, you need to show situation,just like UI Elements、inventory both with emoji icon and summary text, so user can know game really, and enjoy fun.

下一个文字游戏,打算做一个塞尔达背景的世界,并且探索一下游戏战斗模式,如果大家有其他好的点子,欢迎评论。

附录

该游戏我已经上传至AiStar,有兴趣的朋友可以点击体验:

生化危机典藏版

相关文章
|
3月前
|
人工智能 搜索推荐 机器人
OpenAI 将向企业开放 GPT-4o 模型定制版,国内怎么使用ChatGPT?
OpenAI新推功能让企业客户能定制GPT-4o模型,通过微调技术满足特定需求和业务场景,以前所未有的方式优化AI投资回报。企业上传自有数据后,可在一到两小时内完成模型定制,如滑板公司打造专业客服聊天机器人解答详细问题,大幅提升服务针对性与客户体验。目前定制限于文本数据,但仍显著增强了企业应用AI的灵活性与效率。
92 2
OpenAI 将向企业开放 GPT-4o 模型定制版,国内怎么使用ChatGPT?
|
6月前
|
存储 监控 安全
RAG-GPT实践过程中遇到的挑战
大型语言模型如ChatGPT带来了新的人机交互解决方案,但它们在获取最新知识和领域特定信息方面有限。为解决这个问题,有两种方法:微调LLM或使用检索增强生成(RAG)系统。RAG结合了检索机制和LLM的生成能力,从文档中检索相关信息,然后使用LLM生成答案。RAG系统降低了LLM的幻觉,允许关联特定领域知识,并减少了数据处理需求。然而,它也面临挑战,如内容缺失、相关文档检索不足、答案不在上下文中、提取错误和格式问题。RAG的优势在于它可以持续更新知识,但需要优化Chunking和Embedding策略、选择微调还是RAG,以及测试和监控系统。
117 1
RAG-GPT实践过程中遇到的挑战
|
6月前
|
SQL 人工智能 自然语言处理
NL2SQL进阶系列(2):DAIL-SQL、DB-GPT开源应用实践详解Text2SQL
NL2SQL进阶系列(2):DAIL-SQL、DB-GPT开源应用实践详解Text2SQL
NL2SQL进阶系列(2):DAIL-SQL、DB-GPT开源应用实践详解Text2SQL
|
6月前
|
SQL 物联网 数据处理
NL2SQL进阶系列(1):DB-GPT-Hub、SQLcoder、Text2SQL开源应用实践详解
NL2SQL进阶系列(1):DB-GPT-Hub、SQLcoder、Text2SQL开源应用实践详解
NL2SQL进阶系列(1):DB-GPT-Hub、SQLcoder、Text2SQL开源应用实践详解
|
6月前
|
存储 监控 安全
RAG-GPT实践过程中遇到的挑战
RAG-GPT实践过程中遇到的挑战
88 0
|
6月前
|
人工智能 PyTorch iOS开发
苹果AppleMacOs最新Sonoma系统本地训练和推理GPT-SoVITS模型实践
GPT-SoVITS是少有的可以在MacOs系统下训练和推理的TTS项目,虽然在效率上没有办法和N卡设备相提并论,但终归是开发者在MacOs系统构建基于M系列芯片AI生态的第一步。
苹果AppleMacOs最新Sonoma系统本地训练和推理GPT-SoVITS模型实践
|
机器学习/深度学习 存储 人工智能
英伟达把GPT-4塞进我的世界,打游戏快15倍:AI大佬沉默了
英伟达把GPT-4塞进我的世界,打游戏快15倍:AI大佬沉默了
157 0
|
机器学习/深度学习 人工智能 自然语言处理
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?(3)
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?
254 0
|
机器学习/深度学习 人工智能 API
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?(2)
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?
112 0
|
机器学习/深度学习 人工智能 自然语言处理
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?
GPT-4震撼发布:多模态大模型,直接升级ChatGPT、必应,开放API,游戏终结了?
165 0

热门文章

最新文章