ScriptYard Return to arena

Field Guide

Learn what each robot part does and see how it behaves in the arena.

Build your first robot

  1. Load a template. Start with Rook in the Workshop and inspect its drive train and right blade.
  2. Open Program. Find the rule that swings when an enemy is in the sword arc.
  3. Run a test. Open the Test arena and select Rook to see its sensor and sword ranges.
Open Workshop

Arena demos

Cyan battery
—
Orange hull
—
Demo program

Writing rules

Start with If. You can add one Else if and one Else. The first usable branch runs. Each branch uses one rule slot, and a conditional branch can check up to five conditions.

Separate movement and weapons

Movement, each sword, the other weapons and tools, and defense each pick their first usable matching rule per tick. The Workshop can show each group separately. Put specific rules above general ones within a group.

When Enemy in right sword arc
Then Swing right sword
Movement and weapons demo →

Fire while another weapon reloads

Use Fire gun in the first branch and Lob grenade in Else if. Each weapon tracks its own cooldown. Weapon ready also works in a movement rule to brake before firing.

When Enemy detected and Not (Weapon ready gun)
Then Lob grenade
Gun and grenade fallback demo →

Action results and team signals

Action succeeded last tick checks for a completed action. For example, a blocked teleport never triggers it, and an Ion Blaster triggers it when the bolt launches.

Send team signal can broadcast on channels 1–8 once per second. Unjammed allies within 160 u can check that channel for one second starting on the next tick. Senders cannot hear their own signals or broadcast while jammed.

Try Wayfinder and Longshot together for channel 1 fire support. Pair Field Medic with Warden to see how a repair pulse on channel 2 cues Warden to raise its shield near enemies.

Teleport and signal demo →

Random choices

Random 1–10 keeps its roll for two seconds. Chance per tick checks the percentage each time the condition is evaluated.

When Random 1–10 equals 4
Then Wander
Random choices demo →

Registers and coordinates

Every robot has 64 rule slots and registers A through J. Each register can update once per tick. In Workshop → Program → Register names, give a register a label like Recharge mode. Use Add with a comparison to repeat a step for a fixed number of ticks. Use Equals in If and Else if branches to select a behavior by register value.

Registers demo →

Choose which robot to track

A robot can read the hull, heading and speed of visible contacts. Choose the nearest, farthest, fastest, lowest HP or highest HP enemy in targeting blocks. HP selectors use the contact’s current HP.

Target priority demo →

Lead a moving target

Pair a movement rule that leads a visible target with a firing rule that checks Lead shot lined up. Use the same target and weapon in both. The guess assumes the contact keeps its observed velocity.

When Lead shot lined up · Lowest HP enemy · Gun
Then Fire gun
Spread gun demo →

Handle walls and blocked paths

Pair Wall ahead within or Wall behind within with Reflect off wall to react before a crash. Movement blocked triggers on the tick after a wall, pillar, or robot stops a drive step. Put that rule above your usual drive rule.

Pair Enemy behind within with Dodge left or Dodge right to react to a nearby teleporter or hacker. Dodge thrusters sidestep immediately and pair well with Incoming hostile round. A firewall reduces an opponent’s chance to capture you.

Watch the dodge thrusters → Compare upgrade levels →
When Movement blocked
Then Turn by angle and drive 100°

Arena and matches

Select a robot during a battle or test to inspect its hull, charge, and ranges.

Units, walls, and fields

One arena unit (u) is 1/20 of a chassis width. A heading of 0° points east and angles increase clockwise. Use Wall ahead within to react to walls, pillars, and water your chassis can’t cross. Purple Faraday fields switch off long-range radar.

Shots pass over water. A boat conversion or hovercraft drive train crosses water. Sand halves ordinary drive speed. Drive toward and Face target can seek the nearest water or sand. Ground drives approach the shore.

Water and sand demo →

Squads and budgets

Practice lets you tune field size and the number of each terrain feature. Battle royale supports up to ten squads and 100 robots. In the Daily Challenge, eight teams each field three different designs with the same daily copy count per design.

Winning a match

The last team standing wins. Time limits range from one to five minutes. The Daily Challenge uses five minutes. At the time limit, Battle Royale places teams by surviving robots. Equal survivor counts share a place. Boat and hovercraft drives survive knockback into water.

Paint and equipment

Workshop paint saves with the robot and its seed. The match assigns each squad a colored outline. The part dependency graph shows which parts unlock upgrades, and installed equipment unlocks matching program blocks.