So I'm trying to make a conditional branch that will turn on a switch when the player's position is the same as the enemy's position how would I do that?
Conditional Help
RPG Maker VXAce SupportWhat enemy? Are you talking about in battle, and if so, how does the player have the same position as the enemy? Are you talking about an event? Again, how does the player have the same position? Usually events are "same as characters" priority and not through, so they can't have the same position.
I have a chase scene set up, the player would have the same position due to the enemy overlapping the character. I can't trigger the switch unless I intentionally touch the enemy(Event Touch). I want it to trigger if I intentionally touch it, or the enemy touches me.
Is your enemy event set to Through? If it's not, they can't occupy the same space.
If your event is following the player and set to event touch and you want to turn on a switch when it reaches the player, just turn on the switch in the enemy event. You don't need a conditional branch - the event commands on an Event Touch trigger will only be run when the event touches the player.
If your event is following the player and set to event touch and you want to turn on a switch when it reaches the player, just turn on the switch in the enemy event. You don't need a conditional branch - the event commands on an Event Touch trigger will only be run when the event touches the player.
Maybe if I turn off through it'll work?
If your event is on Through, they have to be on exactly the same tile. But I have a feeling there might be a glitch with Through. If you turn it off, and the event is Same as Characters, it'll trigger as soon as it touches the player, but they won't be on the same tile.
Maybe if you show a screenshot of your enemy event, it could help. (Screenshot with the full event window, not just the command list)
Maybe if you show a screenshot of your enemy event, it could help. (Screenshot with the full event window, not just the command list)
This is what my event looks like.
Nevermind! I solved my issue! This thread can be closed now.
When an issue is resolved, just report your first post and say it's resolved, and the mods will close the thread. Don't rely on / hope that they'll just see a comment.
Thread closed IgnoreMe
Original thread: https://forums.rpgmakerweb.com/threads/conditional-help.104100/