00Prescott Posted June 23, 2019 Share Posted June 23, 2019 Good morning, I am brand new to modding 7d2d and I'm looking for a way to remove the food poisoning from Yucca and I'm not quite sure how to do it. Under the item name="foodCropYuccaFruit" there are the following lines: <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffProcessConsumables"/> <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffIllFoodPoisoning0"> <requirement name="RandomRoll" seed_type="Random" target="self" min_max="0,100" operation="LTE" value="10"/> </triggered_effect> <display_value name="FoodPoisoningRisk" value=".1" /> I think you're supposed to use remove xpath="/item" then something else but I really don't know what I'm doing. I dug around the forum for a bit but was not able to locate anything. Could someone help me out? Thanks! Link to comment Share on other sites More sharing options...
kattenijin Posted June 23, 2019 Share Posted June 23, 2019 I'd just change the max value to 0, or comment out that section. Link to comment Share on other sites More sharing options...
00Prescott Posted June 23, 2019 Author Share Posted June 23, 2019 Thank you for the reply, I appreciate it. Do you happen to know the specific path? That part is goofing me up. Link to comment Share on other sites More sharing options...
Tete1805 Posted June 24, 2019 Share Posted June 24, 2019 You can either modify the xml directly or create a modlet. If you modify the xml, every update of the game will overwrite it. Creating a modlet is pretty straight forward but there's a small learning curve. If you simply want to edit the xml, remove these lines directly in items.xml: <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffIllFoodPoisoning0"> <requirement name="RandomRoll" seed_type="Random" target="self" min_max="0,100" operation="LTE" value="10"/> </triggered_effect> And change the line below: <display_value name="FoodPoisoningRisk" value="[b]0[/b]" /> If you're creating a modlet, use the remove command: <remove xpath="/items/item[@name='foodCropYuccaFruit']/effect_group/triggered_effect[@buff='buffIllFoodPoisoning0']" /> If you want to modify the displayed value of the poisoning risk, use set: <set xpath="/items/item[@name='foodCropYuccaFruit']/effect_group/display_value[@name='FoodPoisoningRisk']/@value">0</set> To get started: https://7daystodie.com/forums/showthread.php?93816-XPath-Modding-Explanation-Thread Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.