When a character's turn opens the Arts input, the battle UI draws an action gauge: a per-turn pool the player spends by pressing directional commands. The weapon-hand swing costs more with an off-class weapon - the "longer arm input" players see. Two myths fall on this page: the off-class penalty is not a flat ×2, and the cost is not computed at runtime at all - it is per-(character, weapon) data on the disc, which is what makes it editable. A named art is paid for separately, out of the Spirit gauge.
actor+0x154), copied into ctx+0x6DC; input ends when the next command would not fitDAT_801C9360[char][cmd] + 0x74 - one byte is both the AP price and the pennant widthFUN_801D0748 state 0x50; it ends on auto-end, the confirm mask, or a cancel with nothing typed (leaving the entry)actor+0x170 (0..100), which carries between fights--weapon-specialty rewrite the cost bytes in place0x0C = the arm" is Inferred (how we know)On your turn the Arts bar fills with a row of pennants, one per direction you press, and stops accepting input when the next pennant would not fit. The pool is the character's AGL. Every direction has a price; three of the four never change. The fourth - the weapon-hand swing - is authored per weapon, and because the price is also the pennant's width, an off-class weapon looks wider and fits fewer commands in the same turn.
| Tier | Arm cost | Over base | Who lands here |
|---|---|---|---|
| Favored class | 30 | - | Vahn with a sword, Noa with a claw, Gala with a club |
| Off-class | 42 | +12 (×1.4) | e.g. Gala holding a claw |
| Far tier | 54 | +24 (×1.8) | Noa with any club or axe; Vahn's Astral Sword |
Only the weapon hand depends on equipment - Left for Vahn and Gala, Right for Noa. The Ra-Seru arm and the two leg commands are always 30. The "off-class doubles the arm" folklore counts penalties: the Astral penalty (+24) is twice the off-class penalty (+12); the cost itself is ×1.4, not ×2.
One battle-overlay routine builds the gauge and spends it:
ctx+0x6DC = the acting actor's AGL +0x154+0x74 cost; the pennant is drawn cost − 6 pixels widepool −= cost and the committed count ctx+0x19 goes up by oneOne byte is both price and width - a larger button and a more expensive command are the same value. The pennant is a text window and its label has to fit: 30 is retail's floor, 24 is still legible, below that the label smears (the patcher refuses costs below 24). The re-centre term only moves the pennant; the AP fill bar is unaffected at any cost.
The chips do not read Left / Right. Each chip's label is an icon id into the label-strip words RaSeru, Arms, Right, Left, High, Low. The entry opener stamps them so the Left chip reads Arms and the Right chip RaSeru; Noa's two arm seats are swapped, because her record holds the Ra-Seru in equipment index 2 and the weapon in index 3. An arm whose equipment byte is empty takes the plain direction word instead, and a committed pennant copies its chip's word, so the bar reads RaSeru / Arms too.
The Low chip's cost byte (ctx+0x16) is also the byte the battle action state machine uses as the War God Icon's Attack x2 pass counter, so every manual command entry leaves that counter non-zero. The Auto path does not build the gauge and leaves the byte alone.
Three neighbours share the machinery:
+0x74 cost out of the same AGL gauge, so a turn admits AGL / cost actions on either side (battle action).min(base AGL × 7/5 + 8, 288) (formula).Two budgets, not one
The AP pool bounds a turn by cost; the committed command buffer (actor+0x1DF..+0x1EE) bounds it by count - sixteen bytes. A plain press is one byte; a matched art replaces its last arrow with a two-byte starter pair, so an N-arrow art occupies N+1 bytes. At retail costs the pool binds long before sixteen tokens do; a mod that prices commands low enough hits the buffer instead.
The Arts input is state 0x50 of the command-menu state machine FUN_801D0748. It has three exits, two of them pad-driven, and all three consult the committed count ctx+0x19:
0x50, not an exit; Begin / Reselect opens once, after the last member that can act has committed.ctx+0x14 against the pool; when none is affordable it writes 0x5A._DAT_800846D0 - the same one the round prompt and every menu read - and is only tested once something is committed._DAT_800846D4 and forks on the count. With nothing typed it leaves to the attack-mode prompt 0x78 (0x28 instead when _DAT_800846C4 is set). With a typed buffer it restarts the entry: the gauge handler's case 0x26 wipes all sixteen queue bytes, re-seeds the pool from AGL and zeros the count, and the flow byte stays at 0x50.The four direction tests read the packed pad word (_DAT_8007B874 | _DAT_8007B938), whose byte halves are swapped against the raw BIOS word - so the masks 0x8000 / 0x1000 / 0x4000 / 0x2000 are Left / Up / Down / Right, not Square / Triangle / Cross / Circle.
Retail has no "pick a saved art" list. It remembers one command string per character, opens the entry with it already laid out, and replays it on a bare confirm.
FUN_801DA59C copies the actor's sixteen-byte window actor+0x1DF.. into one of two bands of the character record (+0x1A7 / +0x1B7, picked by whether the live AGL gauge exceeds its base). This runs before the queue builder tokenizes anything, so the string holds raw arrows, one swing byte per press.FUN_801DA34C copies it back when the attack-mode prompt takes Command, and the gauge build draws it: each command is tested against a scratch pool seeded from AGL, drawn as an ordinary pennant and debited; at the first command the pool cannot pay, the string is cut. The pool is then reset to full, so the entry opens with the string's pennants over a full bar and a committed count of 0.0x5A as a typed confirm does.A replay costs no pool AP, but its arts still cost Spirit
The replay never runs the press case, so the turn pool is not debited; the gauge build only measured the string against one full pool. The two-band save keeps a string recorded under a raised gauge from replaying under the base one. The Spirit cost of the arts the string spells is charged again, because the queue builder re-tokenizes the raw arrows at the dispatch.
Captured example: Gala's off-class entry with a saved six-press string, a 197 pool and a 42-AP arm opens as five pennants - the window is cut to the prefix one full pool affords.
The port runs the same preseed, cut and replay in its Arts input session and draws the preseeded pennants through the shared bar on both hosts. Its named chain library (the chain editor's list) is separate data that nothing preseeds from. Because a turn performs however many arts the pool paid for, the shout cue and the learn-on-use check are per art, not per turn.
The number of directions is paid from the AGL pool; the art those directions spell is paid from a different gauge - the Spirit gauge, actor+0x170, capped at 100. The game stores no per-art price. The arts queue builder computes it:
art cost = multiplier × command count
multiplier = 11 for the character's first art row, 10 for rows 1-3, 6 from row 4 on
(halved while the AP Used Down passive - the Mettle Gem - is worn)
actor+0x224; the action’s cleanup arm (0x801E5D74) takes it off the gauge. So the AP plate holds its figure until the art ends, and an art typed short of its price stays plain swings.actor+0x224, subtracted once in the Done band. A mod that changes an art's cost has to move the accumulator.The game performs no class comparison. The cost is written once at battle load as a verbatim 43-word block copy out of the assembled battle-character buffer - no arithmetic between load and store, confirmed by a live write-watch across a field→battle transition. The source is the equipped weapon's section of the character's player battle file:
+0x04+0x74The descriptor table keys sections by item id, so each weapon has its own swing record per character's file - a claw is cheap in Noa's file and expensive in Gala's. Decoding all four files gives the byte-exact picture:
| Character (file) | Favored → 30 | Off-class → 42 | Far → 54 |
|---|---|---|---|
| Vahn (863) | blade / knife / sword / fist | claw, axe | Astral Sword only |
| Noa (864) | claw / feral / fang (+ knife) | sword / blade | club / axe |
| Gala (865) | club / axe / mace | claw, knife | - |
Cross-checked live: Gala + Nail Glove reads 42, Gala + Ra-Seru Club reads 30, matching his file's sections. The cost lives inside an LZS-compressed stream, so an editor decompresses the section, rewrites one byte, recompresses, and writes back within the slot footprint.
"Off-class" itself is legible from the static item records: the description pointer is shared per weapon class and carries a Best:<character> token - knife/sword → Vahn, claw → Noa, club/axe → Gala. The Astral Sword has its own description, matches no character, and simply sits on the tier Noa reaches with any club.
A Rot-class status stamps a hand-lettered "Rot" mark over individual command arrows and refuses their input. The stamp pass and the input gate read the same status bits, bit-for-bit - and the retail assignment is not one bit per arrow:
| Status bit | Stamps | Blocks |
|---|---|---|
0x08 (limb 0) | the LEFT chip | Left |
0x10 (limb 1) | the RIGHT chip | Right |
0x20 (limb 2) | UP and DOWN | Up and Down |
0x1000 (Curse) | the ring's Magic chip | Magic |
With all three limb bits set the whole Arm command is skipped and Attack is unusable. Rot rolls exactly one of the three limb bits per application.
The stamp is sized off the chip's AP cost and keeps the edge nearest the D-pad fixed, exactly as the cost-widened chip does; the High / Low stamps stay at the favoured width whatever those chips cost. The command ring marks the same states every frame, before the pad is read: all three limbs stamp Rot over the Attack chip, and Curse lays its plate over the Magic chip. Both play hosts of the port draw these marks.
Weapon-hand swing cost from each character's file; all other commands read 30. A dash means the file has no section for the weapon (the equip mask stops them equipping it anyway). Classes are finer than blade / claw / club: Gala swings a Short Sword at 30 but a knife at 42; Vahn swings light clubs at 30 but the Power Club and every axe at 42.
| Weapon | Vahn (Left) | Noa (Right) | Gala (Left) |
|---|---|---|---|
| Survival Knife, Battle Knife | 30 | 30 | 42 |
| Short Sword, Force Blade | 30 | 42 | 30 |
| Beast Buster, Chaos Breaker | 30 | - | 30 |
| Nail Glove, Crimson Nails, Fighter Claw, Bloody Claw | 42 | 30 | 42 |
| Survival Club, Red Club | 30 | 54 | 30 |
| Power Club, Survival Axe, Battle Axe, Great Axe | 42 | 54 | 30 |
| Astral Sword | 54 | - | - |
| Character-locked gear (Ra-Seru weapons, Feral / Hard Beat / Heavy Strike, Holy / Golden Claw, Mace) | 30 | 30 | 30 |
The value 54 exists in exactly one place on the disc - the Astral section of Vahn's file - and the other files have no section for that id. Forced into Noa's slot by a cheat, the section selector finds no match and takes the id-0 default entry: default mesh, default swing record, cost 30. She swings at the favored price and does not visibly hold the sword; the attack bonus still applies, because attack folds in at execution from the static equipment table, keyed by item id alone. A mod that wants the penalty to travel would have to add a section, and there is no room - every player file ends flush against its last slot. The in-place knob is the default record's own cost, which the ROM patcher's equipment editor exposes per section (not yet confirmed with a live capture of an edited save).
Once a combo is committed, the execution resolver replays it one command per step and folds half the equipment slot's attack into the working ATK per swing - a read distinct from the gauge cost, covered in full on battle formulas. The battle loader deliberately folds no ATK at load; the fold happens here, per committed command.
The resolver FUN_801EC3E4 advances the input cursor at actor+0x1F4 and dispatches through PTR_801CF4B4[(actor+0x1D9) - 0xC], bounded at six arms (commands 0x0C..=0x11). The head admission gate tests a different band from a different place - (cmd - 0x0C) < 0x14 - so a command in 0x12..=0x1F is admitted and then folds nothing. 0x0E/0x0F share an arm; 0x10's slot is the same address the bounds check bails to - a live table entry that folds nothing. Retail applies no empty-slot test here. The call comes from SCUS_942.54 at 0x800478A0, which is why the resolver has no caller inside the overlay.
| Claim | What the bytes say |
|---|---|
| "An off-class weapon doubles the arm command." | Off-class is 30 → 42 (×1.4); the far tier is 30 → 54 (×1.8). The "double" counts penalties: +24 is twice +12. |
| "The game checks the weapon's class against the character." | No comparison exists; the value is authored data. The equipment, item-property and accessory tables were each checked - none carries the cost. |
| "The cost is recalculated when equipment changes." | Changing equipment alters only id bytes in the character record; the cost is read from the disc at the next battle load. |
| "The Astral Sword has a unique penalty." | Its 54 is the same far tier Noa receives from any club or axe. |
| "The AP shown next to an art is what the bar charges." | Two different gauges: a named art is paid from the Spirit gauge (actor+0x170), not the bar's pool - see what a named art costs. |
| Function / data | Address | What it proves |
|---|---|---|
| Gauge build + press | FUN_801D388C (overlay 0898) | Case 9 / 0x2C reads +0x74 (store at 0x801D3B3C); case 0xB debits ctx+0x6DC; one byte is width and price. |
| Command menu SM | FUN_801D0748 | State 0x50 Arts input: direction tests, auto-end, confirm / cancel masks; limb-bit stamp and gate agree bit-for-bit. |
| Auto string preseed / save | FUN_801DA34C / FUN_801DA59C | Copy between actor+0x1DF.. and record +0x1A7 / +0x1B7; the gauge build's cut at the first unaffordable command. |
| Load-time writer | FUN_800557B8 (SCUS) | Verbatim 43-word copy; the single cost write fires at 0x80055810 under a live write-watch. |
| Character assembly | FUN_80052770 / FUN_80052FA0 | Section selection from the record's equip bytes; swing-record splice; id-0 default fallback. |
| Execution resolver | FUN_801EC3E4 | Per-command fold into working ATK; called from SCUS 0x800478A0. |
| Enemy budget | FUN_801E9FD4 | The AI pays the same +0x74 costs from its AGL gauge. |
| Disc bytes | PROT 863..865 | asset battle-data-pack decode of every weapon section's swing_rec + 0x74 - the tier tables above. |
| Live RAM | DAT_801C9360[char][cmd]+0x74 | Gala + Nail Glove = 42, + Ra-Seru Club = 30, matching the file bytes. |
Character records (stride 0x414 from 0x80084708): equip slots at +0x196..+0x19A (body, head, index 2, index 3, footwear), name at +0x2A7, accessories at +0x19B..+0x19D. Index 2 / 3 hold the weapon and Ra-Seru in the order the character's file expects: weapon in slot 2 for Vahn and Gala, slot 3 for Noa - the cheat-database "weapon = +0x198" label is Vahn's and Gala's layout.
| Address / field | Meaning |
|---|---|
0x8007BD24 | Pointer to the battle context struct |
0x801C9360 | Per-party-member pointer to the command-record pointer array; [char][cmd] + 0x74 is the cost byte |
0x801F4B8C / 0x801F4B94 | Displayed command codes 0C 0F 0E 0D / icon bases 0D 10 11 0C; 0x0C is the arm whose cost tracks the weapon |
ctx+0x06 / +0x13 / +0x14..17 / +0x19 / +0x1B | Menu flow byte; active slot; per-command AP costs; commands committed; raised when the gauge build drew a preseeded string |
0x800846D0 / 0x800846D4 | Configurable confirm / cancel pad masks the input state tests |
ctx+0x6DC | Turn pool, seeded from actor AGL (+0x154) |
actor+0x158 / +0x16E / +0x170 | Working ATK; status word (limb bits); Spirit gauge (where a named art's cost lands, via the accumulator at +0x224) |
0x80074368 (12-byte stride) | Item property records; +1 equipment-row index, +8 shared per-class description pointer |
0x80074F68 (8-byte stride) | Equipment stat rows; +1 attack, +6 equip-character mask |
0x80075EC4 (0x14 stride) | Arts-name table; +2 is the menu's displayed art AP (the Spirit charge) |
An emulator sweep of injected +0x74 values established the pennant legibility floor (24). A separate +2 in the build case is an empty-slot icon tweak, not the class penalty.
The full doc adds the gauge formulas, the animation-rate restore after an action, the arts-AP override hook and register-level detail: docs/subsystems/arts-command-gauge.md.