data/claims/symphony-of-war-squads.yamlSymphony of War: The Nephilim Saga, squads (the game's scripts, 1.10.23)
A squad stands in three rows, front, middle and back, and each row has five positions half a tile apart. A unit takes its own position and the ones on either side of it, so a row holds at most three ordinary units and a squad at most nine. Large units (the dragons, dragon riders, war cats and behemoths among the 15 classes marked size 2) also take the positions behind them in the next row, so they can't stand in the back row. symphony-of-war-squads/grid
scripts/341#L66-L76 — Meta - Position: column is position mod 5, row is position div 5Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L4269-L4295 — STMT REGEXS, Game_Squad: check_position_blocked and check_position_validSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/349#L1662-L1667 — Targeting SoW: front row is row 0, back row is row 2Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L13-L17 — Cover and Block: the comment on 5 columns and 3 rowsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L60-L63 — Cover and Block: one space is half a tileSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Classes.rvdata2 — the <unitsize 2> tag on 15 classesChecked by claude-agent, 2026-11-17 — read check_position_blocked and check_position_valid (each defined once, in script 591), row and column in script 341, and listed the classes whose notes carry <unitsize 2>Revised after a check by a second AI model, 2026-11-17.On screen the grid reads as three columns and five rows; the code's own comment says internally there are 5 columns and 3 rows (script 264, L13-L17). The size-2 classes are Dragon, Drakeling, the Blue, Silver and Red Dragons and Dragon Riders, Azure King (two entries), Azure Dragon, Dark Knight, Warcat, Behemoth and Queen of Dragons. The Dark God is size 3, which the placement code treats as an ordinary unit, since it tests only for size 2. The formation itself has 15 slots (next_available_formation, L2910-L2917), which the spacing rule never lets a squad reach.
Cited by: Symphony of War: The Nephilim Saga
A squad's capacity is its leader's Leadership (LDR), counted as 30 if it's lower, plus 10 with the Grand Army tech and 20 if the leader has the protagonist's late trait "Finish the Millenium War!". A unit can't join a squad whose total cost would then exceed its capacity. symphony-of-war-squads/capacity
scripts/591#L3076-L3086 — squad_capacity_max and squad_leader_capacitySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L5416-L5420 — capacity_leader: param 5, at least 30Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/268#L26-L33 — BalanceTest: param 5 is mdf, shown as LDRSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L2890-L2908 — try_add_unit: removes the unit again if the squad is over capacity, unless forcedSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L1857-L1862 — Traits Setup: lightfury, +20 Capacity, leader onlySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L3088-L3102 — squad_capacity_limit is the maximum; capacity_color tests over-limit (red) before over-capacity (yellow)Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/252#L245-L249 — SquadInfoConstructorOrganize: the capacity figure is drawn in capacity_colorChecked by claude-agent, 2026-11-17 — read squad_capacity_max, capacity_leader and try_add_unit in script 591, each defined once (script 731's squad_capacity_max is a window's, which reads the squad's); the param list in script 268Revised after a check by a second AI model, 2026-11-17.Grand Army is tech 47 (script 228, L902-L903). Forced additions (story events, try_add_unit with force) skip the check, and the squad screen shows an over-capacity squad's figure in red. The limit equals the maximum (L3088-L3090), so a squad over capacity is always over the limit too and the yellow branch never shows. The old penalty that cut an over-capacity squad's morale (morale_capacity_rate, script 265 L486-L496) returns 1.0 before it reads anything.
Cited by: Symphony of War: The Nephilim Saga
Each unit costs capacity. The leader costs a flat 10 whatever its class. Other units cost 10, or 15 for dragons, dragon riders, war cats, behemoths and necromancers and 8 for the risen; then minus their loyalty, which runs from −2 to 2 (so a disloyal recruit costs 12 and a loyal one 8). Story characters cost 2 more and count loyalty 2, so they stay at their class's cost. A leader with a captain trait takes 2 off each unit of its class group, and a unit's own traits and its relationship with the leader can move the cost; it never goes below 0. symphony-of-war-squads/unit-cost
scripts/591#L5289-L5316 — capacity_usedSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L5326-L5363 — loyalty, its limits, and capacity_used_baseSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L5365-L5389 — capacity_trait_mod: the leader's classgroup reductions and the unit's trait costsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L3108-L3133 — squad_capacity_used: the first formation slot is costed as leaderSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L504-L507 — Archer Captain: 2 less capacity, leader onlySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L519-L522 — Soldier Captain: heavy infantrySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L534-L536 — Knight Captain: mounted meleeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L1774-L1776 — Shock and Awe: firearmsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L2060-L2068 — Raid Captain: light infantrySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Classes.rvdata2 — the classgroups bigcat (Warcat, Behemoth), dragon, dragonrider, necromancer and risenChecked by claude-agent, 2026-11-17 — read capacity_used, loyalty, loyalty_min, loyalty_max, capacity_used_base and capacity_trait_mod in script 591, each defined once in the live scriptsRevised after a check by a second AI model, 2026-11-17.Exceptions in the same routine: a Nephilim doppelganger (a New Game+ option) leads at 15 unless the Nerfilim option is on, and costs 15 in the ranks; four story pairings cost 5 (Sybil and Abigayle, once switch 685 is on; Nibbler under Abigayle; Edelia under Diana; use_capacity_exempt?, L5405-L5414); risen made free by a necromancer in the squad cost 0, one per necromancer. A recruit's loyalty can't fall below −2, or 0 for dragons and big cats, or 2 for conscripts once Professionalism is researched. The leader slot is the formation's first entry, which is the squad's leader (Game_Squad#leader, L2774-L2777). The captain traits are Archer Captain (archers), Soldier Captain (heavy infantry), Knight Captain (mounted melee), Shock and Awe (gunners) and Raid Captain (light infantry). Risen Knights and Risen Archmages are in the necromancer group, which the cost test reaches before the risen one, so they cost 15, not 8. Equipped artifacts add their own capacity cost (L3129-L3131).
Cited by: Symphony of War: The Nephilim Saga
A squad of more than 5 units pays extra capacity on top of its units' costs: 2 for the 6th unit, then 4 more for the 7th, 6 for the 8th and 8 for the 9th, so a full squad of 9 pays 20 extra. The step is a New Game+ option (+1, +2 or +3; +2 by default), and Ludicrous difficulty raises it to at least +3. symphony-of-war-squads/overpacking
scripts/591#L3148-L3172 — squad_capacity_packed_penalty_full: (1 + … + units over 5) × the step; num_capacity_unitsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/297#L78-L87 — Gamerule: squad_overpacking_cost, option 0, 1, 2 → 1, 2, 3Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/298#L144 — NG Flags: default option 1Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/298#L247-L248 — ng_option_limit: at least 2 on LudicrousSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/754#L264 — Window_NewGamePlusOptions: the option's labels +1, +2, +3Checked by claude-agent, 2026-11-17 — read the penalty and num_capacity_units in script 591, squad_overpacking_cost in script 297 and the option's default and limit in script 298; Ludicrous is difficulty 3 (TERMS_LUDICROUS, script 154; is_lunatic_difficulty?, script 297 L6-L8)Checked by a second AI model, 2026-11-17.Risen that a necromancer in the squad makes free don't count toward the 5. The commented-out table under the formula (L3154-L3163) gives the same 2, 2 + 4, 2 + 4 + 6 and 2 + 4 + 6 + 8 for 6 to 9 units. The help text calls the option "Increased Unit Capacity cost past 5 Units in a Squad" (script 298, L33).
Cited by: Symphony of War: The Nephilim Saga
The leader is the squad's first unit. When the player forms a squad, only story characters, Azuros, and units whose class line allows it can found it: war cats, behemoths and the risen are marked unable, and the lines the class table leaves unmarked (Fighter, Bowman, Medic, Militia, Drakeling and the riderless dragons) can't lead either. The leader's Leadership sets the squad's capacity and its leader-only traits act for the whole squad. symphony-of-war-squads/leader
scripts/591#L5276-L5280 — leader_possibleSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L8264-L8267 — classtree_leader_possible: the class tree's leader_possibleSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/152#L49-L62 — HashRecursive: an unset key at the last level reads nilSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/279#L961 — ClassTrees: warcat can't leadSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/279#L978 — ClassTrees: behemoth can't leadSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/635#L279-L280 — Scene_Organize: a new squad needs a leader_possible unitSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/606#L27-L28 — Window_SquadQuick: the star is drawn only for units that can leadSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L3071-L3074 — leader_trait_objects: the leader's leader_only traitsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L2774-L2777 — Game_Squad#leader: the set leader, else the first memberChecked by claude-agent, 2026-11-17 — read leader_possible and classtree_leader_possible in script 591 and HashRecursive in script 152; listed script 279's class lines against its leader_possible lines: 67 set it true, 9 false (warcat, behemoth, seven risen lines), and fighter, bowman, medic, militia, dragon, drakeling, bluedragon, reddragon and silverdragon don't set itRevised after a check by a second AI model, 2026-11-17.CLASSTREE_ASSOC is a HashRecursive of depth 1 (script 279, L105), so a class line without the key reads nil and can't lead. Enemy and scripted squads take their first formation slot as leader (squad_postset, L1382; the troop builder, L4123); the check isn't shown to apply to them. The quick-squad window marks units that can lead with a star (script 606, L27-L28). There are 40 leader-only traits in Traits Setup (script 217); the captain traits that cut capacity are among them.
Cited by: Symphony of War: The Nephilim Saga
The front line shields the units behind it from being picked as targets. When a unit chooses a target, an enemy with another living enemy anywhere in front of it, no more than half a tile to the side, has its weight cut to slightly below 0, and such a unit a full tile to the side halves its weight, once for each. A unit cut that way is chosen only when no enemy has a positive weight. Every class a player can field blocks; only the Girl, the Boy, the Dark God and Zanatus's arms, which have no archetype, don't. Spells, arced shots and cannons skip the check, a unit with Guile ignores it, and stealth strikes reverse it, so units behind shield those in front; arrow and crossbow shots at melee range use a softer rule. symphony-of-war-squads/block
scripts/461#L391-L406 — SoW Action, evaluate_item_sow: value × block_tgr, less row / 100, and the exceptionsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/461#L457-L466 — the weighted draw: a value below 0 loses to any above 0Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/462#L66-L117 — SoW Action Other: blocked_by_light_mod and blocked_by_heavy_modSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/462#L168-L173 — block_tgr: the two multipliedSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/462#L36-L44 — can_block_light and can_block_heavy: by archetype or classgroupSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L52-L84 — Cover and Block: full block × 0 within 1, half block × 0.5 within 2, rates multiplySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L107-L110 — the archetypes that blockSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/360#L1766-L1776 — no covermod implies no blockmod; reverse blockmodSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Skills.rvdata2 — the tags: <no covermod> on 32 skills, <no blockmod> on 15, <reverse blockmod> on 5Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Classes.rvdata2 — every named class but Girl (75), Boy (76), Dark God (80) and Zanatus Arm (81-84) has a blocking archetype or block classgroupChecked by claude-agent, 2026-11-17 — read evaluate_item_sow and its draw in script 461 and the block methods in script 462 (each defined once); counted the skill tags and listed the class archetypes in the databaseRevised after a check by a second AI model, 2026-11-17.Light and heavy blockers now have the same numbers; the comment that lights block only the unit directly behind (script 264, L56-L57) is stale, since both methods take any blocker in a row in front. With HALF_BLOCK_DISTANCE_CALC a blocker a full tile to the side multiplies the weight by 0.5 to the power (2 − 2 + 1), which is 0.5. Blocked units also lose row / 100, so the cut weight is slightly negative. Wide Guard on the blocker widens it by half a tile. A Venerable leader is weighted −0.1, and a Behemoth pouncing from high ground onto a target that isn't on high ground skips the check. The arced shots are the bows' and crossbows' range-2 attacks (Arc Arrow Attack and its kin); the softer rule for straight shots (straightshot_block_mod, script 462 L229-L255) adds the best target's value times a factor that is multiplied by 0.5 for each row in front with a blocker and by 0.8 more for each row with two or more.
Cited by: Symphony of War: The Nephilim Saga
Cover doesn't check position. Every attack without the no-cover tag deals 0.8 times its damage to whoever it hits, front row or back: the routine works out whether the target is covered by a unit in front, then applies the rate whatever the answer. Spells and heals carry the tag and skip it (all but Mage Charge), a unit with Guile ignores it, and arrow and crossbow shots at melee range use a positional rule instead. symphony-of-war-squads/cover
About: Symphony of War: The Nephilim Saga Damage modifier
CodeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a ·scripts/360#L394-L410 — calc_cover_mod: covered is set and never readSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/358#L328 — DAMAGE FORMULA SOW: cover_mod default 0.8Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/360#L321-L326 — eval_preset_formula: damage × cover × rowSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L26-L30 — Cover and Block: the comment, apply the mod when coveredSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Skills.rvdata2 — <no covermod> on 32 skills: every spell and heal but Mage Charge, plus Oracle Shield; no skill sets <cover mod N>Checked by claude-agent, 2026-11-17 — read calc_cover_mod and eval_preset_formula in script 360 (each defined once) and every cover_mod setting in script 358 (defaults, melee, striking and dragon formulas, all 0.8); counted the skill tagsChecked by a second AI model, 2026-11-17.Checked by a second AI model, 2026-11-18.The covered_by_light and covered_by_heavy checks (script 462, L144-L155 and L258-L272) are called here and nowhere that changes damage, so the rate applies to front-row units with nobody in front of them. The effect is a flat 20% cut on physical attacks, on top of the row modifier (symphony-of-war/row-modifier).
Cited by: Symphony of War: The Nephilim Saga
Arrow and crossbow shots at melee range are the one attack whose cover depends on position. Each living unit in front of the target and no more than half a tile to the side multiplies the damage by 0.65 if it's a heavy unit (heavy infantry, heavy cavalry, dragons, Arbalests, Risen Swordsmen) or 0.75 if a light one (light infantry, light cavalry, archers, gunners); squared when it stands directly in front, and square-rooted when it's two rows ahead. Front-row targets take full damage, and supports and mages give no cover. The Ranger's bolt is also a sniping shot, so it takes the square root of the result. symphony-of-war-squads/straight-shot-cover
About: Symphony of War: The Nephilim Saga Damage modifier
CodeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a ·scripts/462#L184-L227 — straightshot_cover_modSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/462#L25-L33 — can_cover_light and can_cover_heavySymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/264#L107-L108 — the cover archetypesSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Classes.rvdata2 — the heavycover classgroup on Arbalest (111) and Risen Swordsman (117); Ranger bolt (skill 16) carries straightshot and snipeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/360#L397-L402 — calc_cover_mod: straightshot attacks take this, sniping shots its square rootSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · Data/Skills.rvdata2 — <attackgroup straightshot> on 8 skills: arrow, crossbow, ranger bolt, arbalest and samurai close shotsChecked by claude-agent, 2026-11-17 — read straightshot_cover_mod and the cover archetype checks in script 462, each defined once, and the straightshot branch of calc_cover_mod in script 360Revised after a check by a second AI model, 2026-11-17.A coverer with Wide Guard reaches a tile to the side, and one directly in front with Wide Guard counts at the power 2.1. A target with the Monarch trait is covered by every heavy unit in its squad, wherever it stands. Two rows ahead and directly in front, a heavy unit gives 0.65 to the power 0.5 × 2, so 0.65 again.
Cited by: Symphony of War: The Nephilim Saga
Two squads fight in rounds until both are out of actions. Each unit has 2 actions when the squads meet at melee range and 1 at range 2 or more, and a squad lasts as long as its best-supplied member. Each round every living unit picks one skill, and the round runs in four steps, in each of which the attacking squad acts before the defending one: effects and buffs; firearms, spells, ranged attacks, light melee, melee, risen and heals; late heals; summons. At range 2 or more the second step holds only spells, ranged attacks, risen and heals. Within each step, faster skills go first. Ambushes, the Merciful tactic, Initiative, Soul of Sayunaa and Nephilim battles change the order. symphony-of-war-squads/battle-rounds
About: Symphony of War: The Nephilim Saga Turn order
CodeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a ·scripts/456#L59-L82 — ActionManagerSoW: next_turn and check_all_actions_completedSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/456#L88-L169 — make_volley_segments_v2: aggressor's volleys then defender's in each priority groupSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/456#L398-L409 — make_all_actions: one action per living battlerSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/456#L704-L710 — a squad's counts are its members' highestSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/266#L119-L132 — Volley Segements: VOLLEY_SEGMENT_ORDER_V2 and the ranged orderSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L5199-L5210 — init_action_countsSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L5251-L5257 — base_action_count_range1 2, range2 1Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/457#L55-L61 — Game_ActionVolley: actions sorted by action_speed, highest firstSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/458#L70-L77 — volley_segment: the skill's segment, gunners split by rowSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/458#L116-L122 — action_speed: skill speed × 10 + AGISymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L2784-L2799 — initiative_check (3 uses) and soulofsayunaa_check (melee range, 2 uses), reset togetherChecked by claude-agent, 2026-11-17 — read next_turn, make_volley_segments_v2 (the live builder; make_volley_segments, the older one, isn't called from next_turn), the action counts in script 591 and the segment order in script 266; script 450's next_turn is the battle scene's and calls ActionManager.next_turnRevised after a check by a second AI model, 2026-11-17.Speed is the skill's speed × 10 + the unit's AGI, the stat the game calls Skill. A skill with no segment tag is melee (RPG::Skill#volleysegment, script 456 L723-L725). With the Smart Gunners option (on by default and forced on in Ludicrous) gunners fire by row, front row first. The changes: an ambushing attacker's target doesn't act in round 1; a Merciful attacker doesn't act in round 1; a defender whose leader has Initiative (up to 3 times a phase) goes first for the whole battle; Soul of Sayunaa, only at melee range and at most twice a phase, gives the defender a free opening round with only its Sayunaa users. The Duelist's Contract adds an action at melee range (L5205). Heals appear in both the normal and the late group; an action that has run (all_done) is pruned from a volley (script 457, L41-L48).
Cited by: Symphony of War: The Nephilim Saga
High morale buys extra actions. When a squad has used all its actions in a battle, each living member rolls once: its chance of one free action is 1% for each point of morale above 50, so 30% at 80 morale. Below 50 there is no chance. A unit with the Mirage trait always gets one more, and so does a leader with Weapon Master. symphony-of-war-squads/free-actions
About: Symphony of War: The Nephilim Saga Turn order
CodeSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a ·scripts/456#L608-L631 — roll_moraleSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/456#L70-L82 — rolled once a squad's remaining actions reach 0Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L11-L13 — Morale: threshold 50, rate 1.0Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L524-L531 — a unit's effective morale is its squad'sChecked by claude-agent, 2026-11-17 — read roll_morale and check_all_actions_completed in script 456 and the unit's effective_morale in script 265, each defined onceChecked by a second AI model, 2026-11-17.Guardian Impulse, Executioner and Desperation can each add one more (free_action_trait_check, script 591 L5022-L5028). The free actions come after the base ones (next_action_free?, L5212-L5216), so they extend the battle by a round for the units that won one. Haughty units read 40 and risen 50, so neither can roll one.
Cited by: Symphony of War: The Nephilim Saga
Morale belongs to the squad. Each unit carries a value, but the squad's morale is the average over its non-risen members plus bonuses: up to +20 from relationships with characters in squads within 3 tiles, +5 for each squad within 3 tiles led by a unit with Donar's Presence, and −10 for each adjacent enemy squad beyond the first, after adjacent friendly squads cancel enemies one for one. Every member fights at that figure. A leader with the Skull of Rowdain fixes it at 25, and one with Haughty at 40. symphony-of-war-squads/squad-morale
scripts/265#L223-L238 — Game_Squad#morale and morale_fixedSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L267-L278 — effective_morale and average_mp over the non-risen membersSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L337-L374 — party_morale_boosts and relationship_morale_boostSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L394-L412 — surrounded_morale_change and adjacent_enemiesSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L37 — MORALE_ADJACENT_ENEMY_PENALTY −10Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L70-L81 — relationship bonuses 0, 5, 10, 10, at most 20, within 3 tilesSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L524-L531 — a unit's effective morale is its squad'sSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L1763-L1764 — Haughty: Beatrix is not affected by the morale of her squadSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L1892 — the name Skull of RowdainSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/217#L1788 — the name Donar's PresenceChecked by claude-agent, 2026-11-17 — read the Game_Squad and Game_Soldier morale methods in script 265; each is defined once except morale_base, which script 902 redefines (morale-turn)Revised after a check by a second AI model, 2026-11-17.Haughty's text says Beatrix "is not affected by the morale of her squad", and a Haughty unit in the ranks does read 40 on its own. But the squad's morale_fixed returns 40 whenever its leader has Haughty, so a squad Beatrix leads fights at 40, below the 50 where morale stops cutting damage (symphony-of-war/morale-damage). The average includes dead members' values. The aura search counts the squad itself at distance 0, so relationships inside the squad count. Relationship bonuses go only to the player's squads, as does Donar's Presence.
Cited by: Symphony of War: The Nephilim Saga
Every player squad below its morale base gains the extra 5 a turn meant for rest tiles (a town or base), wherever it stands: only the rest tile's raised base checks the tile. At the start of each player turn every squad's morale moves toward its base, normally the mission's value for its side. A squad above its base loses 10% of the excess. A squad below gains 5, or 10 for the player's squads, up to the base, and a player squad on a rest tile has its base raised by 50. Popular Support, relationships, heat waves and leaderless enemy squads change the gain. symphony-of-war-squads/morale-turn
scripts/265#L151-L189 — Morale.update_morale_for_turn_endSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L39-L50 — MRG_BASE 5, MRG_BOOST_REST 5 'when on a rest tile', LIMIT_PENALTY 0.1, LIMIT_BOOST_REST 50Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/902#L282-L305 — OPTIMIZATION FIXES: the live morale_baseSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L4522-L4532 — refresh_all_morale: every map squad and player squadSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/573#L1851-L1864 — Tactical Map Tie-In: turn_starting calls refresh_all_moraleChecked by claude-agent, 2026-11-17 — read update_morale_for_turn_end in script 265 (defined once) and its caller; morale_base is defined in script 265 (L424) and again in script 902, which loads later, so 902's runsRevised after a check by a second AI model, 2026-11-17.Checked by a second AI model, 2026-11-18.The rest bonus line sits inside the player-squad test but outside the rest-tile test (L155-L158); its constant's comment says "additional amount to gain when on a rest tile". Enemy squads don't get the rest rules (MORALE_REST_PLAYER_ONLY). The base is −20 under a Forced March leader, and 50 at the home base. Script 265's morale_base also added 1 per 5 points of unused capacity; script 902's replacement, headed "repealed on the fly squad-capacity lookup", comments that out, so spare capacity no longer raises morale. The other changes: Popular Support raises the base and the gain; up to 5 more from relationships; in a desert in a heat wave a squad loses 10 and gains nothing unless its leader is a Desert Warrior; an enemy squad whose leader is dead gains nothing. Every member is then set to the new value. A base set on the squad itself (@morale_base) comes before the mission's (script 902, L288).
Cited by: Symphony of War: The Nephilim Saga
In battle a unit loses 12 morale for each full HP bar of damage it takes, so a hit for a quarter of its HP costs 3. When a unit dies, every member of its squad loses 4 morale plus 0.5 for each unit the squad is short of 9, so deaths hurt small squads more; a leader's death doubles it, or quadruples it if the enemy has the Psych Warfare tech. Risen lose no morale. In a fought battle a risen's death costs its squad nothing, but auto-resolved battles skip that test and charge it like any other death. symphony-of-war-squads/morale-loss
scripts/450#L257-L262 — Battle Revisions: damage share × MORALE_DAMAGE_PENALTYSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/450#L321-L335 — the death penalty for every memberSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/549#L316-L332 — Extra Autobattle Stuff: the same penalty with no risen testSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L61-L65 — DEATH_PENALTY 0, GROUP 4, GROUP_EX 0.5, DAMAGE_PENALTY 12Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/265#L578-L584 — apply_morale_damage: none for risen, × 0.75 for Stalwart enemiesSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/362#L163-L165 — SquadManager Front: members are the whole formation, dead or aliveChecked by claude-agent, 2026-11-17 — read the hit and death branches in script 450 and apply_morale_damage in script 265, each defined onceRevised after a check by a second AI model, 2026-11-17.The squad size in the death penalty counts dead members too. Overpower scales the damage term, Colossal adds 2 and Hand of Zanatus doubles it. Under the New Game+ Stalwart Enemies option, enemy units take 75% of it. When a whole squad surrenders, its opponents' living non-risen units gain 5 (perform_squad_surrender, script 453 L90-L96).
Cited by: Symphony of War: The Nephilim Saga
A player unit's third and later battles in one turn cost morale: 5 at the start of the third, 7 at the fourth, 9 at the fifth, and so on. The count resets at the start of each player turn. On other difficulties the New Game+ magic fatigue option scales it by 0.75, 1 or 1.5 (1 by default). Ludicrous multiplies it by 1.5 and locks that option at 150%, so the loss there is 2.25 times as large. symphony-of-war-squads/battle-fatigue
scripts/265#L293-L316 — init_battle_morale: morale_fatigue +1 each battle, loss from 3Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/297#L382-L395 — fatigue_multiplier_by_teamSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/298#L264-L265 — ng_option_limit: magic fatigue forced to 2 on LudicrousSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/754#L260 — Window_NewGamePlusOptions: the option locked on Ludicrous, labels 75%, 100%, 150%Symphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/360#L188-L192 — reset_heal_fatigue clears morale_fatigueSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/591#L4533-L4538 — after refresh_all_morale, every squad's fatigue resetSymphony of War: The Nephilim Saga 1.10.23 (Steam, Windows), Game.rgss3a · scripts/462#L1016-L1022 — a squad's on_battle_start runs init_battle_moraleChecked by claude-agent, 2026-11-17 — read init_battle_morale in script 265, the multiplier in script 297, the reset in script 360 and its calls in script 591, each defined onceRevised after a check by a second AI model, 2026-11-17.The count also resets when a squad's move is refreshed (refresh_moves, L4559-L4562, used by Second Wind and Liberator). Only the player's units tire (the method returns for other teams first). In the same routine, an enemy with the Charging+ tech that cavalry-charges a squad takes 10 off its members' morale. The fatigue option's default is 1 (script 298, L151).
Cited by: Symphony of War: The Nephilim Saga