ZzzSmileYzzZ
New member
I'm working on a mod for the community I'm in 'Pro Hookers' and require some help for creating certain Items.
I'm working on making a new drink 'drinkJarMineralWater' , as for making the drink it self I got no problem, the issue I got is the effect of the drink.
This is the coding for the Drink:
And this is the buff for it:
Also I made change in the UI_Display:
What I want the drink to do:
-- Give 5 HP
-- Food cost of regenerating stamina -15%
-- Water cost of regenerating stamina -20%
-- Stamina usage -15% for all action that require Stamina Usage
*For the give HP it keep giving HP even after 5 sec and keep going for the duration of the buff that is 10mins
*Stamina usage don't work at all
Can anyone review this and tell me what to do to make it happen.
Cheers,
I'm working on making a new drink 'drinkJarMineralWater' , as for making the drink it self I got no problem, the issue I got is the effect of the drink.
This is the coding for the Drink:
Code:
<item name="drinkJarMineralWater">
<property name="HoldType" value="3"/>
<property name="DisplayType" value="mineralWater"/>
<property name="Meshfile" value="#Other/Items?Food/bottled_waterPrefab.prefab"/>
<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mglass"/>
<property name="Stacknumber" value="150"/>
<property name="Weight" value="10"/>
<property name="EconomicValue" value="100"/>
<property name="SellableToTrader" value="true"/>
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="1"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="player_drinking"/>
<property name="Create_item" value="drinkJarEmpty"/>
</property>
<property name="Group" value="Food/Cooking,CFDrink/Cooking"/>
<effect_group tiered="false">
<requirement name="NotHasBuff" buff="buffIsOnFire"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="45"/>
<display_value name="dStaminaRegen" value=".15"/>
<display_value name="dEfficientDigestion" value=".15"/>
<display_value name="dDuration" value="600"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffProcessConsumables,buffMineralWater"/>
</effect_group>
<effect_group tiered="false">
<requirement name="HasBuff" buff="buffIsOnFire"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" target="self" buff="buffExtinguishFire"/>
</effect_group>
</item>
Code:
<buff name="buffMineralWater" name_key="buffMineralWater" description_key="buffMineralWaterDesc" icon="ui_game_symbol_stomach" icon_color="0,255,255,150" icon_blink="true">
<stack_type value="ignore"/>
<duration value="600"/>
<effect_group>
<passive_effect name="HealthChangeOT" operation="base_add" value="1.25" duration="5"/>
<passive_effect name="WaterLossPerStaminaPointGained" operation="perc_subtract" value="0.2"/>
<passive_effect name="StaminaLossMaxMult" operation="perc_subtract" value="0.15"/>
</effect_group>
</buff>
Code:
<insertAfter xpath="/ui_display_info/item_display/item_display_info[@display_type='toolBellows']" >
<item_display_info display_type="mineralWater" display_group="groupConsumables">
<display_entry name="$waterAmountAdd" title_key="statWaterAmount"/>
<display_entry name="dStaminaRegen" title_key="statStaminaRegen" display_type="Percent"/>
<display_entry name="dEfficientDigestion" title_key="statEfficientDigestion" display_type="Percent" display_leading_plus="true"/>
<display_entry name="dDuration" title_key="statDuration" display_type="Time"/>
</item_display_info>
</insertAfter>
-- Give 5 HP
-- Food cost of regenerating stamina -15%
-- Water cost of regenerating stamina -20%
-- Stamina usage -15% for all action that require Stamina Usage
*For the give HP it keep giving HP even after 5 sec and keep going for the duration of the buff that is 10mins
*Stamina usage don't work at all
Can anyone review this and tell me what to do to make it happen.
Cheers,