that dont help, that answer has nothing to do with checking to see if the player has the required amount of scales for the item and it keeps going
Hold on, I'll get an image set up for you.
🙂
EDIT:
I had this same problem a while ago. I knew how to do it, but I couldn't get it to work right. So I'll just repaste what I wrote down to a friend:
First, for me, using VX (problem might not exist in VX ACE) trial, I had to remove this line in the scripts: "actor = $game_actors[@parameters[1]]" in the "Game_Interpreter" to get this to work, otherwise I get errors when I talk to the event. Again, might be different in ACE and you don't have to remove the script line.
Next, set up variables according to all the required amounts the player needs; 10, 20, 30, 40, 50 and so on. By set up, I mean make a separate variable for each one. Once you have that done, make an event like so:
Page 1:
Spoiler
[IMG]http://i47.tinypic.com/2rx721t.jpg[/IMG]
For page one, you can change the rest to whatever it is you are needing. The highlight piece of coding and the underlined parts is what you need to make this event work to a certain amount required by the event
AND to stop it from repeating. Let's deal with the part you need the most, the "check if item = required quantity". Make a new control variable for the first set up required scales needed. For example, in my image it was 10. Next make a conditional branch (text and everything is up to you to pick) and set the variable to the first set of needed scales and change the
CONSTANT to 10* (*=change accordingly) and it to "Greater than, or equal to" as the option above it. You'll need the first variable set to it, like in mine it is "10 Dragon Scales." Now hit okay and you are finished with that part.
In the "If not/Else" part, you can make him say or do whatever you want to reject the person should they fall short of the required number of dragon scales. Now onto page 2.
To make it stop repeating, click the event, go to Control Switches and then check the "ON" button for "A". The windows will look like this:
Windows:
Spoiler
[IMG]http://i48.tinypic.com/1zoxavs.jpg[/IMG]
[IMG]http://i45.tinypic.com/10xyse0.jpg[/IMG]
Page 2:
Spoiler
[IMG]http://i45.tinypic.com/yhtu1.jpg[/IMG]
Now, make a new page and on the left, you'll see "Control Switches" with a "...." clickable box. Click it and select "Control switches A", and ON. I highlighted it as well.
This will stop the event from replaying each time you go talk to him again, into the house/whatnot, passed a test, did a special move etc etc.
As for being able to go back and select "Gloves = 10 scales, Armor = 20 scales" as options and whatnot, you can use a loop
I think. I'd have to sit down and mess with it before I could provide a definite answer.
🤔
Hope that helps you! Tell me if you don't understand or anything. I tend to get my thoughts down like I'm being held at gunpoint. :lol: