Author Topic: Show determined ufopedia topic.  (Read 3228 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Show determined ufopedia topic.
« on: January 23, 2017, 02:21:24 pm »
Well .. Suppose we have research project "tech1", and set of ufopedia topics from different categories, depending from this research: " craft weapon1", "equipment2", " tech1".
As i see, we will always got "craft weapon1" shows up when research completed. Even if we use:
Code: [Select]
lookup: tech1 No matter.
But. If " tech1" is in same category with "craft weapon1", then we got it right.
 Am i right?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8644
    • View Profile
Re: Show determined ufopedia topic.
« Reply #1 on: January 23, 2017, 03:13:08 pm »
It's hard to explain how it works exactly... it's part of that research mess... but you can use a workaround like this instead:

- research "tech1" unlocks a dummy zero-cost research "tech1_zzz"
- one ufopedia article (of your choice) should depend on "tech1" (let's say article "tech1"... pedia article with the same name as the research is safest to use)
- other ufopedia articles should depend on research "tech1_zzz" (let's say articles "craft weapon1", "equipment2")

This approach will unlock all 3 ufopedia articles and show the one you decide ("tech1" in this example).

PS: Unless I made a mistake somewhere... but this is the general idea used also in other mods at the moment.

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Show determined ufopedia topic.
« Reply #2 on: January 23, 2017, 05:42:51 pm »
I see... Similar to live aliens.
Thanks, i will use this metod.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Show determined ufopedia topic.
« Reply #3 on: February 05, 2017, 07:35:15 pm »
UFOPedia topics are unlocked by their dependencies. If you set fourteen topics to all depend on Alien Grenade, then when you research Alien Grenade, all fourteen topics will show up in the UFOPedia.

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Show determined ufopedia topic.
« Reply #4 on: February 05, 2017, 08:11:08 pm »
UFOPedia topics are unlocked by their dependencies. If you set fourteen topics to all depend on Alien Grenade, then when you research Alien Grenade, all fourteen topics will show up in the UFOPedia.
But only one will pop up whe research is done. And question was about it.
And yes, metod works with all. Except MC lab, dunno why.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Show determined ufopedia topic.
« Reply #5 on: February 06, 2017, 12:42:04 am »
The one that pops up seems to be based on list order. You just have to make it show up earlier in the UFOPaedia. You might be able to give it a low list order amount but have it show up later if it's in a later category, but I don't know.

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Show determined ufopedia topic.
« Reply #6 on: February 06, 2017, 07:06:30 am »
No offense, but please, read Meridian's post.