Jump to content

Possible to make inventory caps for specific items?


Recommended Posts

I'm trying to make the game a bit more challenging and would like to cap the amount of ammo that can be taken along outside of the carry weight capacity. Would appreciate someone pointing me in the right direction. Thanks in advance!

Link to comment
Share on other sites

I'm trying to make the game a bit more challenging and would like to cap the amount of ammo that can be taken along outside of the carry weight capacity. Would appreciate someone pointing me in the right direction. Thanks in advance!

There's no straight forward way to do what you describe. But you could make a quest with an alias for the player. Place a script on the alias with an OnItemAdded event and check the transfer item matches your criteria. Then get the count of how many the player has. If it exceeds your desired value then remove said excess to another container. One issue I see up front is handling if the player is buying said items. They'll be paying for them when it transfers, so you wouldn't want to put the excess back in the originating container.

Edited by BigAndFlabby
Link to comment
Share on other sites

  • Recently Browsing   0 members

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