MV JS plugin request MV

I am looking for a plugin that will handle pushing pillars made of 3 events around as a unit without being able to be pushed through walls due to pass-through, that also will allow the top-most event to be used as a jump platform (pass-through removed when jumping to it, and re-added when jumping from it). If it can also be used as a bridge that would be a bonus as far as I am concerned.

I found one made for VXAce by A-Moonless-Night, who has graciously given me permission to post her ruby code here for reference to what I am looking for https://forums.rpgmakerweb.com/index.php?threads/push-bridge-and-jump-events.94049/
I am also using Yanfly's smartjump plugin for general use as a jump option, but that requires regions for what I am using it for and I am unsure if those can be moved via JS. Any help would be greatly appreciated.

Thank you for your time.
there are 2 plugin that works:

TSR_MapJump and TSR_MoveEvent plugin as well for the plugin of
TSR_TransferTrigger to allow more complex things the MapJump plugin.

so you need to use some eventing to make it work as I use it too.
but mine are more complex, but this push and jump on it 1 one of it.
This is the only plugin I know that allows for large (multi-tile) events to be moved. The plugin file has English instructions
I have already made the events able to move as one, and I can jump with Yanfly's smartjump plugin, my primary issues are that I cannot change passthrough of an event via eventing as far as I can tell, which is necessary to prevent the event(s) with passthrough from moving through walls. And because the passthrough must be on for the multi event grouping to function it also is always on top of the player. None of the plugins listed appear to be able to manipulate the passthrough of events, nor change region data of an event to follow the event - unless I missed it by reading too hastily. The VXAce script I linked seems to manage all of that, PLUS allowed the pillar to be used as a bridge to walk across. Still, thank you for your replies.
example.png
change region data of an event to follow the event
You can do that with a tilechanger like Shaz's one. Basically every time you move those three events you'll have to overwrite both the tiles they were on and the tiles they're moving to.
You can do that with a tilechanger like Shaz's one. Basically every time you move those three events you'll have to overwrite both the tiles they were on and the tiles they're moving to.
I will look into that. Sounds like one issue might be resolved at least. Is there any way that you know of to change passthrough of an event/ multiple events? Alot of what I have found online as far as preventing the separation of the events requires me to input the x and y of the event to check its surroundings for obstacles, which I won't be able to do as all the pieces move. Plus it doesn't fix the issue of being under the top of the pillar when jumping onto it.

I found this plugin https://forums.rpgmakerweb.com/index.php?threads/dopans-priocharz-js.152546/ that appears to be a workaround for being under the event, if I can just determine a way to disable passthrough in conjunction with another JS setup that can determine if an event would be blocked by another tile such as https://forums.rpgmakerweb.com/inde...event-can-move-in-a-certain-direction.142111/, however this script appears to require knowledge of the x and y of the event(s) in question, and they are movable events. Unless I am mistaken, which is very possible as I have virtually no JS experience. If somebody could explain a workaround or explain why I am wrong it would be MUCH appreciated.

Scouring the forums I was able to find this snippet of JS that is supposed to let me check for obstructions in the path of an event before allowing it to execute, however I have been thus far unable to discern how to use it or what I am doing wrong. If someone with JS knowledge could explain how I use this it would be much appreciated.

e = $gameMap.events()[event_id]
e.canPass(e._x, e._y, direction)
// Replace direction with
// 2 = down
// 4 = left
// 6 = right
// 8 = up

I have tried it as a conditional if-else branch, which I found was not the correct method, and tried calling it with a general script to no avail. I only replaced the event_id and direction, in case that is my mistake.
Could you post the event page where you're calling the script?
Sure. It is using up as the test direction
event_canpass.png
Sure. It is using up as the test direction
View attachment 284262
The script isnt "working" because it doesn't do anything. All you're doing is defining a variable, e, as event 35 on the map, followed by a statement that is either true or false (Can event 35 pass in the 8 (up) direction from (event 35's x position, event 35's y position).

You are right it needs to be in a conditional somewhere.
Think logically where that information should go.
The script isnt "working" because it doesn't do anything. All you're doing is defining a variable, e, as event 35 on the map, followed by a statement that is either true or false (Can event 35 pass in the 8 (up) direction from (event 35's x position, event 35's y position).

You are right it needs to be in a conditional somewhere.
Think logically where that information should go.

This is more in line with how I thought the script would need to be used, but this configuration doesn't seem to be checking for obstructions which tells me it still isn't correct. Plus now I cannot push the event upwards at all?
event_canpass2.png

event_canpass3.png
This is more in line with how I thought the script would need to be used, but this configuration doesn't seem to be checking for obstructions which tells me it still isn't correct. Plus now I cannot push the event upwards at all?
View attachment 284268
View attachment 284269
It will only check if event 35 can move. You're moving 3 events at once, with the other 2 above event 35. It won't move up because the other 2 events are above it so canPass is false. If you're pushing all three up, you should be checking if only the top event can pass in that direction, not the bottom. If pushing down you only need to check the bottom

However if you're moving it left or right, all three events' collisions need to be checked. So you need to define e2 and e3 as those events, then also check their collisions in that direction
It will only check if event 35 can move. You're moving 3 events at once, with the other 2 above event 35. It won't move up because the other 2 events are above it so canPass is false. If you're pushing all three up, you should be checking if only the top event can pass in that direction, not the bottom. If pushing down you only need to check the bottom

However if you're moving it left or right, all three events' collisions need to be checked. So you need to define e2 and e3 as those events, then also check their collisions in that direction
Even though the top two events have "through" on for the top two events? Also this happens even if the bottom event is separated instead without events all around them. I am testing your suggestion now though, and will let you know if that solves my problem.

Attempting to check all three for left pushes as a test and now left movement can't happen either. Is the function an inverse and I am supposed to be using the ELSE for when the check succeeds?
event_canpass4.png
Attempting to check all three for left pushes as a test and now left movement can't happen either. Is the function an inverse and I am supposed to be using the ELSE for when the check succeeds?
View attachment 284275
Could you press F8, click the console tab and type in:
e = $gameMap.events()[35];
e.canPass(e._x, e._y, 8);
Or
return (e.canPass(e._x, e._y, 8));
and see if it returns true?
If it does you should be able to push event 35 up.
It was f12 for me for some reason, but it returned as false.
event_canpass5.png


I also tried it with 4 to test left and it returned true, but still doesn't move.
Here is the actual event stack in question to verify it isn't surrounded.
event_canpass6.png
It was f12 for me for some reason, but it returned as false.View attachment 284278

I also tried it with 4 to test left and it returned true, but still doesn't move.
Here is the actual event stack in question to verify it isn't surrounded.
View attachment 284279
Presumably the bottom event cant go up because the other two are in the way. If the others are set to through I would expect the event to go onto the same tile as the other, but through may only be for player passability.

For the move left command to work, all three events need to return true for that direction, so one of them is returning false.
3 scriptcalls are 3 different calls, so the setup you made there will NOT work,
you can rather use the enter scriptcall into the conditional branch, another way
if you want it more simplify is to use the top event (above), and when you walk on
the stairs, flip it to be the same as character/below character, but also blocking from
moving OFF it, or if they could jump off, place it above, so they walk behind it.

you kinda overcomplicate things in your event and most of it will not work or
just crash how you do it currently.
Presumably the bottom event cant go up because the other two are in the way. If the others are set to through I would expect the event to go onto the same tile as the other, but through may only be for player passability.

For the move left command to work, all three events need to return true for that direction, so one of them is returning false.
I tested more in the console and you were right, one of them is returning false. I can't figure out why but it is the topmost event in the pillar stack.

event_canpass7.png

no region tags in the area, no events.

3 scriptcalls are 3 different calls, so the setup you made there will NOT work,
you can rather use the enter scriptcall into the conditional branch, another way
if you want it more simplify is to use the top event (above), and when you walk on
the stairs, flip it to be the same as character/below character, but also blocking from
moving OFF it, or if they could jump off, place it above, so they walk behind it.

you kinda overcomplicate things in your event and most of it will not work or
just crash how you do it currently.
I have the jump events set up to turn through off in movement routes when I jump onto the top pillar, and back to off when I jump from the pillar. I'm afraid I don't understand what part of the 3 scriptcalls cannot work, the part where I set e, f, and g? or the if-else branches checking for collision between the events and their surroundings?
3 scriptcalls are 3 different calls, so the setup you made there will NOT work,
you can rather use the enter scriptcall into the conditional branch, another way
if you want it more simplify is to use the top event (above), and when you walk on
the stairs, flip it to be the same as character/below character, but also blocking from
moving OFF it, or if they could jump off, place it above, so they walk behind it.

you kinda overcomplicate things in your event and most of it will not work or
just crash how you do it currently.
It'll work even though it's not optimal and we're not even at the jumping part. If it were me I would've used the big event plugin I linked earlier and made the pillar one event, but three events are doable.
you can either make all from scriptcalls, but the only scriptcall you need
is event 35 (in this case), the other 2 are not needed, as they can walk/move
when you push event 35 in 1 sweep, making it easy to control them.
so 3 checks is also not required, just 1.

also, instead of 3 seperate, use 1 instead to call them, as 1 count all, 3 are 3 seperate
calls and could break easely for what you trying to do.
It'll work even though it's not optimal and we're not even at the jumping part. If it were me I would've used the big event plugin I linked earlier and made the pillar one event, but three events are doable.
I have figured out the jump part I'm pretty sure. It is the collision aspect that is giving me all the trouble.

Original thread: https://forums.rpgmakerweb.com/threads/js-plugin-request-mv.162999/