Skip to main content
Glama
bellsanct
by bellsanct

init_game

Initialize a new dungeon crawler game by creating encrypted save files and setting up required encryption keys for gameplay operations.

Instructions

新しいゲームを初期化します。セーブファイルと暗号化キーを作成します。他の操作の前に必須です。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
save_keyYesセーブデータを暗号化するセーブキー。このキーは覚えておいてください!すべてのゲーム操作で必要になります。

Implementation Reference

  • The 'initializeGame' function handles the "init_game" tool logic, which checks if a game exists in storage and initializes it if not.
    export async function initializeGame(saveKey: string): Promise<string> {
      if (storage.exists()) {
        return `ゲームは既に初期化されています: ${storage.getSaveLocation()}\n別のコマンドでプレイヤーを読み込んでください。`;
      }
    
      await storage.initialize(saveKey);
      return `ゲームを初期化しました!\n保存場所: ${storage.getSaveLocation()}\n\n'create_player'でキャラクターを作成してください。`;
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bellsanct/mcp-dungeon-game'

If you have feedback or need assistance with the MCP directory API, please join our Discord server