[Solved] Additional building page in UI

Status
Not open for further replies.
Level 7
Joined
Jan 11, 2022
Messages
108
I was wondering if you can add additional page to building UI. Standard UI is filled with buildings already and I'm planning on adding more buildings. The problem is that there is no slot I can put a custom building in. I may be wrong but i think there was an additional building page in some campaign in Frozen Throne but I can't find it
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
I think the easiest is to have 2 separate worker units, each with different buildings constructed, then gave them a dummy ability based on Channel or whatever, detect when the ability is cast and replace unit 1 with unit 2.

This does have a few drawbacks (e.g. if the worker is carrying resources or has a buff, they are lost during the switch), but the triggering is very easy to do.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
You can do slightly better than what Chaosium suggests. It's possible to collide a custom spellbook with the build menu to put a spell inside the build menu. If you base it on the right spell with the right options the order to use the spell wouldn't interrupt movement or other orders. When this ability is cast you can then reverse Bear Form morph the worker into another version with a different "structures built" list, simulating a second page. This is preferable to replacing the unit because again it doesn't interrupt orders, retains carried resources/buffs/active cooldowns/items, keeps the unit selected, retains control-groups that the worker might be part of, and can work when the unit is stunned/paused.

A morphed unit can never build a structure that isn't on its build list initially; it'll queue it up and walk to the location but never place the building. So to avoid this problem you must have 1 more worker version than the number of pages you want (2 pages means 3 worker versions): one base version that has every building in its build list and then one version for each page of the build menu (with its own smaller "structures built" list). Player structures will train the base version, but the instant it enters the map you must reverse bear morph it into the "first page" version. Then all versions that can build will be able to do so normally since they initially had every possible structure from all the pages in their build list.
 
Status
Not open for further replies.
Top