hi there,
wish it could be possible to make a mod return empty cases on reloading.
i have tried Create_Item in Action0 and triggered_effect, the following code will return the same amount of food instead of cases.
<append xpath="/items/item[@name='gun44Magnum']">
<effect_group tiered="false">
<!-- every shoot increase the number of empty cases in cylinder -->
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="bulletCase44r" operation="add" value="1"/>
<!-- return empty cases to inventory on reloading [dummy, use food amount instead] -->
<triggered_effect trigger="onReloadStart" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="@bulletCase44r"/>
<!-- reset empty case number to zero -->
<triggered_effect trigger="onReloadStop" action="ModifyCVar" cvar="bulletCase44r" operation="set" value="0"/>
<!-- is there some action like AddItem or will it be? -->
<!-- <triggered_effect trigger="onReloadStart" action="AddItem" target="self" item="resourceBulletCasing" num="@bulletCase44r"/> -->
</effect_group>
</append>
is there some action like 'AddItem' to make this possible? thanks
reference:
https://steamcommunity.com/app/251570/discussions/0/1741094390477738003/
wish it could be possible to make a mod return empty cases on reloading.
i have tried Create_Item in Action0 and triggered_effect, the following code will return the same amount of food instead of cases.
<append xpath="/items/item[@name='gun44Magnum']">
<effect_group tiered="false">
<!-- every shoot increase the number of empty cases in cylinder -->
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="bulletCase44r" operation="add" value="1"/>
<!-- return empty cases to inventory on reloading [dummy, use food amount instead] -->
<triggered_effect trigger="onReloadStart" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="@bulletCase44r"/>
<!-- reset empty case number to zero -->
<triggered_effect trigger="onReloadStop" action="ModifyCVar" cvar="bulletCase44r" operation="set" value="0"/>
<!-- is there some action like AddItem or will it be? -->
<!-- <triggered_effect trigger="onReloadStart" action="AddItem" target="self" item="resourceBulletCasing" num="@bulletCase44r"/> -->
</effect_group>
</append>
is there some action like 'AddItem' to make this possible? thanks
reference:
https://steamcommunity.com/app/251570/discussions/0/1741094390477738003/
Last edited by a moderator: