SuperAPI AI 工具集

exit

通用与其它

查看项目

更新于 10-16 04:23

技能介绍

用途

Exit 是 MOOLLM 空间架构中的导航链接,用于将一个房间连接到另一个房间。在记忆宫殿图中,出口就是图的边(edges)。

主要能力

Exit 可以是以下几种类型:

  • 简单出口:仅包含一个目的地。
  • 受守卫出口:需要通过条件才能通行。
  • 隐藏出口:需通过探索才能发现。
  • 形而上出口:概念性而非物理性的转换。

饼菜单拓扑

Don Hopkins 的饼菜单洞见:方向即含义。

方向 用途
N/S/E/W 连接主要房间的"高速公路"
NW/NE/SW/SE 可扩展子房间的"网格"
UP/DOWN 垂直转换
IN/OUT 概念转换

基本方向构成蛛网——主导航网络。对角方向构成网格——可扩展的子房间阵列。

守卫系统

守卫是控制访问的自然语言条件:

guard: "player has the brass key"
guard_js: "(ctx) => ctx.player.inventory.includes('brass-key')"
guard_py: "lambda ctx: 'brass-key' in ctx.player.inventory"

guard 字段包含人类可读的意图。guard_js 和 guard_py 字段包含编译后的代码。冒险编译器会为需要编译的守卫发出 COMPILE_EXPRESSION 事件。

出口类型

简单出口

north:
  destination: ../maze/room-a/
  description: "A dark passage leads north."

受守卫出口

east:
  destination: ../treasury/
  description: "A heavy iron door."
  guard: "player has treasury key"
  locked: true
  lock_message: "The door won't budge."
  unlock_with: "treasury-key"

隐藏出口

down:
  destination: ../secret-cellar/
  hidden: true
  hint: "The rug seems oddly placed..."

单向出口

down:
  destination: ../pit/
  one_way: true
  description: "A slide into darkness. No going back."

形而上出口

inward:
  destination: ../consciousness/
  metaphysical: true
  description: "Close your eyes and think about who you really are."

记忆宫殿集成

引自 Frances Yates 的《The Art of Memory》:"位置记忆法将物品放置在想象中的旅程的特定位置上。"

每个出口都是记忆宫殿中的一扇门。方向编码了含义。玩家通过空间记忆进行导航。

相关技能

  • room — 出口所在之处
  • adventure — 使用出口进行导航
  • memory-palace — 出口作为记忆路径

协议符号

PIE-MENU-TOPOLOGY — 方向即含义。