Easier way to Common-Event a long Permutation?

Hello everyone!

So in my game, I want there to be a big treasure.

In each of the 10 areas in my game, there is 1 "piece" of the 10-piece treasure you can find. The player will be able to place each of the 10 pieces of the treasure in this "box" they carry from the beginning.

Each of the 10 slots in the treasure's "box" holds a designated spot for the piece, so it's not like you can place a found piece anywhere in any slot or anything. It automatically goes in its proper spot.


Essentially, what I have thought of so far is this:
I have 10 switches. They could either be ON or OFF for each Switch by the end game. (The player either has the treasure piece in its automatically-designated spot, or they do not have the piece at all). This effects how the sprite looks.
I did the math, which I believe is...2 to the power of 10, which is 1024 unique placement sprites (unless I forgot something).

What I want is the player to be able to go into the "box" common event menu, and place in the treasure pieces they found previously to change the sprite of their collection.

Does anyone know a good way to event this sort of long permutation in the simplest way possible using a Common Event for the "Box" item?
easiest way is to think outside the box and don't use switches at all.

Check for tutorials on how to make a "camp"-type item and map. That would basically be a teleporting item to get you to a special map while storing your current coordinates, then you could have that camp with your party to heal before returning.

However, instead of a camp-map you'll create a box map where the player can place those pieces as events into the prepared slots (change party sprite to a pointer sprite, check event positions by region ID and so on)
sorry, please delete
Yes, I can think of different ways to do this with a tile swapper, event morpher, or picture display but it depends on the specifics of what the OP wants these sprites to be.

You'll need to draw a diagram of what you want the box menu to look like for more advice on how to implement it.
This reminds me a logic-circuit 🙂 Divide the sprite art into 10 pieces, like a string of beads, and each one on/off as in light/dark, so art automatically forms. Power of computers 😉

edit: Ah this would work for on the map item but not quite sure with the item icons, which would need external coding : ) Instead you can try to change the icon randomly when there is any change detected, and try to hit some consistency via some tricks. (or item itself ofc)

edit2: i think solution would be, adding the string of numbers in an array and calculating the resulting number in binary, however you still have to do the 1024 drawings lol 🙂 (also, facepalm, well its morning).
It automatically goes in its proper spot.
so,... why is this even a question?
if it goes automatically, you don't have to change anything.
so,... why is this even a question?
if it goes automatically, you don't have to change anything.
I was rather confused by this also.

I think the OP's problem is not the interaction, but the visual display, and having to make 1,024 pictures of the box with all combinations of empty and full slots depending on what order the player collects them in.

I'm not sure why you can't make one picture of the box, then a picture for each treasure piece. Then just use Show Image to display the box and use event conditionals to Show Image each owned treasure piece on top of it in the appropriate place.

Or you can do something like Andar suggests with creative map graphics and such, but drawing separate images for every combination shouldn't be any kind of concern.
I guess it would help to have a doodle showing how it's supposed to work.
Oop, sorry for forgetting to reply, lol

Yes! I ended up figuring out on my own something similar to what @ATT_Turan suggested. I will just use conditional branches to show the images of the little treasures appearing in their pre-designated spots anyway, instead of trying to make 1024 sprites of the WHOLE thing. Much easier that way. I'm not sure why I thought 1024 sprites was the only way to go, but I guess it was one of those things where I just asked and thought outside the box afterwards.

It will just be many images on top of each other, but honestly that is nothing compared to what the previous daunting task was like lol.


Thank you guys regardless!
This here folks is why you may want to ask a sr. engineer first before writing 1024 lines of code.
This here folks is why you may want to ask a sr. engineer first before writing 1024 lines of code.
This isn't getting committed to the requirements doc without more info much less making it to engineering.

Original thread: https://forums.rpgmakerweb.com/threads/easier-way-to-common-event-a-long-permutation.157448/