mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hey guys, I'm making a game in which the player must advance through a series of increasingly more challenging maps. The player must survive in a map for a certain amount of time, then they are transferred to a "break map" for 10 seconds, then transferred to the next map. When they are in the break map they have the option to purchase an ability (skill). Once they purchase that ability, a new one becomes available for purchase.

When the player dies, they are sent back to the first map to restart the game and lose all the skills they purchased in their prior run(this is all functioning correctly). However, when they are transferred to the break map and have purchased a skill in the prior playthrough, it is not available to be purchased again. I understand what my problem is, clearly I need to run some sort of check that upon player death, the event that allows the players to buy the skills is reset. However, I've been having a lot of trouble doing this, so if anyone can help me out that would be much appreciated! I'll include screenshots of the current event below. Again, the event works fine when the player starts a new game and purchases it for the first time, the problem is that it isn't being reset to be purchased again upon death. I understand that this explanation may sound confusing, so let me know if anything needs clarification!

(The first picture is the first skill the player can buy. The second picture is the second skill the player can buy. The third picture is just a blank event page because once the player has purchased all the skills, I don't want any image to be shown)
 

Attachments

  • Untitled.png
    Untitled.png
    268 KB · Views: 2
  • Untitled2.png
    Untitled2.png
    271.7 KB · Views: 2
  • Untitled3.png
    Untitled3.png
    226.2 KB · Views: 2

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,747
Reaction score
2,847
First Language
English
Primarily Uses
RMMZ
When the player dies, you need to turn off self switches A and B in that event. Otherwise, when they return to it, those self switches are still on and the event will be running page 3.
 

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
When the player dies, you need to turn off self switches A and B in that event. Otherwise, when they return to it, those self switches are still on and the event will be running page 3.
Great that worked! Thanks for the quick response!
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,747
Reaction score
2,847
First Language
English
Primarily Uses
RMMZ
Any time! Glad to be of assistance.
 

Latest Threads

Latest Profile Posts

A lot to learn to make a game. Can I handle it?
I've been working on status effects since last thursday, and today I finished the core mechanic of Zombie, Teleport, Curse and Recall. Zombie and Curse are lacking a few things to make them complete atm. Teleport though is the "HAHA" spell for some of my mobs, but can "NOPE" at them with Recall.
I'm weird as there are a few game franchises I'll watch and read about, but have no interest in playing.
Humans have such a capacity to assign personalities and love to objects. We do this because we love them. It's interesting then that our fears over AI are that they won't love us back and will instead hate us.
I'm actively looking for people who want to recreate classical compositions in the public domain for RPG Maker games. I've got a whole kick going on of looking for several resources from anyone which would be sharable amongst commercial games. This latest pursuit is something I'm surprised no one else has started doing.

Forum statistics

Threads
115,158
Messages
1,087,720
Members
149,702
Latest member
Hidemitsu
Top