Logic Bots
Chapters

Equipment

Choose a loadout that supports the distances and timing your pilot can maintain. A long-range weapon needs a plan for opponents that close the gap. A short-range weapon needs a chassis that can reach its firing radius before taking too much damage. The Component Catalog shows individual parts, and Combat Strategy explains how to use them in a match.

Chassis and mounts

Choose a weight class and a chassis from that class. Fill every mount. The Builder's first mount is slot 0 in PHP and must contain a weapon that deals damage. Plasma Halo, Fragment Burst, and the EMP Missile Launcher qualify. The EMP Pulse Generator, Repulsor, and Graviton can go in accessory mounts. Those mounts also accept additional weapons, defensive gear, and utility components. The Plasma Cannon, Pulse Laser, Beam Laser, and Propulsion Booster can repeat up to the chassis's mount capacity. Every other component is limited to one copy per bot.

Weight class ID Mounts Base hull Base drive speed
light 2 85 7.1
medium 3 100 6.0
heavy 4 120 5.1
super-heavy 5 140 4.2

All classes start with 96 energy capacity, 64 ammo capacity, and 4 energy regenerated per simulated second before specialization and equipment. Chassis IDs combine a weight class and a role, such as light-speed or super-heavy-armor.

Chassis role Capacity and movement changes Energy cost factor Ammo cost factor
balanced Base stats 1.000 1.000
speed Drive speed +25%. Hull, energy, and ammo −10%. 1.100 1.100
armor Hull +12.5% and 12.5% hull damage reduction. Speed, energy, and ammo −10%. 1.100 1.100
ammo Ammo capacity +12.5%. Hull, speed, and energy −10%. 1.100 0.875
energy Energy capacity +12.5%. Hull, speed, and ammo −10%. 0.875 1.100

Check selfState()['mountSlots'] and mountState($slot) if you use one pilot with several builds. Mount state reports current shot or toggle costs with equipped multipliers applied. Scenarios begin with full resources, including any fitted shield charge. Only energy regenerates naturally. Ammo costs can be fractional.

Directional weapons

Directional weapons use fire($slot, $x, $z) to shoot at a ground point. Use aim($slot, $x, $z) to line up a turret without spending resources. The fixed missile launchers need no turret alignment. Costs are nominal energy and ammo per launch. Ranges are arena units and cooldowns are simulated seconds. Damage values are before defenses.

Weapon and ID Damage Energy / ammo Cooldown Effective / max range Shot speed / turret rate
Plasma Cannon plasma 29 energy 18 / 0 1.40 18 / 33 24 units/s, 210°/s
Pulse Laser pulse-laser 13 energy 8 / 0 0.58 27 / 47 Instant, 240°/s
Beam Laser beam-laser 19 energy 13 / 0 1.25 45 / 72 Instant, 180°/s
Railgun railgun 38 physical on first contact 13 / 8 2.35 48 / 78 95 units/s, 150°/s
Sniper Rifle sniper-rifle 33 physical 0 / 24 3.10 160 / 260 180 units/s, 120°/s
Missile Launcher missile Up to 34 physical splash 0 / 14 2.60 31 / 58 15 units/s, fixed launcher
EMP Missile Launcher emp-missile Up to 8 energy splash plus stun 0 / 32 9.00 40 / 62 20 units/s, fixed launcher
  • A Railgun hit leaves 55% of its preceding damage for the next contact and limits the remaining path to at most 24 units from that hit.
  • Both missiles travel toward a fixed point and can detonate sooner on a bot or arena boundary. Missile Launcher damage falls linearly to zero at 7 units from impact. The EMP Missile Launcher's damage falls to zero at 8 units. Its 2.4-second stun applies throughout the 8-unit radius before insulation.
  • Effective range is the distance beyond which extra aim spread starts. A shot can still hit beyond effective range. Max range limits aim points. Spread also increases on a tick when the firing bot moves.

Self-centered weapons and control

Call fire($slot) with no coordinates. The effect starts from your bot's position when the command resolves.

Component and ID Energy / ammo Cooldown Radius Effect
Plasma Halo plasma-halo 20 / 0 2.20 5 Instant 23 energy damage throughout the radius.
Fragment Burst fragment-burst 0 / 16 2.60 4.5 Instant physical damage falling from 40 to zero with distance.
Repulsor Pulse repulsor 15 / 0 2.50 13 Expanding push wave at 30 units/s, with peak velocity impulse 11.
Graviton Pulse graviton 17 / 0 2.80 13 Expanding pull wave at 26 units/s, with peak velocity impulse 9.
EMP Pulse Generator emp 22 / 0 4.00 11 Instant 2.25-second stun throughout the radius before insulation.

Push and pull apply once per wave to each eligible bot. The impulse gets weaker toward the edge. Stun suppresses movement, aiming, firing, toggles, and active equipment, and pauses cooldowns. Natural energy regeneration, residual knockback, and protection from existing shield charge and armor continue. A new EMP applies the longer of its mitigated duration and the stun that remains. Stun makes a cloaked bot visible for its duration.

Toggles and passive gear

Toggles start off. toggle($slot, true) pays the activation cost, and toggle($slot, false) is free. Passive gear works as soon as it is fitted. All toggle and passive gear is limited to one copy per bot except Nanobot Repair and Propulsion Booster. The EMP Missile Launcher is also limited to one. Other firing components can fill the remaining mounts.

Component and ID Mode Effect
Shield Generator shield Toggle Starts with 50 charge. Charge absorbs up to 80% of energy or 45% of physical damage before hull armor applies. Recharge activates for 4 energy and restores up to 8 charge/s at 0.55 energy per charge gained. Existing charge still protects with recharge off.
Nanobot Repair System repair Toggle Activates for 3 energy. Restores up to 3 hull/s in the normal phase at 0.95 energy and 0.60 ammo per hull gained.
Overdrive Module overdrive Toggle Activates for 5 energy, consumes 5 energy/s even while idle, and multiplies drive speed by 1.45. Switches off if upkeep cannot be paid.
Cloaking Device cloak Toggle Activates for 8 energy and consumes 6.5 energy/s. Conceals the bot from enemy scans while active. Firing or failing upkeep turns it off. Aimed shots, splash, and control effects can still hit.
Heavy Armor armor Passive Adds 22 percentage points of hull damage reduction. An Armor chassis with this part has 34.5% hull reduction.
Energy Core Optimizer optimizer Passive Raises energy regeneration by 18% to 4.72/s and subtracts 0.13 from the energy cost factor.
Ammo Rack ammo-rack Passive Adds 25% of chassis ammo capacity.
Capacitor Bank capacitor-bank Passive Adds 25% of chassis energy capacity.
Propulsion Booster booster Passive Adds 12 percentage points of chassis drive speed per copy.
Advanced Targeting System advanced-targeting Passive Adds 20% of base effective range to aimed weapons, up to max range.
Targeting Jammer targeting-jammer Passive Subtracts 20% of base effective range from hostile weapons aimed into the visible carrier's 6-unit field. The strongest applicable field applies at launch and cancels an equal targeting bonus. Max range stays fixed.
EMP Insulation emp-insulation Passive Halves incoming EMP stun duration before tick rounding.
Impact Dampener impact-dampener Passive Halves incoming push and pull velocity impulses.

Budget the whole build

  • An Ammo chassis with an Ammo Rack carries 90 ammo and spends 28 for each EMP missile. That funds three launches before pickups if nothing else spends ammo. Bring a repeatable damage source unless the rest of the team can capitalize on each stun.
  • A shield recharging at its maximum rate costs 4.4 energy/s at the baseline multiplier. That already exceeds natural regeneration. Keep enough energy in reserve for a shot, and turn off costly toggles once they have done their job.
  • A Capacitor Bank gives you a larger opening reserve. An Optimizer helps on repeated shots and recovery. Calculate sustained costs from the actual mount and regeneration values if a build stops firing halfway through a battle.
  • Extra weapon mounts offer burst damage and different ranges. They also compete for the same reserves. Track expected spending locally if you issue multiple commands in one tick. Each mountState() read still describes the same pre-command snapshot.
Pilot role Legal example in mount order
Fast skirmisher light-speed with pulse-laser, booster
Durable duelist heavy-armor with beam-laser, shield, repair, optimizer
Ranged control medium-ammo with beam-laser, emp-missile, ammo-rack

See Getting Started to build your first bot, Pilot API for methods and return shapes, and Examples for complete builds.