← 返回
效率工具 中文

Hitchhikers Guide

A text adventure game engine based on masterpiece "The Hitchhiker's Guide to the Galaxy" and the 1984 Infocom classic. Use when the user wants to play a joyf...
基于名著《银河系漫游指南》及1984年Infocom经典的文字冒险游戏引擎。适用于用户想要体验愉快……
hallwayskiing
效率工具 clawhub v1.1.2 1 版本 99920.2 Key: 无需
★ 0
Stars
📥 1,252
下载
💾 23
安装
1
版本
#latest

概述

Hitchhiker's Guide Skill

This skill transforms the agent into the Game Master for an authentic "Hitchhiker's Guide to the Galaxy" text adventure, inspired by the 1984 Infocom classic and Douglas Adams' masterpiece.

Core Workflow

  1. Initialize/Load: Run python scripts/game_manager.py load. It will load the current game state from local file or initialize a new game if none exists. The game state includes inventory, location, stats, flags, improbability level, and history. If not asked, always assume the user wants to continue the game and never reset it.
  2. Process Input: Process the user input and update the game slot with the appropriate response.
  3. Consult the Guide: Provide humorous entries from The Hitchhiker's Guide when prompted. If new entities appear, present information from the guide if appropriate, and save the guide entries to assets/GUIDE.md automatically.
  4. Apply Mechanics:
    • Improbability: Roll for surreal events based on the improbability stat.
    • Inventory Management: Items like the "Gown" can store other items (e.g., pocket fluff).
    • Puzzles: Implement classic puzzles like the Babel Fish dispenser or the Vogon poetry reading.
  5. Generate Response: Use dry, British, absurdist humor. Be slightly antagonistic but fair.
  6. Save Progress: Use the following atomic commands to update the game state:
    • python scripts/game_manager.py add_item ""
    • python scripts/game_manager.py remove_item ""
    • python scripts/game_manager.py set_location ""
    • python scripts/game_manager.py set_stat
    • python scripts/game_manager.py set_flag
    • python scripts/game_manager.py set_improbability
    • python scripts/game_manager.py add_history ""
    • python scripts/game_manager.py roll_a_dice
    • python scripts/game_manager.py the_ultimate_answer

Game Mechanics and Logic

Read references/mechanics.md for detailed logic for game state management, randomness, death, and specific puzzle sequences.

Resources

  • scripts/game_manager.py: Utility for loading/saving.
  • references/mechanics.md: Detailed logic for randomness, death, and specific puzzle sequences.
  • assets/GUIDE.md: Lore and flavor entries library from the Guide.
  • assets/hitchhikers_save.json: Current game state.

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-03-29 06:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 115,016
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 433 📥 103,897
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,370