In my mod I have the zombies always drop a loot bag. Loot bags only contain casino coins. On horde night the number of bags gets unwieldly. I want to mod it so that every time the player kills a zombie the casino coins are created in the player inventory. Here is what I have that is not working:
<effect_group tiered="false">
<requirement name="EntityTagCompare" target="other" tags="zombie"/>
<triggered_effect trigger="onSelfKilledOther"
action="Create_item" value="casinoCoin"
property="Create_item_count" value="25"
target="self"/>
</effect_group>
I put that in the entityclasses.xml in the player effects list.
<effect_group tiered="false">
<requirement name="EntityTagCompare" target="other" tags="zombie"/>
<triggered_effect trigger="onSelfKilledOther"
action="Create_item" value="casinoCoin"
property="Create_item_count" value="25"
target="self"/>
</effect_group>
I put that in the entityclasses.xml in the player effects list.
Last edited by a moderator: