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
| Name | Required | Description | Default |
|---|---|---|---|
| save_key | Yes | セーブデータを暗号化するセーブキー。このキーは覚えておいてください!すべてのゲーム操作で必要になります。 |
Implementation Reference
- src/tools/player.ts:8-15 (handler)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'でキャラクターを作成してください。`; }