skill_xp_forecast
Calculate actions or harvests needed to reach a target skill level from current save XP. Input item price for farming or per-action XP for other skills.
Instructions
Actions needed to reach a target skill level from current save XP. Supply item_price (crop harvest) OR per_action_xp. Food buffs do NOT change XP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skill | Yes | Which skill to forecast. | |
| player | No | Player/farmhand name; empty = host player. | |
| save_path | No | Path to a save file OR a save folder (e.g. .../Saves/Farm_123 or .../Saves/Farm_123/Farm_123). Leave empty to use the save configured at server startup (--save/--save-dir or SDV_SAVE_PATH/SDV_SAVE_DIR). The server never auto-discovers saves; one must be configured or passed explicitly. | |
| item_price | No | Base sell price of a crop harvest -> uses the farming XP formula. 0 = unused. | |
| target_level | Yes | Goal level 1-10. | |
| per_action_xp | No | XP per action override (e.g. 5 for petting/collecting; use for fishing). 0 = unused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | ||
| skill | No | ||
| action | No | ||
| player | No | ||
| target_xp | No | ||
| current_xp | No | ||
| target_level | No | ||
| xp_remaining | No | ||
| current_level | No | ||
| xp_per_action | No | ||
| actions_needed | No |