Chair Puzzle Help

SpiritedAura

Warper
Member
Joined
Jan 13, 2015
Messages
4
Reaction score
0
First Language
English
Primarily Uses
So I'm trying to make a horror game and I want the characters to push a chair to grab a key off of a dresser/bookcase/shelf or whatever I see fit.  I figured out on how to have the character move the chair using a set route.  Now the problem is having the character step on the chair with the action button and grab an item.  Please help? Thank you~
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Getting the chair to move is easy (set move route: away from player), however, before you use the move route, set two different variables to the event's coordinates. I don't have Ace with me at the moment, but I think it's on the last tab perhaps. Or perhaps it's an event command on its own (get event location, I think). Use these to get the coordinates of your event. Check what the coordinates are for the spots you want the player to get on the chair and grab an item (click on the event spot, and the bottom right corner should give you two numbers, the first number is X and the second is Y), then use these in a conditional branch. By that I mean, check if variable X is the same as X, and then another conditional branch that checks if variable Y is Y.


If both true, make the player get on the chair and grab whatever. If false, make the event move one tile away from the player.


I can't give you a sample event, but maybe someone else would be so nice enough to do it for me.
 
Last edited by a moderator:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Here is the logic:

Conditional Branch IF X = A

       Conditional Branch IF Y = B

                Move chatacter on the chair tile.

       Else

                Move chair commands 

Else

      Move chair commands

Branch ends here

===========================================================================

A, B are the position of X and Y of the place the chair should be, so the player can get the key.

X and Y refer to current position of the chair.

So if the chair is in the position to get on it to get the key, that would be (A, B) values for X and Y, then it does that.

Otherwise in any case you move the chair accordingly.
 
Last edited by a moderator:

SpiritedAura

Warper
Member
Joined
Jan 13, 2015
Messages
4
Reaction score
0
First Language
English
Primarily Uses
May I get a screenshot of the placement of the commands please?
 

Hayolee

Villager
Member
Joined
Jan 18, 2015
Messages
28
Reaction score
0
First Language
English
Primarily Uses
Don't know if you still need this, but here's what I did.
 

SpiritedAura

Warper
Member
Joined
Jan 13, 2015
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Thank you Hayolee. Your screenshots did help. However I don't know how to get the first two lines in the command prompt there.
 

Hayolee

Villager
Member
Joined
Jan 18, 2015
Messages
28
Reaction score
0
First Language
English
Primarily Uses
First, name two variables Chair X and Chair Y for whatever your thing is then on the first page press "Control Variable" under the "Game Progression".  Choose your Chair X ,  choose set, choose "Game Data", press " ..." for more, go to "Character", "This Event", and then you have it's X.  Do the same thing for Y, but when you get to "This Event" go over to the right and change "Map X", to "Map Y".
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Alright, now that I have Ace with me, I'd do it like this:



I would not use Hayolee's suggestion, as it would make the chair move first before checking if it's already in the right spot.
 
Last edited by a moderator:

Hayolee

Villager
Member
Joined
Jan 18, 2015
Messages
28
Reaction score
0
First Language
English
Primarily Uses
Woops! Didn't even catch that because I'm using mine in a place it won't be able to move!  I'd put the conditional branches in front of the move route like Celianna did.  It wasn't an issue for me though. 
 

SpiritedAura

Warper
Member
Joined
Jan 13, 2015
Messages
4
Reaction score
0
First Language
English
Primarily Uses
Thank you to both of you.  If I have any further questions I'll be sure to make a new topic~
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top