Event Touch Region Conditional Branch

Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
67
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
I need a script to check if the event toches a certain region similar to this $gamePlayer.regionId()
 

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
943
Reaction score
382
First Language
Portuguese - Br
Primarily Uses
RMMV
I think it is:

$gameMap.event(EVENT_ID).regionId() === X;

EVENT_ID = Id of the event you want to check
X = Region Id do you want to check.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
67
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
1.png
It doesn't work for some reason. The creature just stays in one place.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
67
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
$gameMap.event(2).regionId() === 3;

You have to replace all the EVENT_ID just for the number of the event.
I was sure I tried it before, but this time it's actually working :D Thanks!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,021
Reaction score
4,249
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Well... it’s been a real pain in the IRS today. :/
My kitty still young (3-4 months), I think I could teach her some funny tricks... like: "Play dead-ly good music for my games"
Here's a quality DPS class idea: The Beekeeper, who uses the "Bees!!" skill to attack and poison enemies.
Please don't create long, boring cutscenes in which characters do nothing but stand around talking.
What if I took a lesson from Half Minute Hero? Let the player get dumb powerful each area, but reset them down to just slightly stronger than before for the next map?

Forum statistics

Threads
94,270
Messages
919,523
Members
123,990
Latest member
bartzfact0r
Top