Jump to content

Help with some logic.


Shino

Recommended Posts

I'm trying to modify a perk to basically reduce the hunger/thirst threshold by about 75% but instead of scaling with the perk rank it goes by level. Yes, By level, capping at 100. Basically rank 3 of that perk adds two lines at progression.xml in /progression/level that say
 

		<setattribute xpath="/buffs/triggered_effect[
			@name='buffStatusThirsty01' or 
			@name='buffStatusThirsty02' or 
			@name='buffStatusThirsty03']
			/requirement[@name='StatComparePercCurrentToMax']/@value" level="1,100" operation="perc_subtract">.01, .75</setattribute>

		<setattribute xpath="/buffs/triggered_effect[
			@name='buffStatusHungry01' or 
			@name='buffStatusHungry02' or 
			@name='buffStatusHungry03']
			/requirement[@name='StatComparePercCurrentToMax']/@value" level="1,100" operation="perc_subtract">.01, .75</setattribute>


Is this the correct way to lower thresholds? Is there any other better way?
I thought at first I could just raise FoodMax and WaterMax but since hunger works of percentages it would still trigger at 50%.
More over doing that would reduce the efficiency of ALL food by 75% since now they have to fill 35 / [100 + level] instead of just 35 / 100.
 

 

Link to comment
Share on other sites

3 minutes ago, Shino said:

I am a moron and don't know how to do basic maths. 
Even if it's percentage, a sheer increase in Food/WaterMax is an increase in the threshold. 

Ignore this question tyvm

Morons don't figure out problems on their own, nice job

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...