apply_penalty
Subtract coins, experience points, or items from a player by applying a penalty with a custom reason that appears in history.
Instructions
Apply a penalty to the player (coins, experience points, or items) with a custom reason. The reason will be displayed in history pages. Use this to subtract resources directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Penalty type: coin=coins, exp=experience points, item=shop items | |
| content | Yes | Reason for penalty (displayed in history) | |
| number | Yes | Amount to penalize (max: 999999 for coin, 99999 for exp, 999 for items) | |
| skills | No | Skill/attribute IDs (only for exp type) | |
| item_id | No | Item ID (only for item type, one of item_id or item_name required) | |
| item_name | No | Item name for fuzzy match (only for item type, one of item_id or item_name required) | |
| silent | No | Disable UI prompts (default: false) |