Duplicate entries in unit encyclopedia
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Duplicate entries in unit encyclopedia
Hi! (I haven't posted for a while so sry if this is the wrong forum)
My Reign of the Lords add-on duplicates alot of units (using
However, this fills the encyclopedia with twice as many entries.
Is there a way to hide the new units created with
(Note I do still want them to have unit descriptions when right clicked on)
Thank you!
My Reign of the Lords add-on duplicates alot of units (using
[base_unit]
code to make slight modifications, usually to who the unit advances to).However, this fills the encyclopedia with twice as many entries.
Is there a way to hide the new units created with
[base_unit]
so that they dont show up when browsing the encyclopedia?(Note I do still want them to have unit descriptions when right clicked on)
Thank you!
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
- MoonyDragon
- Posts: 149
- Joined: November 29th, 2017, 5:46 pm
Re: Duplicate entries in unit encyclopedia
I'd recommend you to hide the base/core units and to show the modified units instead. You can accomplish that via [hide_help].
Default L0 Era - Level 1 leaders with level 0 recruits!
Re: Duplicate entries in unit encyclopedia
That's a good idea! I'll do that!MoonyDragon wrote: ↑February 11th, 2021, 9:00 am I'd recommend you to hide the base/core units and to show the modified units instead. You can accomplish that via [hide_help].
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
Re: Duplicate entries in unit encyclopedia
This feels very straight forward, so I apologize for being dumb.
I've tried:
However, both Paragon's were still in the menu system. I also tried
Only things I can think of:
A) Will this also affect the help in the main menu (I didn't actually load a game just looked at the unit trees from mainmenu, I assume that should be modified) EDIT: Tested in game to the same outcome
B) Am I supposed to include this inside the [unit_type] like I am currently?
I've tried:
Code: Select all
[unit_type]
[base_unit]
id=Dune Paragon
[/base_unit]
id=ROLDune Paragon
experience=285
[hide_help]
type=Dune Paragon
[/hide_help]
...
[/unit_type]
type_adv_tree=Mage
but that didn't do anything either.Only things I can think of:
A) Will this also affect the help in the main menu (I didn't actually load a game just looked at the unit trees from mainmenu, I assume that should be modified) EDIT: Tested in game to the same outcome
B) Am I supposed to include this inside the [unit_type] like I am currently?
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
- Lord-Knightmare
- Discord Moderator
- Posts: 2365
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Duplicate entries in unit encyclopedia
This
Only things I can think of:
A) Will this also affect the help in the main menu (I didn't actually load a game just looked at the unit trees from mainmenu, I assume that should be modified) EDIT: Tested in game to the same outcome
B) Am I supposed to include this inside the [unit_type] like I am currently?
[hide_help]
tag belongs inside the [units][/units]
of your #ifdef MULTIPLAYER
This example was from UtBS (which is also the only example of the tag I remember in mainline):
(Past tense since this was removed after quenoth was made a subrace of elf)
Code: Select all
[units]
[hide_help]
type_adv_tree=Elvish Fighter,Elvish Shaman,Elvish Archer,Elvish Scout,Elvish Lord,Wose
type=Elvish Lady
[/hide_help]
[/units]
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Re: Duplicate entries in unit encyclopedia
I think adding the line
Example:
Ignore this post if you meant to hide the original and not the derivative.
hide_help=yes
would also work.Example:
Code: Select all
[unit_type]
[base_unit]
id=Peasant
[/base_unit]
id=WF_Peasant
advances_to=Spearman,Bowman,Sergeant
hide_help=yes
do_not_list=yes
[/unit_type]
Re: Duplicate entries in unit encyclopedia
Ah thank you Lord_Kniightmare I figured that it was going in the wrong place but haven't coded wml for a long time haha!
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.