DesertRose Posted 1 hour ago Report Share Posted 1 hour ago Is it possible to remove a requirement of a parent template? I want to create a champion unit that does not have the requirement of "phase_city". Quote Link to comment Share on other sites More sharing options...
guerringuerrin Posted 1 hour ago Report Share Posted 1 hour ago 4 minutes ago, DesertRose said: Is it possible to remove a requirement of a parent template? I want to create a champion unit that does not have the requirement of "phase_city". Take a look at this template. Is the Cimbrian Clubman (German Champion), available from the start. ( phase_village) https://gitea.wildfiregames.com/0ad/0ad/src/branch/main/binaries/data/mods/public/simulation/templates/units/germ/champion_infantry_maceman.xml 1 Quote Link to comment Share on other sites More sharing options...
guerringuerrin Posted 1 hour ago Report Share Posted 1 hour ago @real_tabasco_saucecorrect me if i'm wrong but You can try specify same way is done on that template and it should override parent's requirements: <Identity> <Civ>germ</Civ> <GenericName>Cimbrian Clubman</GenericName> <SpecificName>Kulbawigô</SpecificName> <VisibleClasses datatype="tokens">Champion</VisibleClasses> <Requirements> <Techs datatype="tokens">phase_village</Techs> </Requirements> <Icon>units/germ/infantry_clubman.png</Icon> </Identity> Quote Link to comment Share on other sites More sharing options...
real_tabasco_sauce Posted 1 hour ago Report Share Posted 1 hour ago you should be able to do -phase_city <Requirements> <Techs datatype="tokens"> -phase_city phase_town </Techs> </Requirements> 2 Quote Link to comment Share on other sites More sharing options...
DesertRose Posted 59 minutes ago Author Report Share Posted 59 minutes ago 37 minutes ago, guerringuerrin said: Take a look at this template. Is the Cimbrian Clubman (German Champion), available from the start. ( phase_village) https://gitea.wildfiregames.com/0ad/0ad/src/branch/main/binaries/data/mods/public/simulation/templates/units/germ/champion_infantry_maceman.xml Seeing what a roundabout method they took I fear a dumb a approach such as "-phase_city" is not possible. edit: I stand corrected, my dumb idea actually works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.