Jump to content

Looking for some help from someone who knows the CK Papyrus. - Limit on item amount.


vTemporalZEROv

Recommended Posts

Looking to make a mod that limits the amount of ammo you can carry at once. Not weight based, since even then you can carry hundreds of rounds in some situations, I found a mod years ago in FO3 that force dropped any excess ammo you pick up once you hit a set limit of that ammo type. So lets say you have more than 200 10mm, it auto-drops any that are over that amount.

 

Thing is the Papyrus for the CK and the Geck seem to be very different, I tried looking at some Skyrim mods that do similar things but can't find a good lead.

 

All I am requesting is some guidance on these things:

 

On running the mod (OnInit) it checks every couple times a second if the player has more than the ItemCount of, for example, Ammo10mm > 120, and if so, then it forces the player to drop any over that amount. How could I do this? Please help me out, you will get credit obviously, but this is such a peeve of mine in Fallout games -----> Thousands of rounds of ammo....

 

EDIT - For some reason I don't think this will run well in the newer Papyrus, here is some script I was thinking of: Obviously minus the structure due to the Forums.. Something along these lines.

 

If player.GetItemCount Ammo10mm > 120 && player.getItemCount Ammo10mm <= 150
Player.Drop Ammo10mm 10
ElseIf Player.GetItemCount Ammo10mm > 160 && player.GetItemCount Ammo10mm <= 240
Player.Drop Ammo10mm 40
ElseIf Player.getItemCount Ammo10mm > 240
Player.Drop Ammo10mm 60
EndIf
End
Edited by vTemporalZEROv
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...