Hands-On Usage
add_field_marshal_role is commonly used in scripted events or national focus completions to promote a character to field marshal, granting them the ability to command large army groups. For example, in the German focus tree, you can appoint Manstein as field marshal through a national focus:
focus = {
id = GER_appoint_manstein
...
completion_reward = {
add_field_marshal_role = {
character = GER_erich_von_manstein
traits = { brilliant_strategist }
skill = 4
attack_skill = 3
defense_skill = 3
planning_skill = 4
logistics_skill = 2
}
}
}
Synergy
[create_field_marshal](/wiki/effect/create_field_marshal): If the character does not yet exist in the game, you must first use this command to dynamically create the character entity, then use add_field_marshal_role to grant them the field marshal role.
[add_trait](/wiki/effect/add_trait): Add additional general traits after assigning the field marshal position to achieve more fine-grained ability customization.
[promote_character](/wiki/effect/promote_character): Use in conjunction when promoting a character from a lower position to ensure consistency in their organizational hierarchy status.
[has_character](/wiki/trigger/has_character): Verify before execution that the target character exists in the current country, avoiding silent script failures due to unloaded characters.
Common Pitfalls
- Forgetting the
character field in COUNTRY scope: You can only omit character = ... when inside CHARACTER scope. If used directly in a country event's option block without specifying the character token, the script will fail silently without error reporting, making it extremely difficult to debug.
- Mismatch between the sum of five skill values and
skill: skill represents the field marshal's overall level display, while the five sub-skills are the actual calculation source. Inconsistency between them won't produce an error but will cause numerical values to differ from expectations. It's recommended to plan the total skill tier reasonably based on sub-skills.