MrSean Posted November 14, 2020 Share Posted November 14, 2020 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. Link to comment Share on other sites More sharing options...
MrSean Posted November 14, 2020 Author Share Posted November 14, 2020 The above caused an error. So I came up with the following, which does not error out on startup. However, it just doesn't work, no coins are created. I tried taking out the count, still no success. <effect_group tiered="false"> <requirement name="EntityTagCompare" target="other" tags="zombie"/> <triggered_effect trigger="onSelfKilledOther" action="Create_item" value="casinoCoin" count="25" target="self"/> </effect_group> The error log states: 2020-11-14T13:20:39 22.393 INF Unable to find class: MinEventActionCreate_item So I don't know if that means that the code just doesn't support triggered create_item events, or if I am doing something wrong. Link to comment Share on other sites More sharing options...
stample Posted November 16, 2020 Share Posted November 16, 2020 I vaguely recall there being a discussion once where Create_item only worked with the Eat class action. But that can't be right, since the boxes of ammo don't do that. However, they are still an Action0, requiring you to Use the item, rather than triggering off something else happening. So maybe it has something to do with that. Link to comment Share on other sites More sharing options...
FranticDan Posted November 16, 2020 Share Posted November 16, 2020 Probably won't work, but could try item adding after the XP gain for each individual zombie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.