I need to make a message display after it checks the inventory for a certain item. But I only want it to display once, currently, if it can't find that item, then it will display the message once for each inventory slot.
Any idea how to fix this?
Edit... can't delete this.
Kite said almost the exact thing that i did...
I've tried that, it still loops through the inventory, displaying the message for each slot.
I think someone once told me to use an exit for somewhere in there and that would fix it. I don't remember.
That's what I thought. I added it in, if I don't have any money, it displays once, but if I have some, but not enough, it displays it twice. Going to try something real quick. I will let you know if it works.
Probably a crappy way to do it but couldnt you just...
if they have enough stuff then you set a variable such as.... ENOUGHGOLD = 1
Then right before the exit sub you have something like...
if ENOUGHGOLD 1 Then
msg "You do not have enough money!"
something along those lines?
You should add a for after the initial if line as well...
if you don't it's going to go through the loop again that many more times... and continue looking for it... even though it's already found it...
Huh? Lol. Can you show me what you mean?
Oh okay. Good point. Didn't notice that. Thanks alot guys. ^_^