Creating a loop

Hey everyone!

So, in this video you will see me lay down 4 remote bombs and then detonate them.

What I want to happen is that you have to put all 4 bombs down simultaneously as I do in the video. The player can't bomb one pillar at a time. Once the 4 pillars are bombed at once, it will collapse down and the treasure chest will be available. The actual structure is temporary. I'll eventually create something that looks better/more obviously bombable pillars, but I just wanted something up for now.

So, my question is, my understanding is I have to do this with a loop? Where if all 4 are hit, the loops completes. Otherwise it goes back down to 0.

Can someone assist me with how I have to program this? I'm okay with actually making the structure collapse and all that, I just need help with the part that tells the program "don't collapse unless all 4 bombs go off at once".

At the end you'll see I get a large error message. I also can't figure out how to make that go away, so if you happen to know, id appreciate that info too lol, but right now my main concern is the loop.

Thanks to everyone in advance!

That video is not helpful - it tells us nothing about how you're trying to accomplish this in RPG Maker.

You need to show screenshots of the event or code that you're using.

So, my question is, my understanding is I have to do this with a loop?
...maybe? I don't immediately see why. A loop, by definition, repeats instructions. What you're describing isn't repeating anything, it's asking whether something is true.

Where if all 4 are hit, the loops completes. Otherwise it goes back down to 0.
Again, that terminology doesn't really sound like it has anything to do with a loop. It sounds like you'd be using conditional branches to see if there's a bomb next to each corner when you activate the detonator.
That video is not helpful - it tells us nothing about how you're trying to accomplish this in RPG Maker.

You need to show screenshots of the event or code that you're using.


...maybe? I don't immediately see why. A loop, by definition, repeats instructions. What you're describing isn't repeating anything, it's asking whether something is true.


Again, that terminology doesn't really sound like it has anything to do with a loop. It sounds like you'd be using conditional branches to see if there's a bomb next to each corner when you activate the detonator.
I have no code or eventing. I simply know what I want but have no idea how to even begin it.

I asked someone "Is it possible to make it so that multiple bombs need to go off at once to accomplish something like breaking a rock? So that one bomb at a time does nothing but multiple does?"

This is because I recently have added remote bombs to my arsenal whereas I previously only had regular bombs.

So, this is an idea I will use multiple times and am open to any and every way or idea of how it can be done, I just don't know how. If a loop isn't the best way, that's fine. Here is another spot in the game where the same exact solution will be needed:



Putting a single bomb doesn't destroy any of the rocks. Only if you lay all 3 bombs around the puzzle on the black spots does it accomplish the goal.

Previously the player will have learned to blow up the brown rocks with regular bombs. Now they have to learn to use multiple bombs to accomplish the goal. Either bombing multiple posts at once like the first video, or bombing around an object to cause it to collapse in on itself, like in this video.

I just need some idea of how to code this so that single bombs do nothing whereas multiple bombs in the right spot (like the black tiles in this video or next to the poles in the first video) triggers the desired effect.

ok i didnt read your last sentence the first time. I suppose that's what I need to do is create the conditional branches asking if the bomb is on the correct tiles when I hit the detonator. Makes sense and seems obvious now that you say it, lol.

However, I'm a little confused on how I would code to check where the bomb is. I've done puzzles like a 3 switch puzzle where you have to roll 2 rocks on switches and stand on the 3rd, so I'm familiar with the general process of how to have the game check if the 2 rocks are on the switch and if the player is on the switch, which seems like it's similar, but since the bomb is a tool from the MOG engine, is it different to program for it to check for that?

Because under conditional branches, under item, when I choose RemoteBomb, the only real option it gives me is "If party has RemoteBomb".. i cant find how to program "if bomb is in x,y spot"
I have no code or eventing. I simply know what I want but have no idea how to even begin it.
I'm sorry, but that makes no sense.

In RPG Maker by default there's no such thing as a remote bomb that you select from your menu and it appears on the map, and no such thing as a detonator that you select from your menu and it blows up remote bombs.

You must be using events or script calls/plugin commands to create these things.

the bomb is a tool from the MOG engine
So you must be using some kind of plugin parameters or common event or something to create this bomb and define what it does.
I'm sorry, but that makes no sense.

In RPG Maker by default there's no such thing as a remote bomb that you select from your menu and it appears on the map, and no such thing as a detonator that you select from your menu and it blows up remote bombs.

You must be using events or script calls/plugin commands to create these things.


So you must be using some kind of plugin parameters or common event or something to create this bomb and define what it does.
I didn't say the RemoteBomb has no coding. I said I had no coding for what I am trying to do, which is simply make it so that a rock/pillar whatever will only break when multiple bombs are placed in the correct spots at the same time.

The rest is in the video so I didn't explain anything that the video seemed to make obvious.

I want to make it so the rocks will only break when 3 bombs are placed on the black tiles next to the rocks. And you actually already started answering me- You said it sounded like I needed to make it so that it checks if the bombs are in the correct spot when I hit the detonator.

That sounds correct to me as well, however when I go into the conditional branches, the only option I can find for "items" and the "remotebomb" is "if the party has remotebombs". So how do I make it so that it checks if the bombs are on certain tiles before it triggers an event (which will be exploding the rocks)

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-loop.168722/