[RMMV] Trying to emulate Wizardry's trapped chests...

I've been mucking around with this idea all day so far, and thought I had something good going... Yet, it seems to not work as intended (not completely, anyway).

For those that aren't in the know:

The older Wizardy titles had random chests appear at the end of combat. When encountered with this, the player was given a choice: Open/Inspect/Disarm/Leave (and 'CALFO' was also an option, which was an 'x-ray eyes' spell that allowed priests to effectively function as thieves ala chests/traps, but I digress~).

Using Hime's Large Choices plugin, I was able to put together that great big list of traps. That part worked as planned. Following this, I began to set up the event that'd be called after combat - a 1 in 3 shot at a chest spawning, and this worked fine too. I even got individual traps to spring as they should.

The main hang-up I hit, was when I tried to set consequences for identifying and attempting to disarm the wrong trap. It's probably due to the massive list of nested 'if' conditionals I set up, but being a neophyte to scripting/RPGM, it's the best way I could see to do it... >_< I assume arrays could be used to similar effect, but I don't know squat about em'... ~_~

SO -- I guess my question is this: How can I set up a list of traps to function independently of one another, while also allowing the player to be hit with the correct trap upon failing to inspect them correctly..? I can explain further if need be, because I see how all of the above could be a bit confusing.

I'm using a load of different plugins, but nothing that should affect such fundamental functions, I believe; besides the aforementioned Large Choices plugin, I am also using Frog's Talent Core and many of Galv's plugins. Any help would be greatly appreciated, thanks in advance! 🙂

BONUS: If anyone could also help me figure out how to make an unidentified weapon/item identify system ala Wizardy, I'd be your friend for life! 😀

EDIT: Attached screenshots of part of the 'Chest' event, if that helps~
It would be a bit easier to help if you displayed what you already have coded, and pointed out which part wasn't working correctly. As it is, from reading your post, I have no idea what your problem is, and your question seems to be how can you completely redo the process of coding the treasure chests, which seems a bit counter-intuitive since you've already put work into it and gotten some things working.

So to give some general coding advice: a good first step when you're doing something large like this is to write it out in pseudo-code. That is, type steps out in English, as if you were giving someone instructions on how to do this. If you can do that, then it's just a matter of figuring out the syntax for performing each step using code.

P.S. I Googled "RPG Maker MV unidentified item," and immediately see at least two different plugins and a YouTube tutorial.
Ah, figs - I just attached a couple screens, if that provides anything to go off of...

It's late now though, and I've been plugging away at this all day. Will probably get back to it early tomorrow. Thanks for the advice, though - I'll take it to heart, as I may potentially need to scrap what I've done so far and re-evaluate how I patched it together to begin with~ xD

EDIT: No Google/YouTube where I live, unfortunately - and I've looked around for 'unidentified' stuff extensively too. 🙁
Ok, so I've played around with it a bit more, and have got some stuff working... But again, other things aren't going as intended.

Here's an outline of what I'm trying to achieve:

1. Check for chest (1 in 3) (this part works)​
1A. If a 1 is rolled, a chest spawns; next Check for traps (step 2)​
1B. If a 2 or 3 is rolled, there's no chest.​
​
2. Check for traps (1 in 3) (this part works)​
2A. If a 1 is rolled, there are no traps and loot is gained.​
2B. If a 2 or 3 is rolled, there's a trap (will be later determined by area tier; currently just rolling traps 1~4 for easier testing)​
​
3. Set variables for TRUE Trap ID & FALSE Trap ID​
​
4. Player checks Disable Traps skill vs Trap Difficulty (which varies per trap) to ID trap​
4A: Player is successful - trap is identified (this works...)​
4B: Player fails - FALSE Trap ID is returned instead (...this doesn't)​
​
5. Player checks Traps skill again vs Trap Difficulty to disarm the trap​
5A: Player is successful - trap is disarmed, loot is gained (this works...)​
5B: Player fails or tries to disarm FALSE trap ID; TRUE Trap ID is sprung (...this doesn't)​

Hopefully that provides more insight into what I'm trying to do. Lastly, here's the entirety of my Treasure Chest Common Event - it's a doozy, and I've been pulling and moving bits and pieces of it, so it may be a bit more disorganized than it was when I started poking at it again this morning... ~_~

Spoiler: Treasure Mess - Deleted!
There was once a pile of crappy eventing here... O_O

Any help condensing and/or cleaning up the above mess would be greatly appreciated. 🙂

EDIT: Also, just to be clear - I'm not asking anyone to finish my work for me; I'm just looking for someone to point me in the right direction of what I'm screwing up and where the mistake is... Thanks!
OK! I've figured out what was wrong through extended reconfiguration, and have fixed the system to be 100% efficient (thus far, anyway - the possibility of me screwing it up again is very real!).

A mod can lock this thread whenever they wish, it's purpose has been fulfilled~
Double-post notice: @vongrimmsy0

If you are posting again and the last post is yours and less than 72 hours old, please edit your post and add the extra information rather than posting again.

And when a thread of yours is resolved, just report it to get mods' attention, as we don't get to see every post so might miss a comment saying it can be closed.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-trying-to-emulate-wizardrys-trapped-chests.136810/