Jump to content
Sign in to follow this  
M1cromanagement

What happend with the Durations ?

Recommended Posts

After the Patch, its wierd for me to understand why i have now 2500h on my buff xD before it was 15 min, 900 sec,.... what happend with this 2500H issues?

 

	<buff name="buffStaminaMax25" name_key="buffStaminaMax25" description_key="buffStaminaMax25Desc" icon="ui_game_symbol_coffee">
		<stack_type value="replace"/><duration value="0"/>
		<display_value value=".buffStaminaMax25Display"/><display_value_format value="time"/>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="subtract" value="@$MetabolismDuration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="set" value="@$buffStaminaMax25Duration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="divide" value="@$MetabolismDuration"/>
		</effect_group>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffStaminaMax25">
				<requirement name="CVarCompare" cvar="$buffStaminaMax25Duration" operation="LTE" value="0"/>
			</triggered_effect>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar=".buffStaminaMax25Display" operation="set" value="0"/>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="set" value="0"/>
		</effect_group>
		<effect_group>
			<passive_effect name="StaminaMax" operation="base_add" value="25"/>
		</effect_group>
	</buff>

-

<item name="foodCanStaminaMax">
	<property name="Tags" value="food"/>
	<property name="HoldType" value="31"/>
	<property name="DisplayType" value="foodCanStaminaMax"/>
	<property name="CustomIcon" value="foodCanStaminaMax"/>
	<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
	<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
	<property name="Material" value="Mmetal"/>
	<property name="Weight" value="5"/>
	<property name="EconomicValue" value="60"/>
	<property name="UnlockedBy" value="perkMasterChef,foodCanStaminaMaxSchematic"/>
	<property name="Stacknumber" value="10"/> <!-- STK food -->
	<property class="Action0">
		<property name="Class" value="Eat"/>
		<property name="Delay" value="1.0"/>
		<property name="Use_time" value="..."/>
		<property name="Sound_start" value="player_eating"/>
		<property name="Create_item" value="toolCookingPot"/>
	</property>
	<property name="Group" value="Food/Cooking,CFFood/Cooking"/>

	<effect_group tiered="false" name="Food Tier 2">
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="5"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="5"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="5"/>

		<display_value name="dStaminaMax" value="25"/>
		<display_value name="dDuration" value="900"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="add" value="900"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffStaminaMax25Duration" operation="set" value="900">
			<requirement name="CVarCompare" cvar="$buffStaminaMax25Duration" operation="GT" value="900"/></triggered_effect>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables,buffStaminaMax25"/>
	</effect_group>
</item>

can anyone tell me why ? :(

 

when im adding "0.09" its now 15 min, like i want, but i cant figure it out the math behind this, can anyone explain me ?

Edited by M1cromanagement (see edit history)

Share this post


Link to post
Share on other sites

sorry for pushing, but i realy want to know the math behind this

 

Edit: and the display didnt go under 15 min 😕 im realy upset actually, 

but the StaminaMax are added fine.

Edited by M1cromanagement (see edit history)

Share this post


Link to post
Share on other sites

I'm not positive but I don't believe duration is a second value. So your 900 is not 900 seconds I believe it is 900 ticks or in game cycles. I do not know what the games tick rate is though. 

Share this post


Link to post
Share on other sites

Thank you!,

I understand now that the duration now work with "ticks" and not in seconds,

-

the Food has a buff that adds 25 MaxStamina for 15 min, 900 sec, now it is "0.09"

in that case 7:30 min its 0.045,

3:45 --> 0.0225

-

but my biggest problem is now i have no template, for "selfworking", sorry im not a pro, i must do that , copy and pasting things,

the durations time dont go down, like they before did, can someone pls help me ?

 

 

 

 

 

 

 

 

Edited by M1cromanagement (see edit history)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...