public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Need some help using a loop or other structure to handle an event after a variable change

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Need some help using a loop or other structure to handle an event after a variable change
  • Original author: ACECORP
  • Original date: July 2, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/need-some-help-using-a-loop-or-other-structure-to-handle-an-event-after-a-variable-change.64643/
  • Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support

Summary

I have an event, we will call it “EVENT MASTER”, that manages everything on the current map screen and is supposed to change a variable value for variable “NPCVAL” that is used to control the behavior of a second event that runs parallel to it. At the start NPCVAL = 100000 The second event that runs parallel to “EVENT MASTER” is called “EVENT2”. “EVENT2” contains two event pages.

Archived First Post

I have an event, we will call it “EVENT MASTER”, that manages everything on the current map screen and is supposed to change a variable value for variable “NPCVAL” that is used to control the behavior of a second event that runs parallel to it.


At the start NPCVAL = 100000


The second event that runs parallel to “EVENT MASTER” is called “EVENT2”.


“EVENT2” contains two event pages.


The first event page of “EVENT2” has no conditions of execution except for a control switch that is always enabled at this part of the game.


The second event page of “EVENT2” has the following conditions:

  • Value for variable “NPCVAL” >= 94999
  • Self-Switch A = ON



My problem is this:


Everything seems to work perfectly up until the variable “NPCVAL” is changed to 95000.


Once that happens, EVENT2 does not successfully switch to the second event page from the first. This means something is either not happening properly on the first event page of “EVENT2” OR something is wrong with the second event page causing it to never take over control from the first event page.


The first event page from “EVENT2” looks like this:


Protected download


Protected download


THE second event page from “EVENT2” looks like this:


Protected download


I am thinking that the loop structure on the first event page is the problem.


Within EVENT2, I need the NPC to run around a set path until “NPCVAL” = 95000


At that point, I need EVENT2 to stop doing the first event page and switch to the second event page.


Is there anything I can adjust either on event page 1 or event page 2 that will make it work the way I need it to?


Any help would be greatly appreciated. 

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

EVENT2_PAGE1_TOP.png
EVENT2_PAGE1_TOP.png
EVENT2_PAGE1_BOTTOM.png
EVENT2_PAGE1_BOTTOM.png
EVENT2_PAGE2.png
EVENT2_PAGE2.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#mv-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar