Help please

Status
Not open for further replies.

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
So i been trying to look up on how to force the player to pick up an item in the room he in first in order for him to leave the room. Does anyone know how to do that?
 

Matseb2611

Innovate, don't emulate
Veteran
Joined
Oct 15, 2012
Messages
4,568
Reaction score
6,389
First Language
English
Primarily Uses
RMMV
You can make a room exit event have a conditional branch that says 'If Item X is in inventory, then...'. So then the game will check if you have the item on you. If you do, then you can allow the player to successfully exit, and if not (the 'else' branch), you can put some kind of text there or something that prompts the player to get the item first.    
 

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
You can make a room exit event have a conditional branch that says 'If Item X is in inventory, then...'. So then the game will check if you have the item on you. If you do, then you can allow the player to successfully exit, and if not (the 'else' branch), you can put some kind of text there or something that prompts the player to get the item first.    
What if all he need is to change cloth, that not an item, how does that go?
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Is the clothes item something he has to have in inventory before he can change?  If so, still set up the conditional branch, but make it so that he can't leave if the item is in inventory.  Then when you change clothes, remove the clothes item from inventory, so that the second part of the branch will work and put the exit in that second part of the branch.  Hope that's not too confusing, I'm not on my computer that I can set up a screen shot to show you.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Just add a command to turn on a switch when the item is picked up (then they can do whatever they want to do with it, including get rid of it later). And use that switch as a condition on the exit event.


Using an "Item X in inventory" is good, if the player is always going to have that item. If they can pick it up, leave the room, sell it, go back to the room, and then can't get out again because they no longer have it in inventory, that's a problem. There are a couple of ways to get around it though.
 

Matseb2611

Innovate, don't emulate
Veteran
Joined
Oct 15, 2012
Messages
4,568
Reaction score
6,389
First Language
English
Primarily Uses
RMMV
Also it's possible to equip the item straight away as soon as it's picked up with the 'Change Equipment' command on the first page of events. 
 

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
Is the clothes item something he has to have in inventory before he can change?  If so, still set up the conditional branch, but make it so that he can't leave if the item is in inventory.  Then when you change clothes, remove the clothes item from inventory, so that the second part of the branch will work and put the exit in that second part of the branch.  Hope that's not too confusing, I'm not on my computer that I can set up a screen shot to show you.
a screen shoot would be nice, my English isn't that great lol i'm more of a visual learner.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Here are some screenshots.  Since I tend to overcomplicate things, lol, I took Shaz and Matseb's ideas.

First the door. 

1st page will give you a message as to why you can't go out the door.  You will need to customize the message to fit your game.

Rainu2.png

Second page is triggered by a switch titled "Clothes On", and is simply a door transfer.

Rainu3.png

The clothes.  You can put them in a chest or however you want to find the clothes.  You see that when you change armor (put the clothes on), it triggers the door to now let you out.

Rainu1.png

Hopefully, if I've messed something up, someone will let us know.
 
Last edited by a moderator:

Matseb2611

Innovate, don't emulate
Veteran
Joined
Oct 15, 2012
Messages
4,568
Reaction score
6,389
First Language
English
Primarily Uses
RMMV
^The only thing in that last pic, you might want to set the clothes event to 'Same as characters' or else the player won't be able to interact with it. :)

Edit: And also to give the clothes event an empty second page too, so that the player won't be able to pick it up more than once.  
 
Last edited by a moderator:

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Thanks Matseb, I threw it together quickly this morning.
 

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
Thanks Matseb, I threw it together quickly this morning.
so i got it to work, but once i move to the exit, it didn't step on it but stop right in front of it. And i have it as player touch to exit, but is force me to press action to leave. And once i leave and come back, the item appear again, even though i set it as one time item. help plz Q_Q
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You need to have TWO pages on the clothes event - the second one will be conditioned by the same switch and will either have no graphic, or a graphic of an empty clothes holder.


You'll have to post an image of your door event. I'm guessing you've left something out.
 

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
You need to have TWO pages on the clothes event - the second one will be conditioned by the same switch and will either have no graphic, or a graphic of an empty clothes holder.

You'll have to post an image of your door event. I'm guessing you've left something out.
So here what i got so far, i know, still a noobie here sry. thank for all the help guys

Door 1.png

Door 2.png

Armor page 1.png

Armor page 2.png

Untitled.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Change event 1's second page to be below characters, and triggered by player touch. You said you DID have it set to player touch, but you don't. Only the first event page was.
 
Last edited by a moderator:

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
Change event 1's second page to be below characters, and triggered by player touch. You said you DID have it set to player touch, but you don't. Only the first event page was.
wow i didn't notice that lol, thank for the help. love you guy. I got a lot of question...but that good for now.

Edit: so i went out the room and went back, the armor re appear again o.o y is that.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You need to have TWO pages on the clothes event - the second one will be conditioned by the same switch and will either have no graphic, or a graphic of an empty clothes holder.
Your second page is conditioned by self switch A, but you never turn self switch A on. Erasing the event does nothing - as you see, it comes back as soon as you return to that map. Just change the condition on the second tab to be the same switch that conditions the door. Or when you change into the armor on the first tab, also turn on self switch A.
 
Last edited by a moderator:

Rainu

Villager
Member
Joined
Nov 1, 2013
Messages
15
Reaction score
0
First Language
Vietnamese
Primarily Uses
Your second page is conditioned by self switch A, but you never turn self switch A on. Erasing the event does nothing - as you see, it comes back as soon as you return to that map. Just change the condition on the second tab to be the same switch that conditions the door. Or when you change into the armor on the first tab, also turn on self switch A.
ah i got it! thank.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top