Hey there. I'm trying to create an event for when you spend the night at an inn. At first I was trying to make the game have a fade in/out effect, which i couldn't get to work, but then had an idea to make it more interactive. I was planning on once you select yes, that you'll spend the night, the inn keeper will give you a temporary key that the player will use to open their room key and go to sleep. Is it possible to have the item removed from your inventory once you leave the room or wake up?
Temporary item events
RPG Maker VXAce SupportYes - you just put a Change Items: -1 Key event command at the point where you want it to be removed.
I think I have it figured out. I noticed some options I didn't realize before shortly after I posted. Thanks for the help though.
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.
Re-Opened at OP request
@BVBkid:
Please post screenshots of your current event when adding your other questions, that will help getting the solution faster.
@BVBkid:
Please post screenshots of your current event when adding your other questions, that will help getting the solution faster.
I have a second problem. I figured out how to have locked doors and have them open to items or anything once the requirements are met, but I noticed that in the inn I'm creating, there are four rooms. Two rooms at the top half of the inn and two rooms at the bottom half. All four doors have the same exact event set ups but the bottom two will open, say the door is locked, and then close. I noticed that this happens to the top ones as well but only if I make my way inside and then try and open it. So it seems that it's just from where I'm trying to open it that makes this happen. Does anyone know how I would go about making sure the bottom two doors stay closed and locked? Here are the pictures
Oh and my door unlocked dialogue doesn't appear either. It did once but then never again. Did I place something incorrectly?
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/
http://postimg.org/image/6kmjhsbm1/full/
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/584ufwe6l/tab_2.png[/IMG]
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/ltcgvk5al/tab_3.png[/IMG]
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/hlhomt3v1/tab_4.png[/IMG]http://postimg.org/image/6kmjhsbm1/full/
Oh and my door unlocked dialogue doesn't appear either. It did once but then never again. Did I place something incorrectly?
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/
http://postimg.org/image/6kmjhsbm1/full/
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/584ufwe6l/tab_2.png[/IMG]
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/ltcgvk5al/tab_3.png[/IMG]
http://postimg.org/image/7dz5aehmx/full/ http://postimg.org/image/7dz5aehmx/full/[IMG]http://s28.postimg.org/hlhomt3v1/tab_4.png[/IMG]http://postimg.org/image/6kmjhsbm1/full/
Putting your images in spoiler tags will make them take up less space.
Look at the sprite for your door. The whole sprite - actually double-click on the graphic to see the spritesheet it comes from. See the images that make up each row, or each "direction". Look at the event commands that do the open door animation. Notice that the door is open (not visible) when the event is facing UP.
By default, when you interact with an event, the first thing it does is TURN to face you. When you interact with your door from above, it TURNS to face you. It turns UP, and the UP direction has NO image.
What you need to do is check the Direction Fix box on all your door events, so it overrides this default "turn towards you before doing anything" behaviour.
THEN you have to resolve the NEW problem that you've just introduced - by checking direction fix, the TURN commands that are in the move route to make the door-open animation will no longer work.
So edit every one of those move routes, and add Direction Fix OFF as the very first movement, and Direction Fix ON as the very last movement.
So your page 3 events will be:
and your page 4 events will be:
and again, make sure Direction Fix (below the Graphic) on every page is checked.
Look at the sprite for your door. The whole sprite - actually double-click on the graphic to see the spritesheet it comes from. See the images that make up each row, or each "direction". Look at the event commands that do the open door animation. Notice that the door is open (not visible) when the event is facing UP.
By default, when you interact with an event, the first thing it does is TURN to face you. When you interact with your door from above, it TURNS to face you. It turns UP, and the UP direction has NO image.
What you need to do is check the Direction Fix box on all your door events, so it overrides this default "turn towards you before doing anything" behaviour.
THEN you have to resolve the NEW problem that you've just introduced - by checking direction fix, the TURN commands that are in the move route to make the door-open animation will no longer work.
So edit every one of those move routes, and add Direction Fix OFF as the very first movement, and Direction Fix ON as the very last movement.
So your page 3 events will be:
Code:
Play SE: 'Open1', 80, 100Set Move Route: This event (Wait) : $> Direction Fix OFF : $> Turn Left : $> Wait 3 frames : $> Turn Right : $> Wait 3 frames : $> Turn Up : $> Through ON : $> Direction Fix ONSet Move Route: Player (Skip, Wait) : $> 1 Step Foward : $> 1 Step ForwardControl Self Switch: B = ON
Code:
Wait: 90 frame(s)Play SE: "Close1", 80, 100Set Move Route: This event (Wait) : $> Direction Fix OFF : $> Turn Right : $> Wait 3 frames : $> Turn Left : $> Wait 3 frames : $> Turn Down : $> Through OFF : $> Direction Fix ONControl Self Switch: B = OFF
Thank you so much! I'll make sure to edit my post now and put the pictures in spoiler tags. You guys can close the thread now. Thanks again.
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/temporary-item-events.23163/