dragonslayer770
Refugee
hay guys im trying to adding some items with some new buffs. the first item I tried to do. I wont it to heal your max Stamina and not drain stamina for a min. , and give a speed boost. I don't thank the buffs work for A17 haven't tried yet. any help would be greatly appreciated. thanks in advance.
item
buffs
sry guys just got used to A16. it will take some time but I will slowly lean this one to.
item
Code:
<item name="Adrenaline_Syringe">
<!--<property name="CustomIcon" value="adrenalin" />-->
<property name="Meshfile" value="Items/Health/painkillersPrefab" />
<property name="Material" value="organic" />
<property name="HoldType" value="16" />
<property name="Stacknumber" value="10" />
<property name="Group" value="Medicine" />
<property class="Action0">
<property name="Class" value="Eat" />
<property name="Delay" value="1" />
<property name="Use_time" value="..." />
<property name="Sound_start" value="player_painkillers"/>
<property name="Create_item" value="drinkJarEmpty"/>
<effect_group tiered="false">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="waterAmount" operation="add" value="5"/>
<!-- <triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="waterPerkDisplay" operation="add" value="@waterHydrationPSec"/> -->
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="5"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffProcessConsumables"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="adrenalin">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="speedBoost">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffHealStaminaMaxStatus">
<requirement name="RandomRoll" seed_type="Random" target="self" min_max="0,100" operation="LTE" value="5"/>
</triggered_effect>
<display_value name="FoodPoisoningRisk" value=".05" />
</effect_group>
</item>
<item name="Health_Syringe">
<!--<property name="CustomIcon" value="adrenalin" />-->
<property name="Meshfile" value="Items/Health/painkillersPrefab"/>
<property name="Material" value="organic" />
<property name="HoldType" value="16" />
<property name="Stacknumber" value="10" />
<property name="Group" value="Medicine" />
<property class="Action1">
<property name="Class" value="Eat" />
<property name="Delay" value="1" />
<property name="Use_time" value="..." />
<property name="Gain_health" value="0" />
<property name="Gain_stamina" value="0" />
<property name="Gain_food" value="-5" />
<property name="Gain_water" value="-5" />
<property name="Gain_sickness" value="0" />
<property name="Gain_wellness" value="0" />
<property name="Sound_start" value="UseActions/player_bandage" />
<property name="Create_item" value="Empty_Syringe" />
<property name="Buff" value="increasedHealth, increasedHealth1" />
</property>
</item>
<item name="ZombrexTablets">
<property name="Meshfile" value="Items/Health/painkillersPrefab" />
<property name="Material" value="organic" />
<property name="HoldType" value="16" />
<property class="Action1">
<!-- UseAction -->
<property name="Class" value="Eat" />
<property name="Delay" value="1.0" />
<property name="Use_time" value="..." />
<property name="Gain_health" value="0" />
<property name="Gain_food" value="0" />
<property name="Gain_water" value="-5" />
<property name="Sound_start" value="UseActions/player_painkillers" />
<property name="Buff" value="increasedHealth3, increasedHealth4" />
</property>
<property name="Group" value="Medicine" />
<property class="Preview">
<property name="Zoom" value="28" />
<property name="Pos" value="-0.02,-0.1" />
<property name="Rot" value="90,45,0" />
</property>
</item></item>
Code:
<configs>
<append xpath="/buffs">
<buff id="adrenalin" duration="600" name_key="Adrenalin" type="healthup" description_key="You are felling power up." icon="ui_game_symbol_medical">
<modify id="0" stat="stamina" amount="5" rate="1" />
<modify id="1" stat="speedmodifier" setValue="2.5" />
</buff>
<buff id="speedBoost" duration="1200" name_key="speedBoostBeer" stack="reset" actions="increment(@wellness, 1, 150, 0, 0)" icon="ui_game_symbol_run">
<modify id="0" stat="speedmodifier" modifyMaxValue="2.01"/>
<modify id="1" stat="speedmodifier" modifyValue="1.5"/>
</buff>
<buff id="increasedHealth" stack="reset" duration="1200" name_key="increasedHealth" type="healthup" description_key="firstAidLargeDesc" tooltip_key="firstAidLargeTooltip" icon="ui_game_symbol_inceasedHealth">
<modify id="0" stat="health" modifyMaxValue="200.01"/>
</buff>
<buff id="increasedHealth1" stack="reset" duration="2" name_key="increasedHealth1" type="healthup" description_key="firstAidLargeDesc" tooltip_key="firstAidLargeTooltip" icon="ui_game_symbol_medical">
<modify id="1" stat="health" amount="200" rate="1" />
</buff>
<buff id="increasedHealth3" stack="stack" duration="1200" name_key="increasedHealth3" stacklimit="100" type="healthup" description_key="firstAidLargeDesc" tooltip_key="firstAidLargeTooltip" icon="ui_game_symbol_medical">
<modify id="0" stat="health" modifyMaxValue="20.01"/>
</buff>
<buff id="increasedHealth4" stack="stack" duration="2" name_key="increasedHealth4" stacklimit="100" type="healthup" description_key="firstAidLargeDesc" tooltip_key="firstAidLargeTooltip" icon="ui_game_symbol_medical">
<modify id="1" stat="health" amount="20" rate="1" />
</buff>
<buff id="HUp" duration="1800" name_key="HUp" stack="stack" stacklimit="100" type="healthup" description_key="increasedHealth" tooltip_key="increasedHealth" icon="ui_game_symbol_medical">
<modify id="0" stat="health" modifyMaxValue="2.01"/>
<modify id="1" stat="health" amount="5" rate="1" />
</buff>
</append>
</configs>
Last edited by a moderator: