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

[Question] Coffee adjustment

illusions

New member
I am trying create a simple Modlet to adjust the duration value' off coffee -

shouldnt be hard i didnt think - but its my first go at a modlet too

this is my current code, but something didnt work

any pointers ?

Code:
<buffs>

<set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set>

</buffs>
 
I am trying create a simple Modlet to adjust the duration value' off coffee -shouldnt be hard i didnt think - but its my first go at a modlet too

this is my current code, but something didnt work

any pointers ?

Code:
<buffs>

<set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set>

</buffs>
<set xpath="/buffs/buff[@name=buffCoffee]/property[@name=duration value]/@value">600</set>

 
I am trying create a simple Modlet to adjust the duration value' off coffee -shouldnt be hard i didnt think - but its my first go at a modlet too

this is my current code, but something didnt work

any pointers ?

Code:
<buffs>

<set xpath="/buffs[@name='buffCoffee']/property[@name='duration value']/@value">600</set>

</buffs>
According to the XML code

Code:
<!-- Snippit of code -->
<buff name="buffCoffee" name_key="buffCoffeeName" description_key="buffCoffeeDesc" icon="ui_game_symbol_coffee" tags="drug">
	<stack_type value="duration"/>
	<duration value="180"/>
	<effect_group>
...
I do believe the correct format is

Code:
<configs>
<set xpath="/buffs/buff/[@name='buffCoffee']/duration/@value">600</set>
</configs>
You need the full path, in this case it is /buffs/buff "name" then /duration since its a complete node within the group and its property you wish to change is named value, and in my experience, each of your xpath modlet files have to be surrounded by <configs> </configs>

 
Last edited by a moderator:
According to the XML code....each of your xpath modlet files have to be surrounded by <configs> </configs>
It can be anything, but must be inside a node. I use my name <khelldon></khelldon> but anything you want to use works. :)

 
Thanks to all for your help here ...

However, ive tried both code suggestions and im still only getting the buff for 5 mins

which confuses me, because the default code is 180 and Ive tried mine at 600 and even tried it at 1200

what am i missing?

 
Back
Top