Results 1 to 3 of 3

Thread: Displaying Garrison Forces on buildings previously without Garrisons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Displaying Garrison Forces on buildings previously without Garrisons

    Hey folks,

    I'm trying to have the building tooltips show the units garrisoned - so far unsuccessful.

    My goal is to allow the player to see on the tooltip what units are added to the garrison, for example, through building an encampment.
    Adding the unit in question to the building as garrison works, the units are correctly spawned.

    What eludes me, however, is how to change the tooltip to show the garrison, similarily as to how the castle and the level 4 recruiting buildings do. What am I missing?

  2. #2

    Default Re: Displaying Garrison Forces on buildings previously without Garrisons

    Okay, it seems the problem's not with the building but with my custom units.
    Is there something special I need to do so that custom garrison units are not only spawned, but also shown on the building tooltips?

  3. #3

    Default Re: Displaying Garrison Forces on buildings previously without Garrisons

    Okay, I found it out myself. The answer is that only those units are shown in the UI that are allowed in the "Units_to_groupings_military_permissions_table".
    Unless the faction specified (or the general group, such as japan, ikko_ikki, and so on) is set for the unit, it may be spawned, but will not show on the tooltip.
    This is also why Samurai Retainer aren't shown in an ikko_ikki castle. They're not allowed in the groupings.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •