aliens

Author Topic: [Answered] "requires" for "pages" within ufopedia articles  (Read 2714 times)

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
[Answered] "requires" for "pages" within ufopedia articles
« on: April 28, 2019, 09:21:25 pm »
Hi Guys!

The "pages" its very good in Ufopedia, but i needed "requires" too, because some ammo type need research, but the pages is there, before researched.

Example:

Code: [Select]
    pages:
      - text: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA1
        title: STR_HEAVY_PLASMA_BLASTER_V2
        ammoSlot: 0
        requires: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA1
      - text: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA2
        title: STR_HEAVY_PLASMA_BLASTER_V2
        ammoSlot: 1
        requires: STR_HEAVY_PLASMA_BLASTER_V2_UFOPEDIA2

Thank you!
« Last Edit: February 14, 2023, 10:28:44 am by Meridian »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [Suggestion] requires for pages
« Reply #1 on: April 30, 2019, 01:07:49 am »
Changing number of pages in article based on research will be very hard. To make it correct way I would need refactor whole article handing, and nearly rewrite it from scratch.

But looking on your example, why not separate articles for each attack? Each page have nearly nothing in common with each other and have different research requirements. Goal of multi page articles was to handle one big thing that do not fit on one screen.