dragonslayer770 Posted October 22, 2019 Share Posted October 22, 2019 hi all I was wondering if someone could make me a Jason mod? I've tried to make it for alpha 17 but I couldn't follow the videos on youtube they were all over the place. I would very much appreciate it. and one to change the food and water debuffs to warn you at 50% and 25% and for the water not to drain your life until it reaches zero. and the xpath for a recipe to change the amount it makes and the amount of resources it takes, (like the trapspikes how much u make and the amount of wood it takes to make them). thank you in advance. Link to comment Share on other sites More sharing options...
ivailogeimara Posted October 23, 2019 Share Posted October 23, 2019 File structure InstallationFolder/Mods/ModName/ |-------ModInfo.xml |-------Config/ |--------buffs.xml |--------recipes.xml ModInfo.xml <?xml version="1.0" encoding="UTF-8" ?> <xml> <ModInfo> <Name value="Mod Name" /> <Description value="" /> <Author value="Author Name" /> <Version value="1.0" /> <Website value="http://example.com" /> </ModInfo> </xml> buffs.xml <config> <set xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[@buff='buffStatusThirsty01']/requirement[@name='StatComparePercCurrentToMax']/@value">0.5</set> <set xpath="/buffs/buff[@name='buffStatusCheck01']/effect_group/triggered_effect[@buff='buffStatusThirsty02']/requirement[@name='StatComparePercCurrentToMax']/@value">0.25</set> <set xpath="/buffs/buff[@name='buffStatusThirsty01']/effect_group/triggered_effect[@action='RemoveBuff' and @buff='buffStatusThirsty01']/requirement[@name='StatComparePercCurrentToMax']/@value">0.52</set> <set xpath="/buffs/buff[@name='buffStatusThirsty02']/effect_group/requirement[@name='StatComparePercCurrentToMax' and @stat='Water']/@value">0.27</set> <set xpath="/buffs/buff[@name='buffStatusThirsty02']/effect_group/triggered_effect[@action='ModifyStats' and @stat='Health']/requirement[@name='StatComparePercCurrentToMax' and @stat='Water']/@value">0</set> </config> recipes.xml <config> <set xpath="/recipes/recipe[@name='trapSpikesWoodDmg0']/@count">10</set> <set xpath="/recipes/recipe[@name='trapSpikesWoodDmg0']/ingredient[@name='resourceWood']/@count">10</set> </config> I think that should do it for the second modlet request. Link to comment Share on other sites More sharing options...
dragonslayer770 Posted October 23, 2019 Author Share Posted October 23, 2019 Thanks, know im trying to add a new recipe. Link to comment Share on other sites More sharing options...
Adam the Waster Posted October 23, 2019 Share Posted October 23, 2019 file structure installationfolder/mods/modname/ |-------modinfo.xml |-------config/ |--------buffs.xml |--------recipes.xml modinfo.xml <?xml version="1.0" encoding="utf-8" ?> <xml> <modinfo> <name value="mod name" /> <description value="" /> <author value="author name" /> <version value="1.0" /> <website value="http://example.com" /> </modinfo> </xml> buffs.xml <config> <set xpath="/buffs/buff[@name='buffstatuscheck01']/effect_group/triggered_effect[@buff='buffstatusthirsty01']/requirement[@name='statcompareperccurrenttomax']/@value">0.5</set> <set xpath="/buffs/buff[@name='buffstatuscheck01']/effect_group/triggered_effect[@buff='buffstatusthirsty02']/requirement[@name='statcompareperccurrenttomax']/@value">0.25</set> <set xpath="/buffs/buff[@name='buffstatusthirsty01']/effect_group/triggered_effect[@action='removebuff' and @buff='buffstatusthirsty01']/requirement[@name='statcompareperccurrenttomax']/@value">0.52</set> <set xpath="/buffs/buff[@name='buffstatusthirsty02']/effect_group/requirement[@name='statcompareperccurrenttomax' and @stat='water']/@value">0.27</set> <set xpath="/buffs/buff[@name='buffstatusthirsty02']/effect_group/triggered_effect[@action='modifystats' and @stat='health']/requirement[@name='statcompareperccurrenttomax' and @stat='water']/@value">0</set> </config> recipes.xml <config> <set xpath="/recipes/recipe[@name='trapspikeswooddmg0']/@count">10</set> <set xpath="/recipes/recipe[@name='trapspikeswooddmg0']/ingredient[@name='resourcewood']/@count">10</set> </config> i think that should do it for the second modlet request. what the hell. How do you people figure this stuff out! Link to comment Share on other sites More sharing options...
dragonslayer770 Posted October 23, 2019 Author Share Posted October 23, 2019 @Adam the Waster, here is a thread about it, here it is https://7daystodie.com/forums/forumdisplay.php?95-Discussion-and-Requests just not sure exactly how it all works. Link to comment Share on other sites More sharing options...
ivailogeimara Posted October 24, 2019 Share Posted October 24, 2019 what the hell. How do you people figure this stuff out! Here is explained how xpath works. As for what to change. Well it's logical. Thirst and hunger and most of the things that appear above your HP/Stamina are buffs/debuffs so logically they should be defined in buffs.xml. I just searched for thirst and the first thing I found was <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffStatusThirsty01"> <requirement name="StatComparePercCurrentToMax" stat="Water" operation="LTE" value="0.75"/> <requirement name="NotHasBuff" buff="buffStatusThirsty02"/> </triggered_effect> which was under buff named buffStatusCheck01. This code adds buff named buffStatusThirsty01 and 1 of the requirements for that seems to be StatComparePercCurrentToMax->Water->LTE->0.75 (0.75 == 75%, percentages in the XML are stored as values between 0 and 1 apparently) which means "Water stat has to be Less Than or Equal to 75%". Then I went to buffStatusThirsty01 and buffStatusThirsty02 to see what they do. I saw that buffStatusThirsty01 removes itself when StatComparePercCurrentToMax->Water->LTE->0.77. buffStatusThirsty02 has <triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="Health" operation="subtract" value=".5"> <requirement name="StatComparePercCurrentToMax" stat="Water" operation="LTE" value=".26"/> </triggered_effect> which is pretty self explanatory (subtract 0.5HP if Water<26%). Also a lot of the things (tags/"functions") that are used in the XML files are explained at the bottom of every XML file. Link to comment Share on other sites More sharing options...
alphaniner Posted October 28, 2019 Share Posted October 28, 2019 couldn't follow the videos on youtube they were all over the place. That's because most video tuts are made by lazy f***s who think a video tut is quicker/easier than a text tut. Reality is that any video tut that doesn't require more work than a text tut is going to be garbage. Link to comment Share on other sites More sharing options...
dragonslayer770 Posted October 29, 2019 Author Share Posted October 29, 2019 Do u know of any good videos for rigging up a new zombie and adding it to the game? Link to comment Share on other sites More sharing options...
Guppycur Posted October 29, 2019 Share Posted October 29, 2019 Do u know of any good videos for rigging up a new zombie and adding it to the game? It'll be a lot to process, but do all of these: https://www.youtube.com/user/xythq/playlists Link to comment Share on other sites More sharing options...
dragonslayer770 Posted October 29, 2019 Author Share Posted October 29, 2019 Tried them they where all over too hard to follow They’re not in order and they skip around to much Link to comment Share on other sites More sharing options...
Guppycur Posted October 29, 2019 Share Posted October 29, 2019 Use in conjunction with this then; https://7d2dsdx.github.io/Tutorials/ ...the order isn't important, there's so many things to do, just pick a playlist and watch it. Each playlist in the link I put up there is its own thing. I'd go from oldest to newest. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.