• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Help with removing one or more item(s) from a perk without remove all items.

TheGameMaster

New member
Hi

I'm trying to remove the medicalFirstAidBandage from yeah science perk, but I can't for the life of me get it to work.

Any help would be greatly appreciated.

 
Code:
<config>
   <set xpath="/progression/perks/perk[@name='perkYeahScience']/effect_group/passive_effect[@name='RecipeTagUnlocked' and @level='2,5']/@tags">medicalPlasterCast,mineCookingPot,rScrapIronPlateMine,ammoGasCan,resourceOil</set>
</config>
That should do it. As far as I know you can remove part of a element with <remove> tag.

And you should probably create Localization.txt in your mod's root(main) folder file with:

Code:
perkYeahScienceRank2LongDesc,progression,Perk,New,"You're now a professor and are learning practical science. Craft advanced medical items such as plaster casts, cooking pot and pressure plate mines, gasoline & oil.  ",,,,,
I'm not too sure about the Localization stuff.

BTW I'm assuming you know how to create a mod file/folder structure.

 
Last edited by a moderator:
Code:
<config>
   <set xpath="/progression/perks/perk[@name='perkYeahScience']/effect_group/passive_effect[@name='RecipeTagUnlocked' and @level='2,5']/@tags">medicalPlasterCast,mineCookingPot,rScrapIronPlateMine,ammoGasCan,resourceOil</set>
</config>
That should do it. As far as I know you can remove part of a element with <remove> tag.

And you should probably create Localization.txt in your mod's root(main) folder file with:

Code:
perkYeahScienceRank2LongDesc,progression,Perk,New,"You're now a professor and are learning practical science. Craft advanced medical items such as plaster casts, cooking pot and pressure plate mines, gasoline & oil.  ",,,,,
I'm not too sure about the Localization stuff.

BTW I'm assuming you know how to create a mod file/folder structure.
I'm not sure about the localization either I just opened it up and closed right I looked at it.

I did not know I needed to add and @level='2, 5' too. Thanks a bunch.

Update: I tried to add the @level='2,5' and your code which none of them worked :/

 
Last edited by a moderator:
I'm not sure about the localization either I just opened it up and closed right I looked at it.I did not know I needed to add and @level='2, 5' too. Thanks a bunch.

Update: I tried to add the @level='2,5' and your code which none of them worked :/
With this code:

ModName/ModInfo.xml

Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
   <ModInfo>
       <Name value="NoFirstAidBandage" />
       <Description value="Removes first aid bandage from Yeah Science perk." />
       <Author value="FieryRider" />
       <Version value="1.0" />
       <Website value="http://7daystodie.com" />
   </ModInfo>
</xml>
ModName/Config/items.xml

Code:
<config>
   <set xpath="/items/item[@name='medicalFirstAidBandage']/property[@name='UnlockedBy']/@value">medicalFirstAidBandageSchematic</set>
</config>
ModName/Config/progression.xml

Code:
<config>
   <set xpath="/progression/perks/perk[@name='perkYeahScience']/effect_group/passive_effect[@name='RecipeTagUnlocked' and @level='2,5']/@tags">medicalPlasterCast,mineCookingPot,rScrapIronPlateMine,ammoGasCan,resourceOil</set>
</config>
ModName/Config/Localization.txt

Code:
Key,Source,Context,Changes,English,French,German,Klingon,Spanish,Polish
perkYeahScienceRank2LongDesc,progression,Perk,New,"You're now a professor and are learning practical science. Craft advanced medical items such as plaster casts, cooking pot and pressure plate mines, gasoline & oil.  ",,,,,
medicalFirstAidBandage is not craftable for me with YeahScience maxed. Just tested it.

items.xml part just removes perkYeahScience from UnlockedBy section in the inv/crafting menu. Otherwise it will say it requires perkYeahScience but still won't be able to craft it with the perk learned.

 
Last edited by a moderator:
Back
Top