A downloadable RPG Maker MV Plugin

Download NowName your own price

 Return/Check the RegionId that is in front of a Game_Character

Script Calls:
Replace c with a Game_Character (ex. $gamePlayer or $gameMap.event(eventId))
   c.regionInFront()            
   c.isRegionInFront(r)                // r = regionId
   c.regionIsInFront(r)                // r = regionId
   c.setRegionCheckConditon(condition) // condition = an evaluated condition
   regionInFront(id)                     // Optional:[id = eventId (value less than 1 or 'p' = player)]
   isRegionInFront(r, id)                // r = regionId, Optional:[id = eventId (value less than 1 or 'p' = player)]
  regionIsInFront(r, id)                // r = regionId, Optional:[id = eventId (value less than 1 or 'p' = player)]
 setRegionCheckConditon(condition, id) // condition = an evaluated condition, Optional:[id = eventId (value less than 1 or 'p' = player)]

Basic Example:
$gamePlayer.regionInFront() === 3

Download

Download NowName your own price

Click download now to get access to the following files:

CTB_CheckInFront.js 4 kB

Comments

Log in with itch.io to leave a comment.

(2 edits)

Thanks for making this plugin—it's been invaluable. There is one thing I'm trying to do right now which is use the regionInFront function within a script within an Autonomous Movement Route, but I can't get it to work. Do you have any advice?