// Simple loop to attack and heal :start if #hp < 50 send f1 // F1 bound to healing potion wait 2s end_if move 400, 230 // Move to center left 400, 230 // Target enemy wait 500 goto start Use code with caution.

if_not : Executes a command if a specific pixel does not match the provided color.

repeat : Repeats a block of code a specific number of times. break [level] : Interrupts a while , for , or repeat cycle.

UoPilot provides built-in variables that automatically track system or game-specific data: