Create a free account to remove all ad content.

Author Topic: [Scripts] inventory stock checker  (Read 646 times)

0 Members and 1 Guest are viewing this topic.


  • Supreme Member
  • *
  • Posts: 2205
    • View Profile
inventory stock checker
« on: December 14, 2016, 06:34:17 AM »
so i made a pretty cool script system that can tell if you're low on a item,or if its out

Beginning script

part 2

part 3

end/exit script

so the way this script works, is this:

part one is actually tied onto a menu box, but the menu box is just dialogue asking you if you want to check the block or inventory.part one opens up the block, or for my situation, a chest, and then activates the 2nd script as well

part 2 is the 1st checks to see if you're out of that item, to where it says you need to stock up on some more food.if it comes up as false, then part 3 is activated

part 3 activates if there's food in the inventory.For this situation, if you have less than 5 of the raw duck meat then after you take some out, if some is leftover, then a message pops up saying that you should probably stock up soon

Part for is the end script, to where for this situation, once you exit the zone, the final script activates and closes off the 2nd and 3rd script, completing it

the settings  for the amount of stock or the wait times can be adjusted to whatever you want, and it could probably be expanded to multiple items, where if anyone wants that made, then i could try messing around with it later on....just this works pretty good for 1 item

Edit:add another wait [1000] on both the 2nd and 3rd script at the begining for better acuracy