Looking for some help with something. I am trying to come up with a way to count specific items in a critter's inventory. I am not looking for a simple =, <, or > value. I want to be able to call the exact number of instances of a certain item in inventory. For example, while talking to Sentrybot Skynet, it could tell you it has seven rockets in its arsenal, without having to write dialog and code for however many instances of ==.
Anyone out there have an idea how I can do this? If not, I guess I could keep it simple and write code for 1-10 rockets. Then after that, Skynet can say it has more than 10 in inventory. That would kinda work in this instance. However, I have other ideas I want to try to implement where counting may prove useful.
Anyone out there have an idea how I can do this? If not, I guess I could keep it simple and write code for 1-10 rockets. Then after that, Skynet can say it has more than 10 in inventory. That would kinda work in this instance. However, I have other ideas I want to try to implement where counting may prove useful.
Last edited: