Complex buttonpicture problem

I am using the buttonpicture plugin to event a puzzle, and I am having a bit of a time figuring out how. Sorry for the complexity of the problem. I have been able to get pretty much what I want except for when I have a book already in place and try to place another book in the slot. (help simplifying it all would be nice too, this is a beast even for me to keep straight in my head)

first three pictures are the base event and the next fifteen are from the first slot's common event.
[ISPOILER]
base1.jpg
base2.jpg
base3.jpg

First slot's common event:
problem1.jpg
problem2.jpg
probem3.jpg
problem4.jpg
problem5.jpg
problem6.jpg
problem7.jpg
problem8.jpg
problem9.jpg
problem10.jpg
problem11.jpg
problem12.jpg
problem13.jpg
problem14.jpg
problem15.jpg

[/ISPOILER]
I think you're going to have to take a minute to explain what you are doing and what is going wrong first.
I appreciate being concise with your post, but it's sort of lacking the necessary information.

What is the puzzle? How do players interact with it? What is it suppose to be doing? What is going wrong? What have you tried to do to fix it?
I think you're going to have to take a minute to explain what you are doing and what is going wrong first.
I appreciate being concise with your post, but it's sort of lacking the necessary information.

What is the puzzle? How do players interact with it? What is it suppose to be doing? What is going wrong? What have you tried to do to fix it?
I think a short video will help? The player clicks on one of the books on the right and slots it in on the left. Clicking on an empty slot on the right will return the missing book to that slot. Clicking on a book set in on the left will let you place it in a different empty slot. Right now clicking on a book on the left and clicking it's own slot again will break the logic and the player has to click its empty slot on the right to unbreak it.
Clicking a book on the left while you have a book "loaded" from the right will skip the part I wrote in up top as in the entry directly under IF: ACTIVE PUZZLE BOOK = 2 that should reset a book that was loaded up to be placed. (I see that I don't have a matching set under IF: ACTIVE PUZZLE BOOK = 1 due to some desperate editing, but it's been in place in the past and is back right now and not helping.



Realistically I think the best help will be if someone can help me refactor it to not be a nightmarish mess of events.
@Norintha I posted in your status post as well. I think I was able to figure out how to Event what you wanted.

Here is a video. If this isn't exactly what you want, maybe I can update it.

If it seems to be what you want, I can make a explanation video.

I used the default version of the ButtonPicture plugin since I haven't tried the updated version.

I also used the assets that I had available. The top row of boxes would be your book shelf and the bottom row of boxes would be your book pieces.

I really hope this helps.

Yeah, wow that looks basically exactly what I've been trying to get happen!
@Norintha

Here is an explanation video of how I Evented this. I hope I removed most of the unnecessary or inefficient things, but I am sure this could be further optimized. I guess the important thing is that it works.

Hopefully, if anyone else with more knowledge and experience watches the video they can maybe offer a better and simpler solution to help you out. That might also help me too!

I hope I explained everything good enough. If not, feel free to ask me any questions and I can try to clarify.

I am also happy to try to modify the Events if it isn't exactly what you are looking for and if I know how.

Hopefully this is a good start and you can modify it however you want.

Good luck!

Oh wow, thank you so so so much! You are amazing!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/complex-buttonpicture-problem.170395/