I'm definitely programming something wrong here, but for god's sake, what?

KChasm

Villager
Member
Joined
Jul 4, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
So I've got a puzzle in my game wherein you place four cards in four picture frames (plus a fifth frame in the room over), and if you press a button in the next room and all the right cards are in the right picture frames, the door opens. Else, you die.

Problem is, I'm doing...SOMETHING wrong, obviously, between my events and my common events and the scripts I've got. When facing a picture frame, you should be able to select any card from your items to place it within, but for some of the cards you can't, while with one of the cards you can. In addition, when you slip a card into a frame and then examine a frame you're supposed to receive a prompt asking if you want to remove the card again, and sometimes, uh, you don't get that prompt. In fact, you get the "this frame is empty" message instead.

An exact rundown of my problems:

Frame 1: Can't place any card except the Ace of Clubs

Frame 2: Can't place any card except the Ace of Clubs

Frame 3: Can't place any card except the Ace of Clubs. In addition, after placing the Ace of Clubs, I get the "empty picture frame" message upon examination.

Frame 4: Can't place any card except the Ace of Clubs. In addition, after placing the Ace of Clubs, I get the "empty picture frame" message upon examination.

Frame 5 (in next room): Frame 2: Can't place any card except the Ace of Clubs

I don't know what I'm doing wrong, and I *definitely* don't know why it's the Clubs only that sometimes works.

Any help would be appreciated. My game so far can be found at the following link, though I can't remember if in the save I've had the player character take the Ace of Hearts off of Frame 5 yet (that part works fine, at least).

https://www.mediafire.com/file/qpt52dg6yjnj48t/French_Castle.zip/file
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
Your Ace of Clubs item is the only one that's calling a common event.
Frame 3 and 4 are using the wrong game variable (you're using Frame 2).
 

KChasm

Villager
Member
Joined
Jul 4, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
Your Ace of Clubs item is the only one that's calling a common event.
Frame 3 and 4 are using the wrong game variable (you're using Frame 2).
Damn! I can't believe I missed that. Thanks a bunch!
 

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,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top