RPG Maker MV/ MZ - how to use scripts to see if player or event are on a specific regionID?
Hello folks, me again, with another tutorial on how to use scripts to define region ID and see whether it coincides with the one player is currently occupying. Or a certain event. Should work for MZ as well!
Specific presentation (skip start) starts at 4:10 in the video!
Scripts used: $gamePlayer.x and $gamePlayer. y for coordonates
For conditional value check of regionID (added in Conditional Branch, page 4, Script option, replace x with your needed number value):
$gameMap.regionId($gamePlayer.x, $gamePlayer.y) == x
Use "this.event(id)" instead of an id value only when the specific event tests its OWN coordonates, and the event that triggers this is NOT a Parallel or Autorn Common Event. Or if a simple Common Event it is not triggered by one of those 2 other types). $gameMap.regionId($gameMap.event(this.event(id)).x, $gameMap.event(this.event(id)).y);
Other Videos By Ferenjianboard Introspection Protocols
Other Statistics
RPG Maker MV Statistics For Ferenjianboard Introspection Protocols
Currently, Ferenjianboard Introspection Protocols has 8,769 views for RPG Maker MV across 97 videos. There's over 4 days worth of watchable video for RPG Maker MV published on his channel, or 12.08% of the total watchable video on Ferenjianboard Introspection Protocols's YouTube channel.