Manually Use Item

What I want to happen:


Approach NPC, go into inventory, select and use item, item is given to NPC (second conditional branch in common event)


What happens:
I select and use item, but only the first conditional branch ever happens


item.PNG
If you want them to happen in order, the second conditional branch doesn't happen because it's in the Else part of the first conditional branch, which has already been executed.  If switch 44 is on, the first part will be run, and the second and third parts will be skipped.  If you want the second part to run, switch 44 has to be off and 68 has to be on.


What turns on switch 44?
If you want them to happen in order, the second conditional branch doesn't happen because it's in the Else part of the first conditional branch, which has already been executed.  If switch 44 is on, the first part will be run, and the second and third parts will be skipped.  If you want the second part to run, switch 44 has to be off and 68 has to be on.


What turns on switch 44?

thank you


Switch 44 is turned on when you get the water from the well
I simplified the common event and water event, but the first conditional branch is still the only one working.


Capture.PNG
Okay, I found the solution using this script for coordinates instead of using regions:

Spoiler
$game_player.x == 5 and $game_player.y == 9

Where 5 and 9 equal the map's coordinates 005, 009. And change == to != to designate not standing on the 5,9 tile.


Just need to figure out how to make it so the coordinates only work on map 5. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/manually-use-item.61617/