OpenXcom Forum

Modding => Work In Progress => Topic started by: Nord on January 23, 2017, 02:21:24 pm

Title: Show determined ufopedia topic.
Post by: Nord 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?
Title: Re: Show determined ufopedia topic.
Post by: Meridian 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.
Title: Re: Show determined ufopedia topic.
Post by: Nord on January 23, 2017, 05:42:51 pm
I see... Similar to live aliens.
Thanks, i will use this metod.
Title: Re: Show determined ufopedia topic.
Post by: The Reaver of Darkness 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.
Title: Re: Show determined ufopedia topic.
Post by: Nord 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.
Title: Re: Show determined ufopedia topic.
Post by: The Reaver of Darkness 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.
Title: Re: Show determined ufopedia topic.
Post by: Nord on February 06, 2017, 07:06:30 am
No offense, but please, read Meridian's post.