Shopkeeper Not showing Up

TicklishWasabi

Veteran
Veteran
Joined
Nov 7, 2017
Messages
167
Reaction score
18
First Language
English
Primarily Uses
N/A
I created a shopkeeper, who can sell things but also has the ability to fully restore your health and mana for gold, but when I test the game, he isn't even there.Capture.PNG
 

shockra

Slightly Crazy Programmer
Veteran
Joined
Feb 16, 2016
Messages
444
Reaction score
208
First Language
English
Primarily Uses
RMMV
You have a second page in that event. Can you show an image of that page?
 

dragon1989

Villager
Member
Joined
Oct 30, 2017
Messages
12
Reaction score
10
First Language
dutchs
Primarily Uses
RMVXA
think the problem is with the control swtshs
 

Dirge

Sound Engineer
Veteran
Joined
Apr 5, 2015
Messages
413
Reaction score
284
First Language
English, German
Primarily Uses
N/A
The problem is almost certainly going to be that second page in the event. Higher-numbered pages will take priority, meaning that if the conditions for that second page are met, your first page - the shopkeeper - won't show up.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Including if there are NO event conditions on the second page.


You should also do a test to see if the player HAS 10 gold ;) And you should probably have him heal the player if the player pays to be healed.
 

TicklishWasabi

Veteran
Veteran
Joined
Nov 7, 2017
Messages
167
Reaction score
18
First Language
English
Primarily Uses
N/A
Crap, I didn't set the control switch to on on the first page. Once I get to my other comp ill check it and let you guys know if it works.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Setting a switch on the first page would not make it show up if the second page is the active one. It goes through them from highest to lowest and stops when it finds one that has no conditions or where all the conditions are met. So page 1 needs to turn on a switch or self switch or do something with a variable, and page 2 needs to use that as one of its conditions, so it can't become active until after page 1 is finished.
 

TicklishWasabi

Veteran
Veteran
Joined
Nov 7, 2017
Messages
167
Reaction score
18
First Language
English
Primarily Uses
N/A
Okay, all the second page holds is this:
Capture1.PNG The first page is this:
Capture.PNG

And yes, I'm positive the player has 10 gold, but even if he didn't why would that make it so the shop keeper doesn't show up?

EDIT: Ok, so I managed to fix it, I completely removed the second event page, as well as the "Initial Gold" switch, and everything works perfectly. For some reason, 11pm me thought that I needed a switch to stop the -10 gold loss. But I don't because the -10 isn't set on auto run. Thanks for everyone's help btw.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
The problem was that both of the pages had the same conditions - they were both conditioned by switch 1 being on.

So, as I said, it goes from highest numbered page to lowest. If switch 1 was on, page 2 would be active because that would be checked first and the condition is true. If switch 1 was off, neither page would be active.

I think you need to read up on switches and multiple pages on events. Based on your explanation above of the problem and solution, you don't understand what's going on or why it wasn't working. You really need to have a good grip on this, because the entire game will be built with multiple event pages and switches (or some other condition to control them).
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
If that was the second page, then the shopkeeper didn't show up because the switch 1 was already on.

And this means there is already something in your project that activates that switch, even without the control switch command on your first page.

That is the true error you had, and you didn't solve that error. You need to find out where the switch 1 is already used before you get other problems as well.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
@Andar it could also be that switch 1 was off. As both pages were conditioned by switch 1, neither of them would be active.

@TicklishWasabi if you are using plugins, make sure you check what switches/variables they are using. They could just default to switch 1, which would also produce the effects Andar is talking about.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
@Shaz check the first screenshot with the first version of the first page, it was not yet conditioned to switch 1.
That is why I mentioned that case, because if the bug happened with that and the condition was only a later test then something did activate the switch without the OPs knowledge.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Ah, forgot that one. In that case, it could be either that page 2 originally had no conditions either, and the OP added the condition to both pages at the same time, or as you say, it was conditioned by a switch that was already turned on elsewhere.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top