Survager Posted October 26, 2020 Share Posted October 26, 2020 Hi everyone. Tell me, is it possible to somehow reduce the DegradationMax value of an item after repair in XML? I tried to do this, but nothing came out <append xpath="/items/item[@name='gunHandgunT1Pistol']/effect_group[@name='gunHandgunT1Pistol']"> <triggered_effect trigger="onSelfItemRepaired" action="ModifyCVar" cvar="DegradationMax" operation="add" value="-1"/> </append> Link to comment Share on other sites More sharing options...
Telric Posted October 26, 2020 Share Posted October 26, 2020 2 hours ago, Survager said: Hi everyone. Tell me, is it possible to somehow reduce the DegradationMax value of an item after repair in XML? I tried to do this, but nothing came out <append xpath="/items/item[@name='gunHandgunT1Pistol']/effect_group[@name='gunHandgunT1Pistol']"> <triggered_effect trigger="onSelfItemRepaired" action="ModifyCVar" cvar="DegradationMax" operation="add" value="-1"/> </append> Generally, if a trigger or passive has 'hook up' next to it, it hasn't been implemented quite yet. I'm not sure how often the comments are updated, but chances are it's just not hooked up yet. Link to comment Share on other sites More sharing options...
Survager Posted October 27, 2020 Author Share Posted October 27, 2020 I tried using a different trigger, but I couldn't change the value "DegradationMax". What am I doing wrong? <append xpath="/items/item[@name='gunHandgunT1Pistol']/effect_group[@name='gunHandgunT1Pistol']"> <triggered_effect trigger="onSelfAimingGunStart" action="ModifyCVar" cvar="DegradationMax" operation="perc_add" value="1"/> </append> Link to comment Share on other sites More sharing options...
Telric Posted October 27, 2020 Share Posted October 27, 2020 I dont think degradation is a cvar. Its just a property of an item. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.