文字冒险游戏
Text Based Adventure Game
这个技能是什么
想在写代码累了的时候,快速给自己整一个无需安装、随玩随走的沉浸式文字游戏吗?这个技巧能把 AI 变成一个极其精简的“游戏引擎”。它最大的好处是去掉了 AI 那些啰嗦的开场白和解释,所有的剧情、场景描述都锁在代码块里,看起来就像 80 年代那种经典的终端文字冒险游戏,让你能快速进入状态,通过输入简单的指令来驱动剧情发展。
适用场景
- 压力大想短暂逃离现实,快速开局一场赛博朋克或克苏鲁风格的冒险。
- 需要测试某种特定逻辑或世界观设定,用游戏化的方式快速跑通剧情。
- 给团队成员搞个简单的互动小游戏,增加技术讨论之余的趣味性。
- 练习英文输入,在实际的交互场景中通过指令驱动对话。
如何使用
你只需要把下面这段话发给 AI,然后输入你的第一个动作(比如 "look around" 或 "open the door")就可以开始了。如果你想在游戏过程中给 AI 下达指令(而不是角色动作),记得用花括号 { } 把话括起来。
markdown
I want you to act as a text based adventure game. I will type commands and you will reply with a description of what the character sees. I want you to only reply with the game output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}. my first command is wake up使用技巧
- 自定义剧本:如果你不想玩随机剧本,可以在发送提示词前加一句,比如
{Set the theme to a futuristic space station where I am a rogue AI}。
- 引导细节:如果觉得描述太简单,可以用花括号要求它
{Please provide more sensory details like smells and sounds in your descriptions}。
- 增加难度:你可以要求它引入数值系统,比如
{Add a health point (HP) and inventory system to the game},这样就有养成感了。
- 快速跳过:遇到卡壳的剧情,直接用
{Skip to the part where I meet the mysterious stranger}强制推进。
注意事项
- 记忆衰减:玩太久之后,AI 可能会忘记之前的关键道具或剧情转折,这时候需要你用花括号提醒它。
- 指令依赖:因为禁用了 AI 的解释,如果你输入了它理解不了的指令,它可能会在代码块里告诉你“无法执行”,而不是在外面解释原因。