a question about boolean logic.
I've been looking at the city milita code block and I was wonder how you would go about adding boolean logic to check what the most up to date unlocked tech was for the unit.
Here is the complete code block in question for reference.I beleive all i need is the reference name <UnitType InternalName="Unit_CityArcher_Altarian_Party"> to override the core file code
- <UnitType InternalName="Unit_CityArcher_Altarian_Party">
- <DisplayName>City Archer</DisplayName>
- <Description>Your citizens will defend their cities.</Description>
- <Class>CityArcher_Party</Class>
- <RaceType>Race_Type_Altarians</RaceType>
- <CanBeDesigned>0</CanBeDesigned>
- <Gender>Male</Gender>
- <HasWages>0</HasWages>
- <IsSovereign>0</IsSovereign>
- <GroupingType>UnitGroupingType_Party</GroupingType>
- <LevelMilestone InternalName="L1">
- <Level>1</Level>
- </LevelMilestone>
- <SelectedAbilityBonusOption>Blood_Altarian</SelectedAbilityBonusOption>
- <Equipment>Shortbow_Crude</Equipment>
- <Equipment>F_Head_Wraith_Mesh_02</Equipment>
- <Equipment>Noble_Surcoat_Solid_ID1</Equipment>
- <Equipment>Peasant_Pants_ID2</Equipment>
- <Equipment>Sovereign_Bandit_Hair_ID1</Equipment>
- <Equipment>Sovereign_Warrior_Shirt_Crappy_ID2</Equipment>
- <Prereq>
- <Type>Race</Type>
- <Attribute>Race_Type_Altarians</Attribute>
- </Prereq>
- <Backstory>"I seek no mercenaries; the Silver Swordsmen and their ilk are unwelcome in the ranks of my army. What I seek are heroes - those who wish to make bettering this world their life's adventure!" These words - uttered at the nadir of the Nobles Revolt, when the armies of Procipinee surrounded Relias and his companions at the foot of Mount Essa - remain the rallying cry for all Altar's soldiers. This is an army of adventurers - many of whom are famous in their own right for the quests they have completed - an army that will sometimes dare the impossible and often achieve it.</Backstory>
- <AnimationPack>MaleSovereignAnimationPack</AnimationPack>
- <BattleAnimationBehavior>Melee</BattleAnimationBehavior>
- <ClothMapScale>1.6</ClothMapScale>
- <ClothPoseIndex>1</ClothPoseIndex>
- <Color_Hair>173,128,93,255</Color_Hair>
- <CutSceneDataPack>DefaultUnitCutscenePack</CutSceneDataPack>
- <EyeTexture>gfx\eyes\blinks\eyeblink_m4_blk.png</EyeTexture>
- <InfoCardBackground>BG_KingdomRugged</InfoCardBackground>
- <ModelPath>Gfx\HKB\Units\K_Male_Mesh_01.hkb</ModelPath>
- <ModelScale>1</ModelScale>
- <MovingSFX>TEMP_KnightMarching1</MovingSFX>
- <OnHitParticleName>Bloody_OnHit</OnHitParticleName>
- <SkeletonPath>Gfx\HKB\Units\K_Male_Skeleton_01.hkb</SkeletonPath>
- <SoundPack>SoundPack_Generic_Male</SoundPack>
- <TacticalModelScale>1.5</TacticalModelScale>
- <Texture_Eyes>gfx\eyes\blinks\eyeblink_m4_blk.png</Texture_Eyes>
- <Texture_Skin>K_Male_beard_Texture_01.png</Texture_Skin>
- <UnitModelType>KingdomMale</UnitModelType>
- </UnitType>