Item Question

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.
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.

That's what I wanted to happen. 


You see, I wanted to pick up some wood and then lay it over a hole, walk on it to the other side, then back over and pick up the wood again after you were done (it would be stupid to pick it up over the hole).


No wonder Corpse Party didn't let you pick up the wood after placing it. 
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?
Can you confirm that you're using VX Ace and not MV?

Yes, VX Ace. 


And I've thought about doing that as well, just not fond of throw script calls around. 


I figured you couldn't pick it up. RPG maker is great for simple RPG games, but when you want to get complex, that's when it gets confusing. 
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?
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?

Simple, put wood in inventory as key item. Go to hole and place wood down as a tile basically, walk across the hole pick up another item then wall back across the wood and pick it back up and put it into inventory to be used at another hole later in the game. 
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.
Then your wood placement event are placed around that hole right? 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.

Yes, that would work out. 


I understand what you're putting down. 


(Get it? I made a joke!) 


Anyways, this thread can be closed since the solution has been found..


I appreciate the help. 
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.

Original thread: https://forums.rpgmakerweb.com/threads/item-question.73354/