Basically what I want to use for my Refill Check is:
AFTER this it should do this:
1. Check if the script should buy potions (yes/no in Setup @Actions)
2. If the script is told to buy potions only THEN will it check if you have lower amount of MP/HP to leave than you set it to.
If none of the above wishes to refill because you have enough cap/HP/MP to make it another "cycle" then it will start from the beginning.
3. It will check if you should leave the cave to deposit stuff (yes/no in Setup @Actions)
4. If the script is told to leave the cave to deposit gold/loot only THEN will it check if you have lower amount of cap to leave than you set it to.
Here is my example (but don't know if it's good/secure enough):
I'm an improving scripter and once I get used to all commands and everything again i'll be able to handle stuff like this on my own, but for now i'd be glad to accept any help from any experienced scripter to carry my sorry ass. Thank you =)
if buyPotions == "yes" then
if itemcount(MPname) < MPToLeave or itemcount(HPname) < HPToLeave
if leaveCave == "yes" then
if cap < CapToLeave then