I want to make an item you pick up and walk through, but I don't want to be able to pick up the item while standing on it.
I want to pick it up from the sides.
set the event priority to Same as Characters and make sure THROUGH is not checked. In the event commands, give the player the item and turn on a self switch. Add a second page conditioned by the self switch and leave everything else as it is - should be Below Characters priority. This will mean you can only interact with the item from beside it but can't walk through it. When you pick it up, then you can walk where it used to be.
If that's not what you want, you're going to have to be more clear on what you mean by "pick up and walk through".
There isn't a way to let you walk through an item while it's there but force you to be standing one tile away in order to pick it up.
You could probably do it with a parallel process event that waits for button input then checks where the player is standing and what direction they're facing (or the $game_map methods that let you get the x and y coordinates of the tile the player is facing) and check whether the wood is in front of them. This would only need to be active IF the wood has already been placed. I don't have time to go into the details of how to do it, but someone else may be able to fill in the blanks, or offer a completely different solution. This method lets you get away with just script calls rather than requiring an actual script to be written.
Can you confirm that you're using VX Ace and not MV?
Change Variables event command allows you to set a variable to the X/Y coordinates of the player. and there's also a condition for the Conditional Branch command that checks for direction facing. The only script you probably need is for the button input which is Input.trigger?🙂A) if you're looking for the OK button
How are you picking up and placing this wood? Depending on how you do it, the solution might change slightly.. And can you place this wood anywhere in the map, or just on that hole? Now if you still haven't done that too, is there multiple places where you can place the wood or just this one hole?
So I am assuming that you already have the event that puts the plug into the hole, am I right?
Then your wood placement event should be placed around that hole right (so that the player can activate them)? That means on your wood placement event all you need to do is check a switch if the hole is plugged or not. If it's not plugged, see if player has Wood item, if yes, set plugged switch to true. Then the hole itself should have an event over it that has the wood plug graphics and uses the plugged switch as a condition. Now back on the placement event, if the plugged switch is ON (true), just turn it off again and put Wood in the inventory. Since your plug event on top of the hole is conditioned by this switch, turning it OFF should disable it, hence the player cant get pass thru it again without putting the wood plug back. Since the events to put down and get back the wood plug isn't on the hole tile itself, the player won't be able to get the wood plug back while they're on the hole (unless you made the events same as player) XD
Now if what you did was put the hole as an event too (such that you actually interact with this event directly when putting the wood plug), modify it to use the above approach instead.
Just report the thread and ask for it to be closed. That'll bring it to the moderators' attention.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.