Alright, beta is back up.
I have added a counter to the right side of the Amount box that counts up as you get closer to your desired amount, have also cleaned up the code in a number of different subs... mostly because as I corrected one thing, I broke 2 others... etc etc.
Now I'm at the final stages, but there is just one hitch...
The way this script works is I have put in a base amount of resources to grab of each item. i.e. Empty Potions are set at 100. So when you run out it will clear the Finished Potions and grab more... however I've also tied the counter into this process.
Each time a potion is made I count. example:
finditem %finished_items C_ , #backpackid
set %finished_count ( #findstack + %old_stack )
menu set %currently_crafting %finished_count
%finished_items are a list of every single 'finished' item the script makes. %old_stack I will get to in a minute... but just assume that at this point the value is 0, so the second line will add up to whatever you have currently in your backpack (which is ONLY what your making because I clear the backpack during the beginning of the script)
Now after you run out of the empty potion bottles, it will clear the backpack of finished items. Here is where I run into my major problem. If somebody wants to make 2000 Greater Cure potions, they obviously can not keep that many in their backpack, so I used the variable %old_stack to count how many you cleared out of your backpack. Example:
finditem %finished_items C_ , #backpackid
set %old_count ( %old_stack + #findstack )
The first time through the sub, it just does
set %old_count #findstack
Which would set %old_count at the value of 10. Now I know I've only had Calculus, and that was over 15 years ago, but the second time it goes into that Sub, %old_stack should still be the value of 10, and the #findstack value will be 10 (if you're making something that has no failure %, which we are assuming for this experiment)... so it should be
set %old_count ( 10 + 10 )
and now %old_count should be 20... but THIS Is not the case.
The rest of the sub just clears out Finished items, so I left that out. Now that part above I STILL think should work, but after the second cycle through, it keeps resetting back as if it was just the first time through.
Example
Say the Max amount you can pull into your pack is 10. The script will make 10 potions, transfer those finished into the chest, then grab 10 more. The counter will work as intended up to 20. At this point the script takes those new 10 finished potions out of your backpack, drops into the chest, grabs 10 more but the counter starts back up at 11, not at 21.
I hope to God this makes sense to somebody here, even reading it I get a little confused. I have to do something different because it's not like I can count attempts (Deadly Poison has a lot of failures), and at times I've lost Empty Potions when you fail and lose resources. So I can't guarantee that I will ALWAYS send an equal amount to the chest each time and just do a multiplier.
At this point I've been fighting with this for a day and a half, and have tried everything I can think of. Any of you have an idea?