create_damage_skill
Create damage-dealing skills for RPG Maker games by defining name, damage formula, MP cost, target scope, and elemental properties.
Instructions
Create a damage-dealing skill (simplified)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Skill name | |
| damageFormula | Yes | Damage formula (e.g., "a.mat * 4") | |
| mpCost | Yes | MP cost | |
| scope | Yes | Target scope (1=enemy single, 2=enemy all) | |
| elementId | No | Element ID (0=none, 2=fire, 3=ice, 4=thunder, etc.) | |
| description | No | Skill description |
Implementation Reference
- src/tools/skillTools.ts:163-188 (handler)Implementation of the create_damage_skill tool handler, which creates a new damage-dealing skill in the game project.
export async function createDamageSkill( projectPath: string, name: string, damageFormula: string, mpCost: number, scope: number, elementId?: number, description?: string ): Promise<Skill> { return await createSkill(projectPath, { name, description: description || `${name}を使用する`, mpCost, scope, damage: { type: 1, // HP damage elementId: elementId || 0, formula: damageFormula, variance: 20, critical: true }, animationId: 1, message1: `%1は${name}を放った!`, stypeId: 1 // Magic }); } - src/index.ts:254-275 (registration)Registration of the create_damage_skill tool definition in the MCP server.
{ name: 'create_damage_skill', description: 'Create a damage-dealing skill (simplified)', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Skill name' }, damageFormula: { type: 'string', description: 'Damage formula (e.g., "a.mat * 4")' }, mpCost: { type: 'number', description: 'MP cost' }, scope: { type: 'number', description: 'Target scope (1=enemy single, 2=enemy all)' }, elementId: { type: 'number', description: 'Element ID (0=none, 2=fire, 3=ice, 4=thunder, etc.)' }, description: { type: 'string', description: 'Skill description' }, }, required: ['name', 'damageFormula', 'mpCost', 'scope'], }, }, { name: 'create_healing_skill', description: 'Create a healing skill (simplified)', inputSchema: { type: 'object', properties: {