Not sure about Orks.
Code: Select all
for(i=0; i<GetUnitCount(1); i++)
{
id = GetUnitID(0, i) ;
SetupStartAbilities(id, 0);
}
Code: Select all
id = PlaceUnit(25, 32, 2, 0, 0, "IMPERIAL_FIST_ASSAULT")
SetupStartAbilities(id, 0)
id = PlaceUnit(24, 33, 2, 0, 0, "RED_WOLVES_FLAMER")
SetupStartAbilities(id, 0)
id = PlaceUnit(24, 36, 2, 0, 0, "DARK_ANGEL_BOLTER")
SetupStartAbilities(id, 0)
id = PlaceUnit(25, 36, 2, 0, 0, "IMPERIAL_FIST_ASSAULT")
SetupStartAbilities(id, 0)
The loop works at the start, I avoided SetupStartAbilities(id, 0) running on the same unit more than once.
Both snippets are in the StartTurn(side) function, in the turn conditional.
Sanctus_Wolves_Abilities.txt in your campaign folder (with Campaign.txt).
Copy:
_\Warhammer 40000 Sanctus Reach\Data\scripts\CombatTools.BSF
Paste & create path (folders) if needed:
_\SANCTUS\CAMPAIGNS\CUSTOMCAMPAIGN\DATA\SCRIPTS\CombatTools.BSF
Copy:
_\Warhammer 40000 Sanctus Reach\Data\Battle\Scripts\AbilityHelpers.BSF
Paste & create path (folders) if needed:
_\SANCTUS\CAMPAIGNS\THREEVISIONSv3\DATA\BATTLE\SCRIPTS\AbilityHelpers.BSF
Open these new .BSF files and remove the "#" *all instances of "#", as:
this example:
FromFileOpen("#Sanctus_Wolves_Abilities")
would become:
FromFileOpen("Sanctus_Wolves_Abilities")
I think that works [is all that is needed].
You can make new units and set XP required to -1 so they auto-level. Campaign XP seems to be in one of the Campaign2.bsf files, see the given campaigns.
The Sanctus_Wolves_Abilities.txt file can also just be edited in your campaign folder and changed so
[UNIT]
LEVEL2 1 2 3 5 7 9 10 12 15 20 21 28 29 30 31 46
LEVEL3 1 2 3 5 6 7 8 9 10 11 12 13 15 16 18 19 20 21 22 28 29 30 31 46 47 48
LEVEL4 1 2 3 5 6 7 8 9 10 11 12 13 15 16 18 19 20 21 22 28 29 30 31 32 46 47 48
Gives random ability on level up
---
[UNIT]
LEVEL2 3
LEVEL3 12
LEVEL4 32
Gives fixed ability on level up
---
[UNIT]
START2 3
START3 5
START4 9
START5 10
START6 25
START7 32
Gives fixed abilities at start
---
see:
_\Warhammer 40000 Sanctus Reach\Data\Battle\Scripts\Abilities.BSF
For the ability numbering.
edit: I saw in the tooltip that it is eight reinforcement groups; 0-7
AI groups could be the same