Version: 1.1.0 Category: Gameplay Purpose: Scout targets, assemble forces, and execute attacks
This bot implements three combat workflows: a full attack sequence for capturing enemy planets, a raid workflow for stealing resources, and a defense workflow for protecting owned planets. Each workflow includes prerequisite verification, execution, and post-combat actions.
Chart the enemy planet to assess its defenses and ownership.
Request:
{
"action": "chart",
"planetId": "enemy-planet-id"
}
Expected response:
{
"status": "charted",
"revealed": {
"defenses": [
{ "type": "planetaryDefenseCannon", "count": 1 }
],
"structs": [
{ "type": "planetaryBattleship", "count": 1 }
],
"ownership": {
"claimed": true,
"owner": "enemy-player-id"
}
}
}
Evaluate the enemy defenses and determine the required forces.
{
"enemyDefenses": {
"defenseCannon": 1,
"battleships": 1
},
"requiredForces": {
"commandShips": 2,
"powerNeeded": 100000
},
"risk": "medium"
}
Verify that the player has sufficient power and forces.
Request:
{
"action": "queryPower",
"playerId": "self"
}
Expected response:
{
"powerStatus": {
"availableCapacity": 200000,
"playerOnline": true
}
}
Both sufficientPower and forcesReady must be true before proceeding.
Launch the attack with verified forces.
Request:
{
"action": "attack",
"type": "attack",
"target": "enemy-planet-id",
"structs": ["command-ship-1", "command-ship-2"],
"verify": {
"playerOnline": true,
"sufficientPower": true,
"structsOnline": true,
"validTarget": true
}
}
Expected response (victory):
{
"status": "resolved",
"outcome": {
"victory": true,
"alphaMatterGained": 5,
"unitsDestroyed": ["enemy-battleship-1"],
"resourcesLost": {
"ore": 0
}
},
"battleDetails": {
"evasionChecks": 2,
"blockingChecks": 1,
"counterAttacks": 1
}
}
After a successful attack, build defenses on the captured planet.
{
"action": "build",
"structType": "planetaryDefenseCannon",
"locationType": 1,
"locationId": "enemy-planet-id",
"slot": "space"
}
Raids steal resources from enemy planets without capturing them. The fleet must be moved away from station before raiding.
Move the fleet away from station to enable raiding.
Request:
{
"action": "moveFleet",
"fleetId": "fleet-id",
"status": "away"
}
Verify that the fleet is away and the Command Ship is online before proceeding.
Launch the raid against the target planet.
Request:
{
"action": "raid",
"type": "raid",
"target": "target-planet-id",
"fleetId": "fleet-id",
"verify": {
"playerOnline": true,
"fleetAway": true,
"commandShipOnline": true,
"proofOfWork": true
}
}
Expected response (victory):
{
"status": "raidComplete",
"outcome": {
"status": "victory",
"victory": true,
"oreStolen": 10,
"alphaMatterGained": 0
}
}
Victory: The attacker successfully completed the raid and gained resources.
Defeat: The attacker lost the raid and gained no resources.
Attacker Retreated: The attacker retreated from the raid. No resources are gained or lost, and the fleet remains intact. The fleet can immediately be used for another raid attempt.
When the attacker retreats:
For a detailed retreat workflow, see examples/workflows/raid-attacker-retreated.md.
Build defensive structures on the planet.
{
"action": "build",
"structType": "planetaryDefenseCannon",
"locationType": 1,
"locationId": "planet-id",
"slot": "space"
}
Periodically query the planet to detect incoming attacks.
{
"action": "queryPlanet",
"planetId": "planet-id"
}
Defensive structures fire automatically when the planet is attacked. No manual intervention is required.
Insufficient power: Convert Alpha Matter to Watts before attempting combat operations.
Fleet not away: Move the fleet away from station before initiating a raid. Raids require the fleet to be in the “away” status.
Command Ship offline: Activate the Command Ship before any combat operations. Both attacks and raids require the Command Ship to be online.