Fixing slowdowns in parallel common events

Hello all,

I’m making an inventory bar that only includes items used regularly (tools and seeds). It’s taken a lot of inspiration from Stardew Valley’s inventory bar that is permanently at the bottom of the screen. The idea is the player can swap between items using the page up and page down keys. I have it to where it basically checks if the player has a specific item, then if they do, it shows the item icon in the corresponding box that tool or seed belongs to and displays text as a picture to display how many of the item the player has. The the common event also has a conditional nested in it that checks if the player is triggering the page up key and if so, it scrolls the selection bar to the next tool in the bar and changes a Tool ID variable to the corresponding tool number. This worked fine and didn’t slow the game down until I tried adding the item amount in the lower right corner of each item icon box in the inventory bar. Since the common event has to constantly loop through and check how many of each of the seeds the player has to display it in the inventory bar, it slows it down pretty significantly. If the player only has a few of the seeds, it runs fine but if the player has a full inventory of seeds, it crushes the framerate. I know I could put a wait command but I’m not sure where to put it. Everywhere I’ve tried putting it makes a crucial process delay (like when the player tries to move the selection indicator over to the next tool, it’s delayed significantly).

I can post my full common event if you guys want, but it’s excessively long and convoluted (which is surely a huge part of the problem), but I can post it. Just wondering ultimately if anyone has done anything like this in their game and if they’ve found a way to do it that works without bogging the game down. Or if there is a general rule about placing the wait command in parallel common events.

0FC4441E-CE60-4D09-B316-69CE71D3B6D5.jpeg
I, of course, have no idea how you've constructed your inventory bar. But constantly polling with an event shouldn't be required - you should be able to make use of a pretty basic plugin that adjusts a variable when items are gained and lost, and then your inventory window will display the value of those variables (which would automatically update on the window's refresh() ).

The logical efficiency of an event can also be a huge deal, especially if it's something you're allowing to run every frame. I'm not personally volunteering to proofread a huge, complex event; but I'm sure if you were to post it someone would give you some feedback.

Lastly, absolutely yes. You should basically never have a parallel event running without Wait commands unless it's actually, literally frame-critical (like determining player input). Put a Wait 10 at the bottom. Use some items, see if you can actually tell the difference in how long it takes the number to update. If yes, try Wait 5 or something. But you don't want any event to run more frequently than it actually needs to.
Or if there is a general rule about placing the wait command in parallel common events.
The general rule is that if you don't have a wait command in your parallel common event, then you're probably doing it wrong.

You don't necessarily have to keep everything in one common event. You can probably separate the quantity text thing into another event, so that you can decrease the frequency at which it runs without affecting your input detection.

Checking the amount of an item in inventory shouldn't be a very slow operation, unless you're doing it in a weird way. By any chance, are you re-writing the quantity text every iteration, regardless of whether or not the quantity has changed? If so, that's probably the cause of your lag.
as for the number of waits - you'll have to experiment because there are too many different influences and effects to give any general rule.
The wait basically tells the computer "skip this process for x frames of the gerneral game loop".
This reduces the demand on the computers processing power.

if you have too few waits, the processing will slow down - this is true lag.
If you have too many waits, the display updates will slow down - this looks like lag but isn't as the computer is waiting and not slowed.

You'll need to find the number in the middle for optimum performance - and that number will change with other parallels because all parallels share the computers power.



as for the inventory count - you should really show screenshots of your event code becasuse getting the count of any item should be a single control variable command, nothing that would slow like you described.
I did something similar to this in a prototype earlier this year. Also inspired by Stardew, also used pageup and pagedown for tool cycling. Not sure how you are drawing your HUD at the bottom, through pictures or a plugin, but I managed this using Mog's variable Hud plugin. It'll automatically display the variables and a picture you set in the plugin parameters or, more importantly to you, display item quantities instead. Good luck.

Thank you all so much for the feedback! I currently do not having any waits in my common event because I haven't been able to find a spot for it that didn't mess up the entire purpose. I put it at the very end and it would end up half of the time not registering when the player pressed PageUp to scroll through the tools so I would have to press PageUp multiple times for it to finally register. I've put it in some places and it would just load some of the item icon images delayed and looked funky. It did seem to fix the lagging issues though ultimately, but messed up other functions. I'm sure there's a place to put it that will work, but I haven't found it yet. Ultimately, it totally sounds like it's a me problem and not eventing logically and efficiently and not an engine or computer problem.
Checking the amount of an item in inventory shouldn't be a very slow operation, unless you're doing it in a weird way. By any chance, are you re-writing the quantity text every iteration, regardless of whether or not the quantity has changed? If so, that's probably the cause of your lag.
Oh yeah I totally have it checking the quantity for every item simulataneously I guess because that's the only way I knew how to do it. Definitely seems to be what's causing the issue because I ran with this for a while without having any indicator on how many of each item the player had but I figured I'd give it a shot because it was really inconvenient to play and not know how many seeds you had left.

Here is the long drawn out event. It's surely a ridiculous mess because I'm very new to RPG Maker. I started out with Caz's Tool UI from the farming template they have on Itch.io and modified it to do what I want it to do.

Spoiler: Event
◆Comment:CHECK IF THE PLAYER HAS TOOL/ITEM,
:Comment:IF SO, WILLL DISPLAY ICON IN TOOLBAR
◆If:Party has Pickaxe
◆Show Picture:#61, Tool1_Pickaxe, Upper Left (232,592), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#61
◆
:End
◆If:Party has Watering Can
◆Show Picture:#62, Tool2_WateringCan, Upper Left (273,592), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#62
◆
:End
◆If:Party has Axe
◆Show Picture:#63, Tool3_Axe, Upper Left (314,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#63
◆
:End
◆If:Party has Fishing Rod
◆Show Picture:#64, Tool4_FishingRod, Upper Left (354,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#64
◆
:End
◆If:Season = 1
◆If:Party has Bean Seeds
◆Show Picture:#65, Tool5-1_BeanSeeds, Upper Left (396,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#65
◆Erase Picture:#85
◆
:End
◆If:Party has Bell Pepper Seeds
◆Show Picture:#66, Tool6-1_BellPepper, Upper Left (437,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#66
◆Erase Picture:#86
◆
:End
◆If:Party has Carrot Seeds
◆Show Picture:#67, Tool7-1_Carrot, Upper Left (478,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#67
◆Erase Picture:#87
◆
:End
◆If:Party has Cauliflower Seeds
◆Show Picture:#68, Tool8-1_Cauliflower, Upper Left (519,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#68
◆Erase Picture:#88
◆
:End
◆If:Party has Celery Seeds
◆Show Picture:#69, Tool9-1_Celery, Upper Left (560,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#69
◆Erase Picture:#89
◆
:End
◆If:Party has Garlic Seeds
◆Show Picture:#70, Tool10-1_Garlic, Upper Left (601,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#70
◆Erase Picture:#90
◆
:End
◆If:Party has Lettuce Seeds
◆Show Picture:#71, Tool11-1_Lettuce, Upper Left (642,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#71
◆
:End
◆If:Party has Onion Seeds
◆Show Picture:#72, Tool12-1_Onion, Upper Left (683,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#72
◆Erase Picture:#92
◆
:End
◆If:Party has Snap Pea Seeds
◆Show Picture:#73, Tool13-1_SnapPea, Upper Left (724,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#73
◆Erase Picture:#93
◆
:End
◆If:Party has Potato Seeds
◆Show Picture:#74, Tool14-1_Potato, Upper Left (765,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#74
◆Erase Picture:#94
◆
:End
◆If:Party has Raspberry Seeds
◆Show Picture:#75, Tool15-1_Raspberry, Upper Left (806,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#75
◆Erase Picture:#95
◆
:End
◆If:Party has Rhubarb Seeds
◆Show Picture:#76, Tool16-1_Rhubarb, Upper Left (847,591), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#76
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blackberry Seeds
◆Show Picture:#65, Tool5-2_Blackberry, Upper Left (396,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[313]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[313]
◆Show Picture:#85, None, Upper Left (415,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[313]
◆Show Picture:#85, None, Upper Left (421,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#65
◆Erase Picture:#85
◆
:End
◆If:Party has Blueberry Seeds
◆Show Picture:#66, Tool6-2_Blueberry, Upper Left (437,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[314]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[314]
◆Show Picture:#86, None, Upper Left (456,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[314]
◆Show Picture:#86, None, Upper Left (462,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#66
◆Erase Picture:#86
◆
:End
◆If:Party has Cabbage Seeds
◆Show Picture:#67, Tool7-2_Cabbage, Upper Left (478,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[315]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[315]
◆Show Picture:#87, None, Upper Left (497,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[315]
◆Show Picture:#87, None, Upper Left (503,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#67
◆Erase Picture:#87
◆
:End
◆If:Party has Chili Pepper Seeds
◆Show Picture:#68, Tool8-2_ChiliPepper, Upper Left (519,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[316]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[316]
◆Show Picture:#88, None, Upper Left (538,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[316]
◆Show Picture:#88, None, Upper Left (544,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#68
◆Erase Picture:#88
◆
:End
◆If:Party has Cucumber Seeds
◆Show Picture:#69, Tool9-2_Cucumber, Upper Left (560,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[317]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[317]
◆Show Picture:#89, None, Upper Left (579,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[317]
◆Show Picture:#89, None, Upper Left (585,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#69
◆Erase Picture:#89
◆
:End
◆If:Party has Jalapeno Seeds
◆Show Picture:#70, Tool10-2_Jalapeno, Upper Left (601,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[318]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[318]
◆Show Picture:#90, None, Upper Left (620,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[318]
◆Show Picture:#90, None, Upper Left (626,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#70
◆Erase Picture:#90
◆
:End
◆If:Party has Radish Seeds
◆Show Picture:#71, Tool11-2_Radish, Upper Left (642,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[319]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[319]
◆Show Picture:#91, None, Upper Left (661,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[319]
◆Show Picture:#91, None, Upper Left (667,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#71
◆Erase Picture:#91
◆
:End
◆If:Party has Strawberry Seeds
◆Show Picture:#72, Tool12-2_Strawberry, Upper Left (683,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[320]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[320]
◆Show Picture:#92, None, Upper Left (702,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[320]
◆Show Picture:#92, None, Upper Left (708,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#72
◆Erase Picture:#92
◆
:End
◆If:Party has Tomato Seeds
◆Show Picture:#73, Tool13-2_Tomato, Upper Left (724,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[321]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[321]
◆Show Picture:#93, None, Upper Left (743,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[321]
◆Show Picture:#93, None, Upper Left (749,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#73
◆Erase Picture:#93
◆
:End
◆If:Party has Turnip Seeds
◆Show Picture:#74, Tool14-2_Turnip, Upper Left (765,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[322]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[322]
◆Show Picture:#94, None, Upper Left (784,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[322]
◆Show Picture:#94, None, Upper Left (790,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#74
◆Erase Picture:#94
◆
:End
◆If:Party has Watermelon Seeds
◆Show Picture:#75, Tool15-2_Watermelon, Upper Left (806,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[323]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[323]
◆Show Picture:#95, None, Upper Left (825,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[323]
◆Show Picture:#95, None, Upper Left (831,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#75
◆Erase Picture:#95
◆
:End
◆If:Party has Wheat Seeds
◆Show Picture:#76, Tool16-2_Wheat, Upper Left (847,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[324]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[324]
◆Show Picture:#96, None, Upper Left (866,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[324]
◆Show Picture:#96, None, Upper Left (872,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#76
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Beet Seeds
◆Show Picture:#65, Tool5-3_Beet, Upper Left (396,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[325]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[325]
◆Show Picture:#85, None, Upper Left (415,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[325]
◆Show Picture:#85, None, Upper Left (421,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#65
◆Erase Picture:#85
◆
:End
◆If:Party has Broccoli Seeds
◆Show Picture:#66, Tool6-3_Broccoli, Upper Left (437,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[326]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[326]
◆Show Picture:#86, None, Upper Left (456,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[326]
◆Show Picture:#86, None, Upper Left (462,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#66
◆Erase Picture:#86
◆
:End
◆If:Party has Corn Seeds
◆Show Picture:#67, Tool7-3_Corn, Upper Left (478,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[327]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[327]
◆Show Picture:#87, None, Upper Left (497,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[327]
◆Show Picture:#87, None, Upper Left (503,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#67
◆Erase Picture:#87
◆
:End
◆If:Party has Cranberry Seeds
◆Show Picture:#68, Tool8-3_Cranberry, Upper Left (519,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[328]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[328]
◆Show Picture:#88, None, Upper Left (538,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[328]
◆Show Picture:#88, None, Upper Left (544,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#68
◆Erase Picture:#88
◆
:End
◆If:Party has Eggplant Seeds
◆Show Picture:#69, Tool9-3_Eggplant, Upper Left (560,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[329]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[329]
◆Show Picture:#89, None, Upper Left (579,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[329]
◆Show Picture:#89, None, Upper Left (585,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#69
◆Erase Picture:#89
◆
:End
◆If:Party has Grape Seeds
◆Show Picture:#70, Tool10-3_Grape, Upper Left (601,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[330]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[330]
◆Show Picture:#90, None, Upper Left (620,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[330]
◆Show Picture:#90, None, Upper Left (626,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#70
◆Erase Picture:#90
◆
:End
◆If:Party has Leek Seeds
◆Show Picture:#71, Tool11-3_Leek, Upper Left (642,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[331]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[331]
◆Show Picture:#91, None, Upper Left (661,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[331]
◆Show Picture:#91, None, Upper Left (667,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#71
◆Erase Picture:#91
◆
:End
◆If:Party has Pumpkin Seeds
◆Show Picture:#72, Tool12-3_Pumpkin, Upper Left (683,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[332]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[332]
◆Show Picture:#92, None, Upper Left (702,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[332]
◆Show Picture:#92, None, Upper Left (708,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#72
◆Erase Picture:#92
◆
:End
◆If:Party has Rutabaga Seeds
◆Show Picture:#73, Tool13-3_Rutabaga, Upper Left (724,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[333]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[333]
◆Show Picture:#93, None, Upper Left (743,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[333]
◆Show Picture:#93, None, Upper Left (749,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#73
◆Erase Picture:#93
◆
:End
◆If:Party has Spinach Seeds
◆Show Picture:#74, Tool14-3_Spinach, Upper Left (765,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[334]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[334]
◆Show Picture:#94, None, Upper Left (784,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[334]
◆Show Picture:#94, None, Upper Left (790,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#74
◆Erase Picture:#94
◆
:End
◆If:Party has Squash Seeds
◆Show Picture:#75, Tool15-3_Squash, Upper Left (806,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[335]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[335]
◆Show Picture:#95, None, Upper Left (825,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[335]
◆Show Picture:#95, None, Upper Left (831,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#75
◆Erase Picture:#95
◆
:End
◆If:Party has Sweet Potato Seeds
◆Show Picture:#76, Tool16-3_SweetPotato, Upper Left (847,591), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[336]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[336]
◆Show Picture:#96, None, Upper Left (866,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[336]
◆Show Picture:#96, None, Upper Left (872,599), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Erase Picture:#76
◆Erase Picture:#96
◆
:End
◆
:Else
◆Erase Picture:#65
◆Erase Picture:#66
◆Erase Picture:#67
◆Erase Picture:#68
◆Erase Picture:#69
◆Erase Picture:#70
◆Erase Picture:#71
◆Erase Picture:#72
◆Erase Picture:#73
◆Erase Picture:#74
◆Erase Picture:#75
◆Erase Picture:#76
◆
:End
◆
:End
◆
:End
◆Comment:CHECK IF THE PLAYER IS PRESSING PAGE UP TO CHANGE TOOL.
:Comment:YOU CAN CHANGE THIS TO CHANGE WHICH KEY NEEDS TO BE PRESSED.
:Comment:
:Comment:DEPENDING ON WHICH TOOL IS ALREADY SELECTED, THE EVENTS WILL
:Comment:JUMP TO A NEW LABEL WHEN PAGE UP IS PRESSED TO SHOW THE NEXT TOOL.
◆If:Button [Pagedown] is being triggered
◆If:Tool ID = 0
◆Jump to Label:1
◆
:End
◆If:Tool ID = 1
◆Jump to Label:2
◆
:End
◆If:Tool ID = 2
◆Jump to Label:3
◆
:End
◆If:Tool ID = 3
◆Jump to Label:4
◆
:End
◆If:Tool ID = 4
◆Jump to Label:5
◆
:End
◆If:Tool ID = 5
◆Jump to Label:6
◆
:End
◆If:Tool ID = 6
◆Jump to Label:7
◆
:End
◆If:Tool ID = 7
◆Jump to Label:8
◆
:End
◆If:Tool ID = 8
◆Jump to Label:9
◆
:End
◆If:Tool ID = 9
◆Jump to Label:10
◆
:End
◆If:Tool ID = 10
◆Jump to Label:11
◆
:End
◆If:Tool ID = 11
◆Jump to Label:12
◆
:End
◆If:Tool ID = 12
◆Jump to Label:13
◆
:End
◆If:Tool ID = 13
◆Jump to Label:14
◆
:End
◆If:Tool ID = 14
◆Jump to Label:15
◆
:End
◆If:Tool ID = 15
◆Jump to Label:16
◆
:End
◆If:Tool ID = 16
◆Jump to Label:1
◆
:End
◆Label:1
◆Comment:CHECK IF THE PLAYER HAS THE RELEVANT ITEM. IF NOT, THE UI
:Comment:WILL SKIP TO THE NEXT TOOL.
◆If:Party has Pickaxe
◆Control Variables:#0242 Tool ID = 1
◆Jump to Label:image
◆
:Else
◆Jump to Label:2
◆
:End
◆Label:2
◆If:Party has Watering Can
◆Control Variables:#0242 Tool ID = 2
◆Jump to Label:image
◆
:Else
◆Jump to Label:3
◆
:End
◆Label:3
◆If:Party has Axe
◆Control Variables:#0242 Tool ID = 3
◆Jump to Label:image
◆
:Else
◆Jump to Label:4
◆
:End
◆Label:4
◆If:Party has Fishing Rod
◆Control Variables:#0242 Tool ID = 4
◆Jump to Label:image
◆
:Else
◆Jump to Label:5
◆
:End
◆Label:5
◆If:Season = 1
◆If:Party has Bean Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:6
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blackberry Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:6
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Beet Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:6
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:6
◆If:Season = 1
◆If:Party has Bell Pepper Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:7
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blueberry Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:7
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Broccoli Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:7
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:7
◆If:Season = 1
◆If:Party has Carrot Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:8
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cabbage Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:8
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Corn Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:8
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:8
◆If:Season = 1
◆If:Party has Cauliflower Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:9
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Chili Pepper Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:9
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Cranberry Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:9
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:9
◆If:Season = 1
◆If:Party has Celery Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:10
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cucumber Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:10
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Eggplant Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:10
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:10
◆If:Season = 1
◆If:Party has Garlic Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:11
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Jalapeno Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:11
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Grape Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:11
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:11
◆If:Season = 1
◆If:Party has Lettuce Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:12
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Radish Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:12
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Leek Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:12
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:12
◆If:Season = 1
◆If:Party has Onion Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:13
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Strawberry Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:13
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Pumpkin Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:13
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:13
◆If:Season = 1
◆If:Party has Snap Pea Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:14
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Tomato Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:14
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Rutabaga Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:14
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:14
◆If:Season = 1
◆If:Party has Potato Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:15
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Turnip Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:15
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Spinach Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:15
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:15
◆If:Season = 1
◆If:Party has Raspberry Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:16
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Watermelon Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:16
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Squash Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:16
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆Label:16
◆If:Season = 1
◆If:Party has Rhubarb Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:1
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Wheat Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:1
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Sweet Potato Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:1
◆
:End
◆
:Else
◆Jump to Label:1
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Button [Pageup] is being triggered
◆If:Tool ID = 0
◆Jump to Label:36
◆
:End
◆If:Tool ID = 1
◆Jump to Label:36
◆
:End
◆If:Tool ID = 2
◆Jump to Label:21
◆
:End
◆If:Tool ID = 3
◆Jump to Label:22
◆
:End
◆If:Tool ID = 4
◆Jump to Label:23
◆
:End
◆If:Tool ID = 5
◆Jump to Label:24
◆
:End
◆If:Tool ID = 6
◆Jump to Label:25
◆
:End
◆If:Tool ID = 7
◆Jump to Label:26
◆
:End
◆If:Tool ID = 8
◆Jump to Label:27
◆
:End
◆If:Tool ID = 9
◆Jump to Label:28
◆
:End
◆If:Tool ID = 10
◆Jump to Label:29
◆
:End
◆If:Tool ID = 11
◆Jump to Label:30
◆
:End
◆If:Tool ID = 12
◆Jump to Label:31
◆
:End
◆If:Tool ID = 13
◆Jump to Label:32
◆
:End
◆If:Tool ID = 14
◆Jump to Label:33
◆
:End
◆If:Tool ID = 15
◆Jump to Label:34
◆
:End
◆If:Tool ID = 16
◆Jump to Label:35
◆
:End
◆Label:36
◆If:Season = 1
◆If:Party has Rhubarb Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:35
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Wheat Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:35
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Sweet Potato Seeds
◆Control Variables:#0242 Tool ID = 16
◆Jump to Label:image
◆
:Else
◆Jump to Label:35
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:35
◆If:Season = 1
◆If:Party has Raspberry Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:34
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Watermelon Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:34
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Squash Seeds
◆Control Variables:#0242 Tool ID = 15
◆Jump to Label:image
◆
:Else
◆Jump to Label:34
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:34
◆If:Season = 1
◆If:Party has Potato Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:33
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Turnip Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:33
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Spinach Seeds
◆Control Variables:#0242 Tool ID = 14
◆Jump to Label:image
◆
:Else
◆Jump to Label:33
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:33
◆If:Season = 1
◆If:Party has Snap Pea Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:32
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Tomato Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:32
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Rutabaga Seeds
◆Control Variables:#0242 Tool ID = 13
◆Jump to Label:image
◆
:Else
◆Jump to Label:32
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:32
◆If:Season = 1
◆If:Party has Onion Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:31
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Strawberry Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:31
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Pumpkin Seeds
◆Control Variables:#0242 Tool ID = 12
◆Jump to Label:image
◆
:Else
◆Jump to Label:31
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:31
◆If:Season = 1
◆If:Party has Lettuce Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:30
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Radish Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:30
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Leek Seeds
◆Control Variables:#0242 Tool ID = 11
◆Jump to Label:image
◆
:Else
◆Jump to Label:30
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:30
◆If:Season = 1
◆If:Party has Garlic Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:29
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Jalapeno Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:29
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Grape Seeds
◆Control Variables:#0242 Tool ID = 10
◆Jump to Label:image
◆
:Else
◆Jump to Label:29
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:29
◆If:Season = 1
◆If:Party has Celery Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:28
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cucumber Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:28
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Eggplant Seeds
◆Control Variables:#0242 Tool ID = 9
◆Jump to Label:image
◆
:Else
◆Jump to Label:28
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:28
◆If:Season = 1
◆If:Party has Cauliflower Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:27
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Chili Pepper Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:27
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Cranberry Seeds
◆Control Variables:#0242 Tool ID = 8
◆Jump to Label:image
◆
:Else
◆Jump to Label:27
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:27
◆If:Season = 1
◆If:Party has Carrot Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:26
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cabbage Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:26
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Corn Seeds
◆Control Variables:#0242 Tool ID = 7
◆Jump to Label:image
◆
:Else
◆Jump to Label:26
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:26
◆If:Season = 1
◆If:Party has Bell Pepper Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:25
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blueberry Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:25
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Broccoli Seeds
◆Control Variables:#0242 Tool ID = 6
◆Jump to Label:image
◆
:Else
◆Jump to Label:25
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:25
◆If:Season = 1
◆If:Party has Bean Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:24
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blackberry Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:24
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Beet Seeds
◆Control Variables:#0242 Tool ID = 5
◆Jump to Label:image
◆
:Else
◆Jump to Label:24
◆
:End
◆
:Else
◆Jump to Label:24
◆
:End
◆
:End
◆
:End
◆Label:24
◆If:Party has Axe
◆Control Variables:#0242 Tool ID = 4
◆Jump to Label:image
◆
:Else
◆Jump to Label:23
◆
:End
◆Label:23
◆If:Party has Axe
◆Control Variables:#0242 Tool ID = 3
◆Jump to Label:image
◆
:Else
◆Jump to Label:22
◆
:End
◆Label:22
◆If:Party has Watering Can
◆Control Variables:#0242 Tool ID = 2
◆Jump to Label:image
◆
:Else
◆Jump to Label:21
◆
:End
◆Label:21
◆If:Party has Pickaxe
◆Control Variables:#0242 Tool ID = 1
◆Jump to Label:image
◆
:Else
◆Jump to Label:36
◆
:End
◆
:End
◆Label:image
◆Comment:THE FOLLOWING EVENTS WILL SET UP WHICH UI PICTURE TO SHOW,
:Comment:DEPENDING ON WHICH TOOL IS SELECTED OR HOW FULL THE
:Comment:WATERING CAN IS.
◆If:Tool ID = 0
◆If:Tools UI is ON
◆Show Picture:#60, UI-Inventory Bar, Upper Left (223,580), (100%,100%), 255, Normal
◆
:Else
◆Erase Picture:#60
◆
:End
◆
:End
◆If:Tool ID = 1
◆If:Party has Pickaxe
◆Show Picture:#60, UI-Inventory Bar_1, Upper Left (223,580), (100%,100%), 255, Normal
◆Control Switches:#0014 PickaxeHeld = ON
◆Control Switches:#0015 WateringCanHeld = OFF
◆Control Switches:#0016 AxeHeld = OFF
◆Control Switches:#0017 FishingRodHeld = OFF
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:End
◆If:Tool ID = 2
◆If:Party has Watering Can
◆Show Picture:#60, UI-Inventory Bar_2, Upper Left (223,580), (100%,100%), 255, Normal
◆Control Switches:#0014 PickaxeHeld = OFF
◆Control Switches:#0015 WateringCanHeld = ON
◆Control Switches:#0016 AxeHeld = OFF
◆Control Switches:#0017 FishingRodHeld = OFF
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆If:Watering Can = 0
◆Show Picture:#59, wateringcan1, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 1
◆Show Picture:#59, wateringcan11, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 2
◆Show Picture:#59, wateringcan10, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 3
◆Show Picture:#59, wateringcan9, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 4
◆Show Picture:#59, wateringcan8, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 5
◆Show Picture:#59, wateringcan7, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 6
◆Show Picture:#59, wateringcan6, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 7
◆Show Picture:#59, wateringcan5, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 8
◆Show Picture:#59, wateringcan4, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 9
◆Show Picture:#59, wateringcan3, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆If:Watering Can = 10
◆Show Picture:#59, wateringcan2, Upper Left (1035,5), (100%,100%), 255, Normal
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 3
◆If:Party has Axe
◆Show Picture:#60, UI-Inventory Bar_3, Upper Left (223,580), (100%,100%), 255, Normal
◆Control Switches:#0014 PickaxeHeld = OFF
◆Control Switches:#0015 WateringCanHeld = OFF
◆Control Switches:#0016 AxeHeld = ON
◆Control Switches:#0017 FishingRodHeld = OFF
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:End
◆If:Tool ID = 4
◆If:Party has Fishing Rod
◆Show Picture:#60, UI-Inventory Bar_4, Upper Left (223,580), (100%,100%), 255, Normal
◆Control Switches:#0014 PickaxeHeld = OFF
◆Control Switches:#0015 WateringCanHeld = OFF
◆Control Switches:#0016 AxeHeld = OFF
◆Control Switches:#0017 FishingRodHeld = ON
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:End
◆If:Tool ID = 5
◆If:Season = 1
◆If:Party has Bean Seeds
◆Show Picture:#60, UI-Inventory Bar_5, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[301]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[301]
◆Show Picture:#85, None, Upper Left (415,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[301]
◆Show Picture:#85, None, Upper Left (421,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blackberry Seeds
◆Show Picture:#60, UI-Inventory Bar_5, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Beet Seeds
◆Show Picture:#60, UI-Inventory Bar_5, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#65
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 6
◆If:Season = 1
◆If:Party has Bell Pepper Seeds
◆Show Picture:#60, UI-Inventory Bar_6, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[302]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[302]
◆Show Picture:#86, None, Upper Left (456,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[302]
◆Show Picture:#86, None, Upper Left (462,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Blueberry Seeds
◆Show Picture:#60, UI-Inventory Bar_6, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Broccoli Seeds
◆Show Picture:#60, UI-Inventory Bar_6, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#66
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 7
◆If:Season = 1
◆If:Party has Carrot Seeds
◆Show Picture:#60, UI-Inventory Bar_7, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[303]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[303]
◆Show Picture:#87, None, Upper Left (497,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[303]
◆Show Picture:#87, None, Upper Left (503,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cabbage Seeds
◆Show Picture:#60, UI-Inventory Bar_7, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Corn Seeds
◆Show Picture:#60, UI-Inventory Bar_7, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#67
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 8
◆If:Season = 1
◆If:Party has Cauliflower Seeds
◆Show Picture:#60, UI-Inventory Bar_8, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[304]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[304]
◆Show Picture:#88, None, Upper Left (538,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[304]
◆Show Picture:#88, None, Upper Left (544,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Chili Pepper Seeds
◆Show Picture:#60, UI-Inventory Bar_8, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Cranberry Seeds
◆Show Picture:#60, UI-Inventory Bar_8, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#68
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 9
◆If:Season = 1
◆If:Party has Celery Seeds
◆Show Picture:#60, UI-Inventory Bar_9, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[305]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[305]
◆Show Picture:#89, None, Upper Left (579,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[305]
◆Show Picture:#89, None, Upper Left (585,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Cucumber Seeds
◆Show Picture:#60, UI-Inventory Bar_9, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Eggplant Seeds
◆Show Picture:#60, UI-Inventory Bar_9, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#69
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 10
◆If:Season = 1
◆If:Party has Garlic Seeds
◆Show Picture:#60, UI-Inventory Bar_10, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[306]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[306]
◆Show Picture:#90, None, Upper Left (620,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[306]
◆Show Picture:#90, None, Upper Left (626,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Jalapeno Seeds
◆Show Picture:#60, UI-Inventory Bar_10, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Grape Seeds
◆Show Picture:#60, UI-Inventory Bar_10, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#70
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 11
◆If:Season = 1
◆If:Party has Lettuce Seeds
◆Show Picture:#60, UI-Inventory Bar_11, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[307]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[307]
◆Show Picture:#91, None, Upper Left (661,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[307]
◆Show Picture:#91, None, Upper Left (667,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Radish Seeds
◆Show Picture:#60, UI-Inventory Bar_11, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Leek Seeds
◆Show Picture:#60, UI-Inventory Bar_11, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#71
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 12
◆If:Season = 1
◆If:Party has Onion Seeds
◆Show Picture:#60, UI-Inventory Bar_12, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[308]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[308]
◆Show Picture:#92, None, Upper Left (702,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[308]
◆Show Picture:#92, None, Upper Left (708,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Strawberry Seeds
◆Show Picture:#60, UI-Inventory Bar_12, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Pumpkin Seeds
◆Show Picture:#60, UI-Inventory Bar_12, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#72
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 13
◆If:Season = 1
◆If:Party has Snap Pea Seeds
◆Show Picture:#60, UI-Inventory Bar_13, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[309]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[309]
◆Show Picture:#93, None, Upper Left (743,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[309]
◆Show Picture:#93, None, Upper Left (749,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#94
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Tomato Seeds
◆Show Picture:#60, UI-Inventory Bar_13, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Rutabaga Seeds
◆Show Picture:#60, UI-Inventory Bar_13, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#73
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 14
◆If:Season = 1
◆If:Party has Potato Seeds
◆Show Picture:#60, UI-Inventory Bar_14, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[310]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[310]
◆Show Picture:#94, None, Upper Left (784,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[310]
◆Show Picture:#94, None, Upper Left (790,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#95
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Turnip Seeds
◆Show Picture:#60, UI-Inventory Bar_14, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Spinach Seeds
◆Show Picture:#60, UI-Inventory Bar_14, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#74
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 15
◆If:Season = 1
◆If:Party has Raspberry Seeds
◆Show Picture:#60, UI-Inventory Bar_15, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[311]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[311]
◆Show Picture:#95, None, Upper Left (825,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[311]
◆Show Picture:#95, None, Upper Left (831,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#96
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Watermelon Seeds
◆Show Picture:#60, UI-Inventory Bar_15, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Squash Seeds
◆Show Picture:#60, UI-Inventory Bar_15, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#75
◆
:End
◆
:End
◆
:End
◆
:End
◆If:Tool ID = 16
◆If:Season = 1
◆If:Party has Rhubarb Seeds
◆Show Picture:#60, UI-Inventory Bar_16, Upper Left (223,580), (100%,100%), 255, Normal
◆If:Script:$gameParty.numItems($dataItems[312]) >= 10
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[312]
◆Show Picture:#96, None, Upper Left (866,599), (100%,100%), 255, Normal
◆
:Else
◆Plugin Command:TextPicture, Set Text Picture
:Plugin Command:Text = \FS[12]\ItemQuantity[312]
◆Show Picture:#96, None, Upper Left (872,599), (100%,100%), 255, Normal
◆
:End
◆Erase Picture:#85
◆Erase Picture:#86
◆Erase Picture:#87
◆Erase Picture:#88
◆Erase Picture:#89
◆Erase Picture:#90
◆Erase Picture:#91
◆Erase Picture:#92
◆Erase Picture:#93
◆Erase Picture:#94
◆Erase Picture:#95
◆
:End
◆
:Else
◆If:Season = 2
◆If:Party has Wheat Seeds
◆Show Picture:#60, UI-Inventory Bar_16, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆If:Season = 3
◆If:Party has Sweet Potato Seeds
◆Show Picture:#60, UI-Inventory Bar_16, Upper Left (223,580), (100%,100%), 255, Normal
◆
:End
◆
:Else
◆Control Variables:#0242 Tool ID = 0
◆Erase Picture:#76
◆
:End
◆
:End
◆
:End
◆
:End
I put it at the very end and it would end up half of the time not registering when
and how many waits did you put there?
As I said the number is critical and both too few and too many waits can have this effect, but the correct number will not.

Here is the long drawn out event. It's surely a ridiculous mess because I'm very new to RPG Maker.
Yes, it is a mess - for several reasons.

You need to learn how to use the control variable command - that would make your conditions much easier. Especially please check what happens when you select game data and then click on the line "map ID" to see what else is game data.
additionally you might want to check the mod(ulo) operator of control variable - it is rarely used in real life (which is why it is not as well known as multiplication and division), but it is extremely helpfull in computer number operations for games.

Additionally, you might want to split and reorganize your inventory counters from your tool counters.
Because the inventory doesn't change as quickly as your other options.
and while key presses need to be checked quickly, inventory count would have no problems with a wait (60) or so (one update per second)
and how many waits did you put there?
As I said the number is critical and both too few and too many waits can have this effect, but the correct number will not.
Oh interesting. I put a Wait 4 Frames at the very end but that's it. I saw that when I did it, it made my character walk smoothly again with no stuttering, but when selecting between tools it would take a few input presses to get it to register that I pressed PageUp to swap to the next weapon. Eventually after a few presses, it would register and move to the next tool.

You need to learn how to use the control variable command - that would make your conditions much easier. Especially please check what happens when you select game data and then click on the line "map ID" to see what else is game data.
additionally you might want to check the mod(ulo) operator of control variable - it is rarely used in real life (which is why it is not as well known as multiplication and division), but it is extremely helpfull in computer number operations for games.
Yeah, I've seen that I can set a variable to the number of a specific item the player has, but I could only think of doing the same thing but using \V[n] with the TextPicture plugin command to do the same thing rather than using ItemQuantity[315] instead, but I figured with the item quantity code, I wouldn't need to use extra variables since that took care of what I wanted to do without the need for variables, but maybe it takes longer to process that way. I'm not sure.

The modulo operator is something I've definitely seen mentioned a few times but haven't dove into much, but sounds like it should be a priority.

Splitting up the common event does sound like it would be a big help though! Maybe I'll give that a shot and see what happens. I appreciate your help and feedback tremendously.
Splitting up the common event does sound like it would be a big help though! Maybe I'll give that a shot and see what happens. I appreciate your help and feedback tremendously.
basically have one parallel with few waits listening to button presses and nothing else, changing a few variables like "page number" for the other parallel to react to.

that other parallel would then for displaying the selected page of tools, with a wait (20) or even higher because you don't have to update the number of seeds more than one or two times per second.

would take a few input presses to get it to register that I pressed PageUp to swap to the next weapon. Eventually after a few presses, it would register and move to the next tool.
That actually is caused because your event is too long.
The "button pressed" condition is checked when the computer processes the conditional branch, not before and not after - only exactly.
Which means that the more other event lines the event has, the rarer is that check.
That is another reason why the parallels for button checks should always be independent of what is done by the button as soon as you need more than a dozen commands to handle the button result.
Oh yeah I totally have it checking the quantity for every item simulataneously I guess because that's the only way I knew how to do it. Definitely seems to be what's causing the issue because I ran with this for a while without having any indicator on how many of each item the player had but I figured I'd give it a shot because it was really inconvenient to play and not know how many seeds you had left.
What I mean is that checking the quantities isn't the issue. Reading a simple value from memory is a pretty fast operation. The issue is that, after checking the quantity, you are redrawing the quantity text picture on your UI, regardless of whether or not it actually needs to be redrawn.

So 60 times every second, it is destroying the existing text picture and creating a new one. And IIRC, the way the TextPicture plugin works is that it creates a dummy window, draws the text into the dummy window, copies the window contents into the bitmap of your picture, and then destroys the dummy window. So it's doing all that stuff 60 times every second, for every item you've got.

What you should do is make your code a bit smarter, so it only draws the quantity text when the quantity of the item has changed. That way, it's only destroying and redrawing the existing text when it actually needs to, and it should dramatically improve the performance of your event.

Spoiler: Example
Code:
// This is pseudocode. You'd want to translate this into event commands and such

currentQuantity = $gameParty.numItems($dataItems[id]);

if (oldQuantity !== currentQuantity) {
    oldQuantity = currentQuantity;
    PluginCommand: TextPicture currentQuantity;
    ShowPicture blah blah blah;
}
@Arthran
You are completely right, but in response to my first post farther above the OP mentioned that he doesn't want to reserve that many variables for that.

That's why I suggested splitting input and output, to allow the output to use a much higher wait for the display cycle. That's far from optimal but it would reduce the lag quite a bit.
@Arthran
You are completely right, but in response to my first post farther above the OP mentioned that he doesn't want to reserve that many variables for that.

That's why I suggested splitting input and output, to allow the output to use a much higher wait for the display cycle. That's far from optimal but it would reduce the lag quite a bit.
You could do both. There's no problem with splitting the input/output and also adding in checks to stop unnecessary redraws. You wouldn't need to reserve game variables, because it would actually be better to use something more temporary (that way you don't have to bother clearing all the values every time a new session is booted).

I'd just make an object in $gameTemp to store all the oldQuantity values, and use the item ID as the key. I.e. $gameTemp.oldQuantity[id] = value;
Ultimately if I need to use more variables to make it work, then I’m all for it. Just to my layman mind, my thought process was the text code for displaying an item quantity would functionally do the same thing without requiring extra variables.

Thanks so much to each of you. You’ve all given me a lot to try out and see what I can get to work and I’m beyond grateful for your help. I always had trouble asking for help so it’s something I’ve had to teach myself that it’s okay to do. You’ve all been so helpful so thank you! I’ll put the knowledge you’ve given me towards getting this to work
You could do both. There's no problem with splitting the input/output and also adding in checks to stop unnecessary redraws. You wouldn't need to reserve game variables, because it would actually be better to use something more temporary (that way you don't have to bother clearing all the values every time a new session is booted).

I'd just make an object in $gameTemp to store all the oldQuantity values, and use the item ID as the key. I.e. $gameTemp.oldQuantity[id] = value;

Sorry for the double post, but I just wanted to double check I'm doing this right. I fixed the lag thanks to you guys recommending separating the PageUp/PageDown to scroll through items into it's own common event and adding wait commands, but I want to make sure I'm maximizing the efficiency and trying to get the $gameTemp idea set up. Here's what I have. Am I doing it correctly?

ToolbarUIEvent.png
Sorry for the double post, but I just wanted to double check I'm doing this right. I fixed the lag thanks to you guys recommending separating the PageUp/PageDown to scroll through items into it's own common event and adding wait commands, but I want to make sure I'm maximizing the efficiency and trying to get the $gameTemp idea set up. Here's what I have. Am I doing it correctly?

View attachment 283905
That should be on the right track. However, as you currently have it, it will still execute every time, because you're not changing the value of the $gameTemp.oldQuantity anywhere, so it will continue to not be equal to the new quantity. Inside each "If : CurrentQuantity ≠ OldQuantity" branch, you need to add a script command to set the corresponding value in the oldQuantity object to be equal to the new quantity, so that the branch will only execute once:
JavaScript:
$gameTemp.oldQuantity[itemId] = $gameVariables.value(23);

You'll also need to make sure that the $gameTemp.oldQuantity object exists by the time you try to use it. There are several ways to do that, but the best way would probably be to add this code to a new .js file and add it to your project through the plugin manager:
JavaScript:
(() => {
    const _Game_Temp_initialize = Game_Temp.prototype.initialize;
    Game_Temp.prototype.initialize = function() {
        _Game_Temp_initialize.call(this);
        this.oldQuantity = {};
    };
})();
Tremendous thanks! It's working like a charm now!

Original thread: https://forums.rpgmakerweb.com/threads/fixing-slowdowns-in-parallel-common-events.162939/