skill_create_health_system
Creates a complete HealthSystem Blueprint in Unreal Engine: adds Health/MaxHealth variables, a TakeDamage function, and a BeginPlay initialization message via composable atomic tools.
Instructions
Create a complete HealthSystem Blueprint using atomic graph tools.
This skill composes multiple bp_* atomic tools to create a functional Blueprint with health management logic. It is the reference example for how Ghost composes atomic tools into higher-order workflows.
The Blueprint will contain:
Variables: Health (Float), MaxHealth (Float), bIsDead (Boolean)
Function: TakeDamage(DamageAmount: Float) — subtracts, clamps, sets bIsDead=true when Health ≤ 0, prints damage report
EventGraph: BeginPlay → PrintString "[HealthSystem] Initialized..."
All steps use atomic tools (bp_add_variable, bp_add_node, bp_connect_pins, bp_set_pin_default, bp_compile) wherever dedicated tools exist. Operations without dedicated tools (float arithmetic, function params) use exec_python and are listed in outputs.exec_python_steps.
If any step fails, the skill stops immediately and reports which step failed and the structured error from the atomic tool.
Args: blueprint_name: Name of the Blueprint asset. Default 'BP_HealthSystem' blueprint_path: Content Browser folder. Default '/Game/Blueprints' initial_health: Starting Health value. Default 100.0 initial_max_health: Starting MaxHealth value. Default 100.0
Returns: JSON StructuredResult with: outputs.blueprint_path — full content browser path outputs.variables_created — ['Health', 'MaxHealth', 'bIsDead'] outputs.functions_created — ['TakeDamage'] outputs.event_graph_nodes — node count placed in EventGraph outputs.connections_made — total connections made outputs.compile_result — 'clean' or 'errors' outputs.exec_python_steps — steps that used exec_python fallback outputs.steps_completed — ordered list of completed steps outputs.steps_failed — non-empty if any step failed
KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: skill_create_health_system()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blueprint_name | No | BP_HealthSystem | |
| blueprint_path | No | /Game/Blueprints | |
| initial_health | No | ||
| initial_max_health | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |