Subject4056
Refugee
I'd like to create some triggered_effects to modify a cvar when harvesting an animal or crop. I've got them set up currently like:
<append xpath="/items/item/property[@name='Tags' and contains(@value,'perkTheHuntsman')]/..">
<effect_group >
<triggered_effect trigger="onSelfHarvestOther" action="ModifyCVar" cvar="AS_huntsman_XP" operation="add" value="1"/>
<triggered_effect trigger="onSelfHarvestOther" action="ShowToolbeltMessage" message="Scored hit for huntsman"/>
</effect_group>
</append>
Which triggers and updates as intended, but triggers off any harvested entity, not just animals. I tried adding
<requirement name="TriggerHasTags" tags="butcherHarvest">
to the effect group but that disabled all of the triggers.
How can I limit the triggers to just animals (for onSelfHarvestOther) and crops (for onSelfHarvestBlock)?
Thanks
<append xpath="/items/item/property[@name='Tags' and contains(@value,'perkTheHuntsman')]/..">
<effect_group >
<triggered_effect trigger="onSelfHarvestOther" action="ModifyCVar" cvar="AS_huntsman_XP" operation="add" value="1"/>
<triggered_effect trigger="onSelfHarvestOther" action="ShowToolbeltMessage" message="Scored hit for huntsman"/>
</effect_group>
</append>
Which triggers and updates as intended, but triggers off any harvested entity, not just animals. I tried adding
<requirement name="TriggerHasTags" tags="butcherHarvest">
to the effect group but that disabled all of the triggers.
How can I limit the triggers to just animals (for onSelfHarvestOther) and crops (for onSelfHarvestBlock)?
Thanks