Using Picture ID above 100 - Script or Plug-in for MZ?

EDIT EDIT: 11/29/2025 - Look at the last few posts made today. That shows a built-in feature that was added to MZ to increase this limit without a plugin. Not sure why I didn't notice the announcement before. So, there is updated information on 11/29/2025 that supersedes much of this. I confirmed that MV does NOT have this Advanced Setting option.



I have found several threads about this, I have searched the Script Call reference document, and I have searched for plugins.

It seems like you can’t use a script to use a Picture ID above 100 (I did try and it didn’t work) and I haven’t found a plug-in that specifically provides this functionality.

For my Sudoku Puzzle I am going to be hitting up against the 100 Picture ID limit. I probably only need about 10 more Picture IDs to be safe.

Does anyone know of an MZ plug-in that will allow using more than 100 Pictures at one time?

Or did I miss something with using a script call?

Or any other possible solutions? I use 81 Pictures just for the puzzle squares and another 9 for the clickable value choices. That only leaves 10 Pictures remaining and I have more than 10 things I might need to show while those other 90 are still on the screen.

Thanks for any thoughts!
I have found several threads about this, I have searched the Script Call reference document, and I have searched for plugins.

It seems like you can’t use a script to use a Picture ID above 100 (I did try and it didn’t work) and I haven’t found a plug-in that specifically provides this functionality.

For my Sudoku Puzzle I am going to be hitting up against the 100 Picture ID limit. I probably only need about 10 more Picture IDs to be safe.

Does anyone know of an MZ plug-in that will allow using more than 100 Pictures at one time?

Or did I miss something with using a script call?

Or any other possible solutions? I use 81 Pictures just for the puzzle squares and another 9 for the clickable value choices. That only leaves 10 Pictures remaining and I have more than 10 things I might need to show while those other 90 are still on the screen.

Thanks for any thoughts!
This might work?
JavaScript:
Game_Screen.prototype.maxPictures = function() {
    return 100;
};

Try overwriting that (save as new plugin and load it) to 200 and see what happens. I think some of the range is reserved for pictures in battle stuff.
So, this may be my ignorance of the engine; do you need 100+ "Pictures" as a specific thing, or is it possible to use Sprites and not run afoul the limit?
@bass2yang Thanks! I will give that a try in a test project and see what happens.

@daMooseNeo I’m not sure how I would use Sprites for what I need. For a Sudoku Puzzle, you need to be able to show different values in 81 different squares. And so far, I have 81 different possible values for each square.

9 more pictures are also clickable to call Common Events. All the 81 puzzle squares are also clickable to call Common Events. Plus there are some other things that need to be clickable.

So I’m not sure how I could use Sprites with Events in place of those.

But I am interested in any alternative options.
Pictures are a type of sprite.

To be fair, you could certainly implement your entire Sudoku as events which change their image as appropriate.
@ATT_Turan Can you explain that a bit more? I don’t grasp how I could make it so the player clicks on the Events and then the sprite image changes to what is needed. Or how I would check that the puzzle is completed correctly.

I’m not trying to be difficult. I really can’t think of how that would work.
I don’t grasp how I could make it so the player clicks on the Events and then the sprite image changes to what is needed.
I haven't looked at how your game works now.

Any code/event commands that you could possibly be running from clicking on an image can also be run by clicking on an event. And you'd replace any commands that show a picture with commands that change that event's image. (or set a variable to change its page to have a different image or whatever)

Or how I would check that the puzzle is completed correctly.
That should have nothing to do with anything on the screen. You should know your puzzle is correct because of the data that's in variables/arrays/however you're storing it. Right?

Your game doesn't know "a shield is on this part of the screen so it's a valid puzzle," it knows "coordinates 5, 8 are set to 7." How you choose to then work on top of that data can show pictures, manipulate events, display it as a text-only grid, whatever.
@ATT_Turan Thanks for that explanation. I will have to think about that some more and experiment to see how that works.
@daMooseNeo I’m not sure how I would use Sprites for what I need. For a Sudoku Puzzle, you need to be able to show different values in 81 different squares. And so far, I have 81 different possible values for each square.

9 more pictures are also clickable to call Common Events. All the 81 puzzle squares are also clickable to call Common Events. Plus there are some other things that need to be clickable.

So I’m not sure how I could use Sprites with Events in place of those.

But I am interested in any alternative options.
Its kinda like the icons; you'd have one image with all of your possible elements and load that up, extracting a sprite from each.
With 81 puzzle squares, just riffing, I'd do a 9x9 grid of squares, so its even sizes and predictables. A little mathing/logicing would net grid placements/x-y, which you pull the sprite from.
@daMooseNeo Thanks! I will definitely explore this path as well since it isn’t anything I have experimented with for using Events in that way. It will be something else worth learning about and exploring.
Pictures are a type of sprite.

To be fair, you could certainly implement your entire Sudoku as events which change their image as appropriate.
I like doing things similar to this because I can call animations and change frames/images to give the player a bit of feedback when things change right on the event. And I can use the event's collision for stuff as well. Currently doing it with my 15 Puzzle that I built using events and my own scripts to run it.

I need to get better at Sudoku if I want to understand it more, much less create a mini-game for it haha

@ zombie I think the picture sudoku is pretty cool and looking forward to how it will be implemented.
Unless you literally have 81 unique images for each of the 81 squares in the sudoku, you don't really need that many images. So, for example, if you have 9 images from 1-9, you only need 9 ids for the images. I don't know exactly how you set the sudoku images, but lets assume you have 27 unique images for each combination of sudoku you want, that means you only need 27 ids for that particular map where the sudoku minigame is played.
I don't know how you eventually coded the sudoku minigame, I've only seen some of the progress you've shown on the posts. Try to look for redundant parts of your code, see what you can basically reuse continually, instead of repeating things multiple times, have it only exist once and make multiple calls to it.
@Winshifter The way I have done it so far is to use Show Picture for the 81 puzzle squares. So while a blank Sudoku Puzzle might start off with 81 White squares with the same Picture Name (White Square), there are 81 Pictures on the screen that can be clicked to add or display the value for the puzzle. Only 10 Picture Names in total, but 81 Picture IDs.

The Sudoku puzzle needs to show the player the initial hints (which are only displayed, not clickable) and then the rest of the squares must be continually clickable by the player so they can insert and change values until the puzzle is solved.

I do recall trying to use Events the first time I worked on a Sudoku Puzzle. But the issue I had was how slow it was. And how you triggered the Events. The only way I knew/know how to do it is to click on the Event and then the player Sprite has to walk to that Event to trigger it. Not only is that very slow, but there are also problems with getting access to all the Event squares. Think the middle square in a grid of 9 squares.

So I am wondering how a Sudoku Puzzle would quickly and efficiently function using Events where the player just clicks on a visible Event that doesn't have a puzzle value and the value the player wants to place there is quickly displayed without having to use something like Show Choices.

I must be missing something obvious.

As an example. I have 81 puzzle square Events and 27 of them have values displayed that the player can't change. That leaves 54 Events that the player needs to be able to select and insert or change values, how would I allow the player to select any of those Events to quickly display the desired value?

I understand how I can change the displayed Sprite image in the Event. But I guess what I am missing is the piece where the player selects where they want to input a value and then how that value is selected quickly without presenting the player with something like Show Choices or Input Number each time.

I can think of having clickable values on the screen using the ButtonPicture plugin (only need 9 at a time for each type of puzzle) and then player clicks on one (say 5) that triggers a Common Event and sets a Variable to 5. The player then clicks on the desired Event and the Event is triggered to check what the value of the Variable is and display the appropriate Sprite image for the value of 5.

But again, what is triggering the Event for the puzzle square? Is it an invisible player Sprite walking to that location? Or is there a way to trigger an Event while the player Sprite remains stationary and frozen in place? I think that is my unresolved question.

I know how to trigger an Event using a Script for Self-Switches, but you still need to be able to identify which Event the player wants to trigger.

I am still going to try the earlier suggestion of increasing the Show Picture IDs to 200 and see what happens. But I keep thinking about this option and I just can't grasp how it works.

If anyone is willing to help me better understand how it functionally works, based on what I have explained here, that would be incredibly helpful. I am probably just missing a basic piece for some reason.

Thanks!

EDIT: I also just tried the plugin option that @bass2yang previously suggested. It works for using scripts to Show Pictures and other picture related things with IDs above 100, but not with the default UI. Which seemed fine at first and it might be helpful for doing things with pictures that can be achieved with scripts

But it doesn't work with the default plugin ButtonPicture. ButtonPicture still has a selectable Picture ID limit of 100.
Just how do you select a value right now in the first place?
Again, riffing or spitballing, most of your process should remain the same/very similar. How you set your cell value now should be pretty darn near the same.
You would probably feed that ID then to a script to extract your sprite image. Again, think about icons in the game: one image file, with dozens of icon images, which are accessed via an ID. There's a script that divvies up the icon sheet based on the icon ID and displays the image. They're all the same dimension so its simple math on the part of the script; ID "A" means coordinates of X and Y, so from X and Y copy a 32x32 (or however big) portion of the image and call it Sprite Z. And then Sprite Z is positioned around the board/screen as necessary.

I'm not that far along yet, but I'm tinkering with things on a slightly smaller scale; a set of mini games like Lights Out and Netwalk. In those, I keep my state values in an array of arrays, forming my grid. I do all my logic checks on the grid. The visual is just a representation of my grid; I interact with a cell, I update my values in my gird. When the values in the grid update, the visual updates.
Now for my case, I wrote up a script that produces a selectable menu in a 5x5 grid. The first couple "games" have been simple; lights out is nice and easy like this, and the second one is a "word jumble" (think Fallout computer hacking), so I scoot along the menu and toggle the values in Lights Out or make a selection for the word jumble, and my script processes. Jumble's good, I'll get Lights Out to use icons in a bit as right now it just shows 1s and 0s, and I'll need icons for the Netwalk (pipe game). When I do get that far, the cell value in my grid array will determine the sprite shown~
@daMooseNeo This really makes me feel like I have Zombie brain because I just don’t get it. I think you have more scripting knowledge than I have. I have no idea how to script a selectable menu. So that might be one problem.

The way I currently do the selection doesn’t help because it relies on Show Picture and the ButtonPicture plug-in.

Assuming I don’t know enough scripting to make some sort of selectable menu or grid thingy, that leaves me with having the player click somewhere to determine what and where they want a value to display.

The first way I did it was to use Show Picture (81 different picture IDs, one for each square). Some of those squares are hints so a fixed value is displayed. The rest can be clicked on using the ButtonPicture plug-in. So the player would click on a square, which would call a Common Event, and then the player would input a number (1-9) using Number Input. Then that number would be displayed in the puzzle square. But the player could click on it again to change it if they wanted.

This time, I didn’t just want to use number values and I didn’t want to use a legend where the player sees A = 1, B = 2, and then use Number Input, but display the corresponding letter.

Instead, I want to show the player the possible 9 options on the screen. The player clicks on whatever option they want and then clicks on the square they want to show that option in the puzzle.

But again, that requires 90 Pictures on the screen just for the puzzle and the 9 clickable options.

So I go back to my question about how to do this with Events, but with very limited knowledge of using scripts. I get how to use Events and how to change the Sprite image within the Event.

But if I have 81 Events on the screen, acting as puzzle squares, I just don’t get how the player selects an Event to change the displayed Sprite image. Again, by using the available UI Event Command options or very simple script. And without having the player sprite running all over the map to activate the necessary Event.

I apologize for being dense here. I just don’t understand how that functionally works.
How are you building and checking the Sudoku puzzle itself? How is that value stored and accessed?
The issue seems to be you're depending on the ButtonPicture plugin to display everything and, I assume, create the "buttons" to collect the input?
@daMooseNeo So the Puzzle is randomly generated behind the scenes and values 1-9 are stored in 81 separate Variables. The random generation works fine.

So Variable 1-1 might be 5. 1-2 might be 7. 1-3 might be 1. The Variables are in Groups based on the 3x3 grids of the puzzle. Group 1 is Variables 1-1 through 1-9. Group 2 is Variables 2-1 through 2-9. Etc.

After the valid puzzle is generated, I am using Show Picture to display the squares of the puzzle. If a square is designated as an initial hint, the appropriate image is displayed based on the value 1-9. So 1 could be 1, or A, or the color blue, or a specific icon, etc.

Then the player can select a puzzle value to insert into a square of the puzzle. So they click the value they want (behind the scenes those options always equate to 1-9 for values) and then they select the square they want to input in the puzzle. That square now shows the image/value they chose for that square.

When the player is done, they click on an option to solve the puzzle and an Event checks to see if they solved the puzzle correctly. If not, it will indicate if errors are present in Columns, Rows, or Groups. And the player can make any changes they want.

So Show Picture displays the puzzle squares and puzzle value options and ButtonPicture makes the appropriate Show Pictures clickable.

The goal is to make the player interaction with the puzzle as easy and quick as possible.

Not sure if that makes since. But here are a couple of links to videos that show how the original puzzle design works. But I am doing things differently now.



Unless you literally have 81 unique images for each of the 81 squares in the sudoku, you don't really need that many images. So, for example, if you have 9 images from 1-9, you only need 9 ids for the images.
That's not correct. The whole point of assigning the IDs is to be able to track and manipulate each image on the screen, regardless of which file it's drawing the image from.

If you use ID 1 to display a picture in one location on the screen, then use ID 1 to display a picture in another location, it will remove the first one.

But if I have 81 Events on the screen, acting as puzzle squares, I just don’t get how the player selects an Event to change the displayed Sprite image...without having the player sprite running all over the map to activate the necessary Event.

(there may be other/free alternatives to click and activate events, that's just the first one that came up on Google)
@ATT_Turan Thanks for that plug-in. I did actually find that this morning and it might be useable. I noticed that you can move a flashlight like circle around to select what you want. I envisioned that the player would have to move that around the puzzle to all the available squares.

They would also still have to select a “value” first.

I was going to try to check that out some more to see how that might functionally work.
They would also still have to select a “value” first.
Personally, I'd reverse that.

If I'm doing Sudoku on paper, I bring my pencil to a box and write the number in it.

If I were playing a digital version, I'd expect to click on a box and then enter the value.

So this should be as straightforward as selecting the space and getting a choice of what they want to change it to.

Original thread: https://forums.rpgmakerweb.com/threads/using-picture-id-above-100-script-or-plug-in-for-mz.165036/