Jump to content

[Question] Coffee adjustment


illusions

Recommended Posts

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 ?

 

<buffs>

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

</buffs>

Link to comment
Share on other sites

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 ?

 

<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>

Link to comment
Share on other sites

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 ?

 

<buffs>

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

</buffs>

According to the XML 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

<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>

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...