create_buff_skill
Create buff skills for RPG Maker MZ/MV projects by specifying name, stat type, duration, MP cost, and target scope.
Instructions
Create a buff skill (simplified)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Skill name | |
| buffType | Yes | Buff type (2=ATK, 3=DEF, 4=MAT, 5=MDF, 6=AGI) | |
| turns | Yes | Number of turns the buff lasts | |
| mpCost | Yes | MP cost | |
| scope | Yes | Target scope (7=ally all, 11=user) | |
| description | No | Skill description |
Implementation Reference
- src/tools/skillTools.ts:223-250 (handler)Implementation of the create_buff_skill tool handler.
export async function createBuffSkill( projectPath: string, name: string, buffType: number, turns: number, mpCost: number, scope: number, description?: string ): Promise<Skill> { return await createSkill(projectPath, { name, description: description || `${name}で能力を強化する`, mpCost, scope, effects: [ { code: 31, // Add buff dataId: buffType, value1: turns, value2: 0 } ], animationId: 52, message1: `%1は${name}を使った!`, stypeId: 1, iconIndex: 73 }); } - src/index.ts:286-299 (schema)Registration and input schema for create_buff_skill.
name: 'create_buff_skill', description: 'Create a buff skill (simplified)', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Skill name' }, buffType: { type: 'number', description: 'Buff type (2=ATK, 3=DEF, 4=MAT, 5=MDF, 6=AGI)' }, turns: { type: 'number', description: 'Number of turns the buff lasts' }, mpCost: { type: 'number', description: 'MP cost' }, scope: { type: 'number', description: 'Target scope (7=ally all, 11=user)' }, description: { type: 'string', description: 'Skill description' }, }, required: ['name', 'buffType', 'turns', 'mpCost', 'scope'], },