If you do not check passability on all three, then when pushing left or right the pillar will move even if there are obstacles blocking the middle or top as long as the bottom is clear
MV JS plugin request MV
JS Plugin RequestsI was only using 1 originally, but that didn't seem to be working either. I will test both methods since neither seems to be working at the moment.
the 3 I linked is ideal, as you can make pltform to fall through or stay while jumping,
so the mechanic is also far easier when you make a jump system.
even the TSR_Trigger can extent the event to count as one.
I also would set the pillar like a door/character sheet, so it doesn't require 3 events, but
event the bridge once in place as this dont require multiple events either, and make it
fully evented and user friendly 🙂
edit:
if you use Galv_PuzzleFunctions,
you just check the currect Event: Galv.PUZ.isAt([12,14]),
if you have 3-4 events, you check those 4 events on the x,y position,
if so, activate the bridge event (he 4 on top where you can jump on, else it will
be empty page.
there are multiple methodes, but this will probably also the most userfriendly way.
using it with only 1 call still results in the top 2 events moving independently through walls when the bottom event cannot move. And still cannot move them upwards. 3 plugins to make this work seems excessive.
maybe so, but if you use it A LOT in different locations, its worth it.
if you didn't check the video yet, do so =)
but you overcomplicate the event, if I had more time, I could show you
how to do it without plugins, I would make the pillars you want to push
as a character sheet, reason for this, its also more controlable for pushing,
and also make it easier to control the jumping when the pilar is in place.
that way, you have more control, and still free to walk around the map =)
if you didn't check the video yet, do so =)
but you overcomplicate the event, if I had more time, I could show you
how to do it without plugins, I would make the pillars you want to push
as a character sheet, reason for this, its also more controlable for pushing,
and also make it easier to control the jumping when the pilar is in place.
that way, you have more control, and still free to walk around the map =)
well the middle and top could feasibly overlap with wall so long as they don't separate from the base, which is the part on the same Z axis as the ground. Something like this:
Ignore the partial pillar, it is a different test piece.
you'll need to check if the bottom event can move first, and only move the top two if the bottom event is allowed to move - it doesn't matter if the top can move.
OR you'll need to check if all three can move before any moves.
OR you'll need to check if all three can move before any moves.
Oh, ok, my bad. I thought you wanted to check collision on the entire pillar, not just the bottom. Then in that case, you don't need to define the other two events as variables or check their collision.
That's exactly what it is supposed to be doing, but doesn't appear to be. The event is being assigned to e, then in a series of if/else conditionals it should be checking for obstruction and, if the check succeeds, it moves on to moving all 3 pillars in the direction the player was facing when they activated the event. Problem is no matter what I do with the code I can't seem to get it to work, even when the console returns a true result. Also when attempting to move upwards the bottom event is being obstructed by the events above them despite them having passthrough.
I am going to check out the video real quick and see if it has the answer.
I realize now that I did watch at least the event movement plugin yesterday or the day before, and really like the option to push and pull events, however I didn't see anything in it for allowing multiple events to be moved as once based on the video. Am I mistaken and can just use the event group movement that I am already using in conjunction with this plugin?
ShadowDragon wants you to just use one event with a big graphic. Its collision will only be the bottom tile it covers, but that's what you want.
you can move, like I said, you a character sheet like you place a door.
than move it that way, and a event that activate so you can jump on it.
this way, its far easier as you only check the X and Y position of the event,
if it is, activate the event to jump on it.
if you download the TSR_MapJump demo of the plugin, it has the
TSR_Trigger how to use them effectively, with move event and part of
the MapJump ability (as comment tag), you can make awesome mechanics.
from pushing, pulling, activation, pitfalls to fall on the pilar (if there is one),
and much more (as this goes into complex part), but alot of things is possible,
but also far easier to setup.
if you want it fully evented and the smarJump plugin you use, you need more
code, but it still possible to achieve the same effect, but with more effort.
than move it that way, and a event that activate so you can jump on it.
this way, its far easier as you only check the X and Y position of the event,
if it is, activate the event to jump on it.
if you download the TSR_MapJump demo of the plugin, it has the
TSR_Trigger how to use them effectively, with move event and part of
the MapJump ability (as comment tag), you can make awesome mechanics.
from pushing, pulling, activation, pitfalls to fall on the pilar (if there is one),
and much more (as this goes into complex part), but alot of things is possible,
but also far easier to setup.
if you want it fully evented and the smarJump plugin you use, you need more
code, but it still possible to achieve the same effect, but with more effort.
I also want to be able to use the topmost part of the pillar as a platform, and the top and middle parts to be above the player, except for when I jump onto the pillar as a platform (in which case I would use a moveroute event to set through to off momentarily)
I also want to be able to use the topmost part of the pillar as a platform, and the top and middle parts to be above the player, except for when I jump onto the pillar as a platform (in which case I would use a moveroute event to set through to off momentarily) Is all of that possible using one large image for the event? I was under the impression that it was all or nothing.
It depends entirely on how the plugin you're using is defining jumpable areas. If you're eventing or scripting the jump, then you can put a check to see if the pillar event's x position, y-2 position (2 tiles north of the pillar'ss base) is in front of the player.
move the event as 1, and when in place, you use the event on that spot
able to jump on the top (invisble event to walk on), this has basicly 2 pages,
activated/deactivated.
this is also something very basic, so you use 1 event as pilar, 1 event for jumping
on top, and a jump plugin, 2 events in total "per pilar".
able to jump on the top (invisble event to walk on), this has basicly 2 pages,
activated/deactivated.
this is also something very basic, so you use 1 event as pilar, 1 event for jumping
on top, and a jump plugin, 2 events in total "per pilar".
I am currently using Yanfly's SmartJump plugin with region tags to define same-elevations for jump eligibility, though it isn't perfect as the regions do not follow the pillar and will require something like Shaz's TileChanger plugin to turn the region on and off. Also unfortunate as it means pillars will need a "correct" placement and cannot be jumped to when out of place, even when in a "legal" jump area.
Is there any way to do it that doesn't require a "correct" placement of the pillar first? such as the pillar being jumpable but not where it needs to be to solve the jump puzzle? Also that still requires 2 events minimum it seems.
you need to make those two lines a single command, not two.
the script command is sandboxed, which means any locally defined variable is deleted when the command box ends - that includes your e, which is then undefined on the next conditional branch.
there are exactly two ways around this problem:
either you store your event in a global variable instead of a local one (that someone else would have to tell you how to)
or you combine both parts into a single command that can then be used in the conditional branch script line.
untested, please try this in your conditional branch:
$gameMap.events()[event._id].canPass($gameMap.events()[event._id]._x, $gameMap.events()[event._id]._y, direction)
and I hope that still fits...
Are all 3 event IDs supposed to be the same event?
Then yes, you would need a tile changer that overwrote the region of the tile two tiles north of the pillar's base of where it is before and after the move on every move command.
Yes
Any idea if ShadowDragon's push/pull script could be used to move more than 1 event at a time? it seems to check the collision for the base pillar alright.
I think I got them all, but I’ve merged all your double and multi posts. @DeceasedName please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/js-plugin-request-mv.162999/