Jump to content

Help with HealMax on Buffs


Recommended Posts

why is this buff doesnt working ?

 

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

-

<item name="foodShamChowder">
	<property name="Tags" value="food"/>
	<property name="HoldType" value="31"/>
	<property name="DisplayType" value="foodRaw"/>
	<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"/>
	<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="drinkCanEmpty"/>
	</property>
	<property name="Group" value="Food/Cooking,CFFood/Cooking"/>

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

		<display_value name="dFortitude" value="1"/>
		<display_value name="dDuration" value="600"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffHealthMaxDuration" operation="add" value="63"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffHealthMaxDuration" operation="set" value="1803">
			<requirement name="CVarCompare" cvar="$buffHealthMaxDuration" operation="GT" value="1803"/></triggered_effect>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables,buffHealthMax"/>
	</effect_group>
</item>

 

Link to comment
Share on other sites

50 minutes ago, M1cromanagement said:

why is this buff doesnt working ?

 


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

-


<item name="foodShamChowder">
	<property name="Tags" value="food"/>
	<property name="HoldType" value="31"/>
	<property name="DisplayType" value="foodRaw"/>
	<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"/>
	<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="drinkCanEmpty"/>
	</property>
	<property name="Group" value="Food/Cooking,CFFood/Cooking"/>

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

		<display_value name="dFortitude" value="1"/>
		<display_value name="dDuration" value="600"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffHealthMaxDuration" operation="add" value="63"/>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffHealthMaxDuration" operation="set" value="1803">
			<requirement name="CVarCompare" cvar="$buffHealthMaxDuration" operation="GT" value="1803"/></triggered_effect>
			<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables,buffHealthMax"/>
	</effect_group>
</item>

 

 

Hi M1cromanagement

 

It doesn't work because HealthMax doesn't work in Cvar in the buff you made, it doesn't recognize it.
Try changing this line <passive_effect name = "HealthMax" operation = "base_add" value = "25" />
to <passive_effect name = "HealthChangeOT" operation = "perc_add" value = "25" />.
I hope it works for you.

 

P.D.  What do you need more health for, the shamChowder is healing you for 80.

Link to comment
Share on other sites

Mhm i try it out, but i didnt understand it clearly, because the buff from the new drug is working

 

	<buff name="buffDrugHealthBar" name_key="drugHealthBar" description_key="drugHealthBarDesc" icon="ui_game_symbol_candy_health_bar">
		<stack_type value="replace"/><duration value="0"/>
		<display_value value=".buffDrugHealthBarDisplay"/><display_value_format value="time"/>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$buffDrugHealthBarDuration" operation="subtract" value="@$MetabolismDuration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffDrugHealthBarDisplay" operation="set" value="@$buffDrugHealthBarDuration"/>
			<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar=".buffDrugHealthBarDisplay" operation="divide" value="@$MetabolismDuration"/>
		</effect_group>
		<effect_group>
			<triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffDrugHealthBar">
				<requirement name="CVarCompare" cvar="$buffDrugHealthBarDuration" operation="LTE" value="0"/>
			</triggered_effect>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar=".buffDrugHealthBarDisplay" operation="set" value="0"/>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyCVar" cvar="$buffDrugHealthBarDuration" operation="set" value="0"/>
		</effect_group>

		<effect_group>
			<!-- heal effect is rolled into $critHitNaturalHealingRate -->
			<passive_effect name="BuffResistance" operation="base_add" value=".5" tags="buffFatiguedTrigger,buffArmSprainedCHTrigger,buffLegSprainedCHTrigger,buffLaceration,buffInfectionCatch,buffAbrasionCatch,buffInjuryStunned01CHTrigger,buffInjuryBleedingTwo,buffInjuryBleedingBarbedWire"/>
			<passive_effect name="HealthMax" operation="base_add" value="10"/>
		</effect_group>
	</buff>

 

anyway thank :)

 

EDIT:

lmao, i copy that again, and its working xDDD

it looks like i got i misstake on the first copy!!!

 

Thank you again !:D

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...