I can only see an option to specify by region...
How can I have a conditional event for a map's encounters?
RPG Maker MZ SupportI Googled "RPG Maker MZ encounter conditional" and found this plugin:
forums.rpgmakerweb.com
TDW Conditional Map Encounters
TDW Conditional Map Encounters Version 1.0 by wrigty12 [For RPGMaker MZ] Description: Set Troop Encounters and Encounter Steps on a map to be conditional based on Switches, Variables, or custom JS code. Functionality: Using the Plugin Parameters, you can compose a list of different Conditions...
forums.rpgmakerweb.com
I've moved this thread to RPG Maker MZ Support, based on the "Primarily Uses" in your profile. If you were asking about a different engine, Report this post and let us know so we can move it there instead.
Please note that "General Discussion" is not for Help/Support questions, but rather discussing general, engine-neutral aspects of game development, such as how to write likable characters, how to market your game, or how to stay focused through the parts of game dev you don't enjoy.
Please note that "General Discussion" is not for Help/Support questions, but rather discussing general, engine-neutral aspects of game development, such as how to write likable characters, how to market your game, or how to stay focused through the parts of game dev you don't enjoy.
In case it helps, there are a few event chase plugins too. I've used one by ct_bolt (in MV) and I'm currently using one by Moghunter (MZ). The only other one I know of is by Yanfly (some if plugins work in MZ but may not after future updates). There's a newer FOSSIL plugin for using several MV plugins in MZ though.
I hope that helps and have fun on your project!
I hope that helps and have fun on your project!
Try using the Script option of the Conditional Branch, you can try the following:
Get region ID of event 0002:
Get region ID of current event (NPC in Parallel or Autorun):
Get region ID of Player/Leader:
Get region ID of follower 1 (Second in the list of menu):
Get region ID of follower 2:
Get region ID of follower 3:
I may have missed something, as I am away from my computer.
I appreciate if you can return to us with feedback.
References:
Get region ID of event 0002:
JavaScript:
$gameMap.event(2).regionId()
Get region ID of current event (NPC in Parallel or Autorun):
JavaScript:
$gameMap.event(this._eventid).regionId()
Get region ID of Player/Leader:
JavaScript:
$gamePlayer.regionId()
Get region ID of follower 1 (Second in the list of menu):
JavaScript:
$gamePlayer.followers().follower(1).regionId()
Get region ID of follower 2:
JavaScript:
$gamePlayer.followers().follower(2).regionId()
Get region ID of follower 3:
JavaScript:
$gamePlayer.followers().follower(3).regionId()
I may have missed something, as I am away from my computer.
I appreciate if you can return to us with feedback.
References:
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-have-a-conditional-event-for-a-maps-encounters.136806/