OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: Biggieboy on April 28, 2019, 09:21:25 pm

Title: [Suggestion] requires for pages
Post by: Biggieboy 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!
Title: Re: [Suggestion] requires for pages
Post by: Yankes 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.