Control 2 Events with 1 Action?

This is probably a really stupid question, so I'm sorry:

I'm trying to make it so that if you search a two-tile-wide dresser you find gold on the first attempt (regardless of searching on the left or the right side), then the entire dresser goes to self-switch A without any more loot (so you can't loot both sides for double gold). I did this with a switch at first, but the more I thought about it, I didn't want to have to burn a bunch of switches (even though I know we get tons, but it's still cluttery) every time I have a two-tile event.

Thanks in advance.
There are plugins like Shaz Big Event that will extend the hitbox of an event.

This one is for MZ and also works with moving events. Plugin file has English instructions
In case you happen to already be using VisuStella's plugins, I'll go ahead and mention that their Events and Movement Core plugin also contains functionality that could help you pull this off stuff like this, in a few different ways: you could increase the hitbox of an event so that it takes up both spaces, you could use region-based event activation, or you could have one event trigger the self-switch of the other event.
In case you happen to already be using VisuStella's plugins, I'll go ahead and mention that their Events and Movement Core plugin also contains functionality that could help you pull this off stuff like this, in a few different ways: you could increase the hitbox of an event so that it takes up both spaces, you could use region-based event activation, or you could have one event trigger the self-switch of the other event.
I wish I could. I'm working out of the AABSZ plugin. VisuStella's plugins don't seem to be compatible with it. Or the official ARPG plugin.
Try the Japanese plugin I linked above
I think having each switch trigger the A self switch on the other event is probably easiest - no compatibility issues.
I think having each switch trigger the A self switch on the other event is probably easiest - no compatibility issues.
This is what I do.
@Sword_of_Dusk So do I. I've tried other methods, but they're all a bit of a faff. This is so straightforward,
@ericjustin81 If you wanna use the method Kes and I use, you'll need the following script call, which I believe is the same in MZ as it is in MV:

$gameSelfSwitches.setValue([mapId, eventId, self switch], value)

In the above bit, mapID is the ID of the map where your target event is, eventId is the ID of the target event itself, self switch is the particular self switch you're manipulating (either A, B, C, or D), and value will be either true or false, depending on if you're flipping the self switch on or off.
Personally I'd just use a normal switch here rather than a self-switch. I guess it depends on how often you're doing this kind of thing and how many switches you will want in total for your game.
I don't personally use tile based movement and qmovement lets me change collider size so I could just use one event. But in this case I'd do this:
1697892036788.png

Same for the other event (event 2) except the event ID is this one's (event 1).
You can use a single line of script to control self-switches on other events as well, doesn't need a plugin and doesn't need to allocate a real switch. $gameSelfSwitches.setValue([map#, eventid, 'A'], true) for turning on A and
$gameSelfSwitches.setValue([map#, eventid, 'A'], false) for turning off A. Change A to B, C, or D as needed, and drop all leading zeros.
@ericjustin81 If you wanna use the method Kes and I use, you'll need the following script call, which I believe is the same in MZ as it is in MV:

$gameSelfSwitches.setValue([mapId, eventId, self switch], value)

In the above bit, mapID is the ID of the map where your target event is, eventId is the ID of the target event itself, self switch is the particular self switch you're manipulating (either A, B, C, or D), and value will be either true or false, depending on if you're flipping the self switch on or off.
Thank you so much! That worked perfectly. Thank you as well, Hyouryuu-Na. I didn't know to put the '' around the A until I saw your post.
Try the Japanese plugin I linked above
I looked at it. It annotated some compatibility issues and made me a bit nervous about introducing crashes since I'm already working in ABS which addresses collision. I wasn't sure if the MV plugin would work as is or through Fossil, but I found DK's for MZ - unfortunately, it's quite expensive.
I looked at it. It annotated some compatibility issues and made me a bit nervous about introducing crashes since I'm already working in ABS which addresses collision. I wasn't sure if the MV plugin would work as is or through Fossil, but I found DK's for MZ - unfortunately, it's quite expensive.
I also have an ABS project and use over 50 plugins. I don't really understand this aversion to plugins. If it makes things not work, just turn it off to make sure it's the cause and if so, don't use it.

Original thread: https://forums.rpgmakerweb.com/threads/control-2-events-with-1-action.162230/