aliens

Author Topic: [Answered] Presenting multiple UFOPaedia pages  (Read 1912 times)

Offline skyhawk

  • Colonel
  • ****
  • Posts: 115
    • View Profile
[Answered] Presenting multiple UFOPaedia pages
« on: April 27, 2021, 05:33:21 am »
I have a feeling this has been discussed before, but I'm not having any luck finding it, so I present this question here:

Is there a way to present multiple new UFOPaedia pages to the player at a time? Take this configuration for example:

Code: [Select]
  - id: STR_BASIC_TOOLING
    type_id: 10
    section: STR_UFO_COMPONENTS
    listOrder: 6501
    requires:
      - STR_AQUA_PLASTICS
      - STR_ZRBITE
    image_id: UP066.BDY
    text: STR_BASIC_TOOLING_UFOPEDIA

Code: [Select]
  - id: STR_PLATED_DIVING_SUIT_UC
    type_id: 15
    section: STR_WEAPONS_AND_EQUIPMENT
    requires:
      - STR_AQUA_PLASTICS
      - STR_ZRBITE
    text: STR_PLATED_DIVING_SUIT_UFOPEDIA
    image_id: UP023.BDY
    listOrder: 1699

My expectation is that when I have researched both STR_AQUA_PLASTICS and STR_ZRBITE, I should be presented with 3 pages - Either STR_AQUA_PLASTICS or STR_ZRBITE, then when I click OK it should pop up with STR_BASIC_TOOLING, then when I click OK it should pop up with STR_PLATED_DIVING_SUIT_UC.

The current behavior is that it pops up with STR_AQUA_PLASTICS or STR_ZRBITE, then moves on to tell me I can now manufacture STR_PLATED_DIVING_SUIT_UC. If I manually open the pedia I can find these new pages, but that's not really an ideal way to present lore and information to the player.

I know that the research tree code is a long-standing point of irritation, and I apologize for poking it.
« Last Edit: February 12, 2023, 11:20:35 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9009
    • View Profile
Re: Presenting multiple UFOPaedia pages
« Reply #1 on: February 12, 2023, 11:19:01 am »
Is there a way to present multiple new UFOPaedia pages to the player at a time?

No, the engine doesn't support what you're looking for.

The "requires" in pedia definition only applies when browsing the pedia manually.

When the pedia articles pop up after finished research, they can display a maximum of 2 articles:
 - one derived from the newly researched topic
 - one related to a getOneFree bonus (if there was any)