AurifiedGaming Posted August 16, 2014 Posted August 16, 2014 In the mod I'm making now, I want to be able to script the giving of an item upon using a item of that same kind. Essentially creating an endless loop of items. Use Item "A", give Item "A". That way at any point and time you will only have 1 of these items in your inventory, but can essentially use that item endlessly. Any help would be appreciated! :laugh: feel free to ask any questions for clarification! :smile:
Carnatics Posted August 16, 2014 Posted August 16, 2014 begin onloadIf Player.GetItemCount Caps001 == 0 Player.AddItem Caps001 100EndIfuse this as reference
AurifiedGaming Posted August 16, 2014 Author Posted August 16, 2014 begin onloadIf Player.GetItemCount Caps001 == 0 Player.AddItem Caps001 100EndIfuse this as reference I actually added the simple script I wrote scn MyScript Begin ScriptEffectStart additem "Item I Used" 1 1 End To a base effect, then added that effect to the item I mentioned previously. So Every time you consumed the item, the effects ran. One of the effects was my replenish script, so in eating the item, you also replenished it.
Recommended Posts