How do I set this condition branch up?

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
In my game the protagonist basically starts off in his room in nothing but his underwear However I want to set a certain door so it doesn't open unless he has activated the wardrobe and changed his clothes, thereby changing the actor graphic.

Basically...

If the wardrobe has not yet been activated, the door does not open and the character instead states that he should change before leaving the room.

If the wardrobe has been activated, the character is able to open the door and leave the room.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Make the wardrobe activate a switch, then check that switch on the door event...
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
And how the heck do I do that?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Learn how to use switches... Look for Andar's tutorial for beginners... Using switches as conditions for events is a basic thing that everybody should know.
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
Can I please have a link to the tutorial then?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You've been a member of this forum for 12 months and have 51 posts, and you don't know how to use switches? How is that even possible?


If the clothes are "equipment" and the character puts them on by changing equipment, you could just have the door event see if the actor has the clothes equipped.
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
You've been a member of this forum for 12 months and have 51 posts, and you don't know how to use switches? How is that even possible?

If the clothes are "equipment" and the character puts them on by changing equipment, you could just have the door event see if the actor has the clothes equipped.
Why are you even so surprised?

The clothes changing event is merely an actor graphic change, I have no intention of adding it as an in-game item although I admit that would be easier.

Also switches didn't become an issue until now.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Walk through it.


When they go to the wardrobe, does it open and they change clothes immediately? Or do they just see clothes in there and have to interact with it again? On whatever even handles the actor graphic change, turn on a switch to say they're wearing their clothes.


Then on the door event, have one page with no conditions that won't let them out, and a second page with the switch as a condition, which acts like the normal door event.
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
OK it seems like I figured it out but now the game is doing something I don't want it to do.

as I said I don't intend for the player to be able to open the door until he gets dressed. 

If the clothes hasn't been changed already the door opens part way before he states that. The door isn't supposed to do anything at all.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
You asked for a link to a tutorial.  Here is the link to Andar's excellent thread.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Do you have the event taking up 2 pages like I said? Is page 1 the door event with just the text saying you have to get dressed first, and the second page is the one that has the move route on the door to open?


If so, get rid of the move route on the first event page. As long as that page is active the player will never be able to open the door, so you don't need the move route at all.


If that doesn't solve the problem, take screenshots of both your event pages (include the WHOLE event window as we need to see stuff other than just the list of commands) and post them here.
 
Last edited by a moderator:

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
Doesn't seem to anything wrong with your condition branch.

I believe you're talking about the door graphic change. You only need to make sure 'Direction Fix' is checked on your door event.

A couple of things to note:

1) The door event doesn't necessarily require a conditional branch.

The first event page without any conditions checked displaying the text. (Make sure 'direction fix' is checked)

The second event page with the 'Switch 1: Wardrobe is ON' condition checked, will have the 'move route' commands.

Incidentally, if you do it this way, you wouldn't need to 'force' the player to walk through the door and close the door.

2) For your wardrobe event, since you're already using a global switch, you can shorten your event a little by skipping the 'Self Switch'.

Hope this helps. ^^
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yeah, that's why I said, twice, to use two pages on the event, and asked if you'd used two pages on the event.


not particularly directed at you, because many people have done this, but why bother asking for help if you're


- not going to try the suggestions provided


- not going to TELL people, when you get stuck, that you ignored their suggestions and went your own way - it leaves them wondering if they've made a mistake in the steps or you've made a mistake in following them, when neither is true


You don't need to use a self switch AND a switch on that wardrobe event's second page. If you're using the switch (for the door's sake), just use that for the wardrobe and ditch the self switch.


Direction Fix on your door is going to stop it changing before you get dressed, but then it's going to cause problems when you DO get dressed, as you've got Direction Fix turned on, and the door won't open at all. You would then have to set Direction Fix OFF at the start of the door move route, and ON again at the end.


Or just use two event pages for the door ;)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,356
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Just as a sidenote: your screenshots proof that your editor doesn't work correctly. I don't know if it would effect these events, but regularly when a condition is NOT checked, the selection slot of that condition should be disabled - your's all show active options.


There are several others who had the same strange effect, and so far I've neither seen a solution nor any bad effect on any game, but it's worth mentioning...
 

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
I ditched the self switch.

But now what I'm trying to figure out is what exactly you want me to do.

I got it working exactly the way I want it to now! What Shaz suggested about the direction fix is exactly what I needed. :D
 
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
And you still didn't say if you switched to the two-page event method that's been suggested all along. If you didn't, did you fix the move route when the door opens or haven't you tested that yet?


Out of interest, where did you purchase your Ace from and where did you download it? As Andar says, there have been a number of people with a "glitchy" Conditions section on their events and I don't know if it's ever been determined why.
 
Last edited by a moderator:

NeoPGX

~ King of Cuteness ~
Veteran
Joined
May 15, 2014
Messages
847
Reaction score
175
First Language
English (US)
Primarily Uses
N/A
And you still didn't say if you switched to the two-page event method that's been suggested all along. If you didn't, did you fix the move route when the door opens or haven't you tested that yet?

Out of interest, where did you purchase your Ace from and where did you download it? As Andar says, there have been a number of people with a "glitchy" Conditions section on their events and I don't know if it's ever been determined why.
1. No, because what I have already works exactly the way I want it to. I fixed the move route and it has been tested.

2. Humble Bundle. Steam.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,356
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
But now what I'm trying to figure out is what exactly you want me to do.


I got it working exactly the way I want it to now!
We're thinking one step ahead of you - if you do not know why something works, you're almost guaranteed to get other bugs farther on (either because you want to duplicate this into something similiar and it won't work, or because you change samething that will cause this sequence to fail without realising it, simply because you didn't know that was involved in the solution in the first place.
Whenever you solve bugs in any larger project, finding out the why behind the bug is more important than the fix itself in the long run.
 

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

Latest Threads

Latest Profile Posts

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'??
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:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top