Resetting Map Events

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
So I've got enemy encounters setup as events on the map, and I'm looking for a way to to setup an event that resets them. Does anyone know a good way to implement this? BTW, I don't want them to automatically reset every time the player switches maps.


Right now I'm thinking that I could have all of them use Self Switch D to indicate if the enemy has been defeated, and then find a way to reset SelfSwitch D for all events, but I don't know if there's a way to do that.
 

Aoi Ninami

Veteran
Veteran
Joined
Sep 22, 2015
Messages
413
Reaction score
513
First Language
English
Primarily Uses
RMVXA
I would give each encounter three event pages as follows:

Page 1 - Turn self switch D off.
Page 2 - Conditions are switch X being on. This is the page with the troop encounter. After the encounter, turn self switch D on.
Page 3 - Conditions are switch X being on and self switch D being on. No event commands.

Switch X should initially be on. To reset all encounters, turn it off for one turn, then on again.
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
I would give each encounter three event pages as follows:

Page 1 - Turn self switch D off.
Page 2 - Conditions are switch X being on. This is the page with the troop encounter. After the encounter, turn self switch D on.
Page 3 - Conditions are switch X being on and self switch D being on. No event commands.

Switch X should initially be on. To reset all encounters, turn it off for one turn, then on again.

OK, so I tested it out and there's a big problem: it only resets events in the current map.
 

Aoi Ninami

Veteran
Veteran
Joined
Sep 22, 2015
Messages
413
Reaction score
513
First Language
English
Primarily Uses
RMVXA
Hmm... if you want to reset multiple maps, this should work. Set up the encounter events as described above, but instead of switch X, have one switch per map. All switches start on, and the reset switch turns them all off. On the tile next to the reset switch, and the second tile of each map, turn back on the switch for that map only. That will give each encounter event time to respond to its map's switch being off and reset its own self switch.
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
that does work, though it looks a bit weird to have enemies reappear only after taking a step into the level... maybe it's better this way though...
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games? And, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top