How to make upgrade “branches” (10x Arrows +/or 10x Mangonel)

Hi everyone,

I’m modding AoE4 and I want one building (Outpost) to have two upgrade branches:

  • Arrows branch: 10 upgrade levels (Arrow Tier 1 → Tier 10)

  • Mangonel branch: 10 upgrade levels (Mangonel Tier 1 → Tier 10)

The player should be able to switch the building weapon mode (Arrows ↔ Mangonel), and each branch should still have its own progression (e.g., after switching to Mangonel, the 10 Mangonel upgrades become available; switching back shows the Arrow upgrades again).

Right now, when I research one weapon upgrade, other weapon upgrade buttons disappear / become locked.

What’s the recommended approach for this?

  • multiple hardpoints + possible_blueprint_updates?

  • ActionTree_OpeningBranch conversion?

  • abilities/toggles instead of upgrades?

  • requirements logic to show only the active branch?

If anyone has implemented branching upgrades + weapon switching on a single building, I’d really appreciate pointers. Thanks!