I need to make an event page change after you have so much of an item. I think I need to use variables, but I'm not exactly sure how.
The first page is "Take more x?" and then if you take more you get that item, and I want this page to happen until the player gets five of 'x' and then the page to change.
If that is the only way the player can get that item, on the first page, every time you give them the item, use a Control Variables command to put the quantity of that item into the variable. I'm not at my computer so I can't tell you exactly where in the Control Variables dialogue it is - I think it's called Item <...> in Inventory.
Then use that variable as a condition on the next page, and set it to be => however many you want them to be able to get.
If they can get rid of the items and you don't want them to be able to get more, turn on a switch when they have the required number and condition the next page by the switch instead. Then the second page will not become inactive if they get that many and then get rid of some.