Voiceline Targetlogic

I would like to add a dialogue soundset that plays when a unit selects gathering fish. There is a choice for most gathering targets that are named after common tags. Unfortunately none of the obvious tags for fish seem to work.

            <choice name="AbstractFish">
              <soundset name="Fishing">
              </soundset>
            </choice>

None of AbstractFish, AbstractFishOrWhale, Fish, Food, or Resource do anything to change it from the default voicelines. Is there a different tag I’m missing or is there somewhere else to specify that a tag is a valid soundset choice?

          <targetlogic>
            <choice name="default">
              <soundset name="FrenchSettlerMaleAcknowledge">
              </soundset>
            </choice>
            <choice name="enemy">
              <soundset name="FrenchSettlerMaleAttack">
              </soundset>
            </choice>
            <choice name="build">
              <soundset name="FrenchSettlerMaleBuild">
              </soundset>
            </choice>
            <choice name="Huntable">
              <soundset name="FrenchSettlerMaleGatherMeat">
              </soundset>
            </choice>
            <choice name="Tree">
              <soundset name="FrenchSettlerMaleGatherWood">
              </soundset>
            </choice>
            <choice name="AbstractFarm">
              <soundset name="FrenchSettlerMaleFarm">
              </soundset>
            </choice>
            <choice name="AbstractMine">
              <soundset name="FrenchSettlerMaleGatherCoin">
              </soundset>
            </choice>
            <choice name="AbstractResourceCrate">
              <soundset name="FrenchSettlerMaleAcknowledge">
              </soundset>
            </choice>
            <choice name="AbstractFruit">
              <soundset name="FrenchSettlerMaleGatherFruit">
              </soundset>
            </choice>
          </targetlogic>

Could someone with AoM share what the sounds file looks like for a villager? They have audio files for fishing dialogue but I don’t have AoM so I can’t see if/how it is implemented.

Edit - I got an example of the AoM system. Unfortunately I wasn’t able to get “FishResource” to work so unless someone else has other ideas this probably isn’t possible.

<protounitsounddef>
	<soundtype name="Select">
		<variationlogic>
			<choice name="0">
				<soundset name="AtlanteanVillagerMaleSelect"></soundset>
			</choice>
			<choice name="1">
				<soundset name="AtlanteanVillagerFemaleSelect"></soundset>
			</choice>
		</variationlogic>
	</soundtype>
	<soundtype name="Acknowledge">
		<variationlogic>
			<choice name="0">
				<targetlogic>
					<choice name="default">
						<soundset name="AtlanteanVillagerMaleAcknowledge"></soundset>
					</choice>
					<choice name="enemy">
						<soundset name="AtlanteanVillagerMaleAttack"></soundset>
					</choice>
					<choice name="BerryBush">
						<soundset name="AtlanteanVillagerMaleForage"></soundset>
					</choice>
					<choice name="Farm">
						<soundset name="AtlanteanVillagerMaleFarm"></soundset>
					</choice>
					<choice name="Tree">
						<soundset name="AtlanteanVillagerMaleLumberjack"></soundset>
					</choice>
					<choice name="GoldResource">
						<soundset name="AtlanteanVillagerMaleMine"></soundset>
					</choice>
					<choice name="FishResource">
						<soundset name="AtlanteanVillagerMaleFish"></soundset>
					</choice>
					<choice name="Huntable">
						<soundset name="AtlanteanVillagerMaleHunt"></soundset>
					</choice>
					<choice name="Build">
						<soundset name="AtlanteanVillagerMaleBuild"></soundset>
					</choice>
				</targetlogic>
			</choice>
			<choice name="1">
				<targetlogic>
					<choice name="default">
						<soundset name="AtlanteanVillagerFemaleAcknowledge"></soundset>
					</choice>
					<choice name="enemy">
						<soundset name="AtlanteanVillagerFemaleAttack"></soundset>
					</choice>
					<choice name="BerryBush">
						<soundset name="AtlanteanVillagerFemaleForage"></soundset>
					</choice>
					<choice name="Farm">
						<soundset name="AtlanteanVillagerFemaleFarm"></soundset>
					</choice>
					<choice name="Tree">
						<soundset name="AtlanteanVillagerFemaleLumberjack"></soundset>
					</choice>
					<choice name="GoldResource">
						<soundset name="AtlanteanVillagerFemaleMine"></soundset>
					</choice>
					<choice name="FishResource">
						<soundset name="AtlanteanVillagerFemaleFish"></soundset>
					</choice>
					<choice name="Huntable">
						<soundset name="AtlanteanVillagerFemaleHunt"></soundset>
					</choice>
					<choice name="Build">
						<soundset name="AtlanteanVillagerFemaleBuild"></soundset>
					</choice>
				</targetlogic>
			</choice>
		</variationlogic>
	</soundtype>
	<soundtype name="Grunt">
		<variationlogic>
			<choice name="0">
				<soundset name="GruntMale"></soundset>
			</choice>
			<choice name="1">
				<soundset name="GruntFemale"></soundset>
			</choice>
		</variationlogic>
	</soundtype>
	<soundtype name="Death">
		<variationlogic>
			<choice name="0">
				<soundset name="DeathMale"></soundset>
			</choice>
			<choice name="1">
				<soundset name="DeathFemale"></soundset>
			</choice>
		</variationlogic>
	</soundtype>
	<soundtype name="Birth">
		<soundset name="BirthVillager"></soundset>
	</soundtype>
</protounitsounddef>

Hi!

Can the answer be found in the Age of the World mod? Villagers in this mod can fish, and I once saw identical mechanics in Age of The Kings for an legacy version. I would just like to add that I have this mod in my archive, if I can be of any more help.

Thanks for offering. I’ve got the actual fishing working just fine. My problem is with the dialogue when commanding a unit to fish.

For most resources, selecting them gives relevant dialogue, for example saying “chop” when selecting to gather from a tree. But it looks like it isn’t possible to get specific dialogue for fishing (or any other action that doesn’t already have existing dialogue). Which is a bummer because I got voice lines for my fisherman unit and they don’t work.

1 Like