How to reference another event inside a script?

JCeetra

Warper
Member
Joined
May 4, 2018
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hey RPG Maker community, hope I can get some good help.

I'm working with a plethora of yanfly's plugins, so bear with me. I'm trying to get the Event Chase plugin to play music while the enemy is chasing the player, then play the map's music again when the event is no longer chasing the player.

So I have an event set up that triggers the battle when the event touches the player. This event's Movement is set to Custom Route, where it just stands there and waits for the player to come in range. Its movement is exactly this:

$this._chaseRange = 10

By yanfly's Event Chase plugin, this has the enemy chase the player once in range. This part works just fine.
Then in the plugin description, I have Common Event 008 set up, which simply plays chase music. This also works just fine.

From here, how can I get the event to stop playing the music and turn on the map's music? And how can this easily be applied to all other enemies I make from here on?
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,066
Reaction score
7,756
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Nekohime1989

Veteran
Veteran
Joined
May 31, 2014
Messages
345
Reaction score
158
First Language
English
Primarily Uses
N/A
calling this should allow you access that event. be careful though.
Code:
$gameMap.event(id)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,642
Reaction score
2,972
First Language
Tagalog
Primarily Uses
From here, how can I get the event to stop playing the music and turn on the map's music? And how can this easily be applied to all other enemies I make from here on?
When do you want that to happen? When the event stops chasing? You'd probably need to modify Yanfly's plugin to also allow you to define a CE that will run when an event stops chasing
 

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

Latest Threads

Latest Profile Posts

Yeseylon wrote on CrowStorm's profile.
All Hail Storm Crow, the Blue Eyes White Dragon of MtG!
I love these real life Oblivion videos:
I'm playing DQ:XI DE in 2d mode with the synthesized soundtrack, the only way a RPGMAKER creator should play it. :D
:/ it really get on my nerves reading stuff about how to write a resume and they say things like "turn your failures into wins!!!" ... no interview Ive ever had cared to hear anything about my failures, and why would they :( ?
"Huh? You haven't backed up yet? *menacing stare* "

Forum statistics

Threads
93,640
Messages
914,193
Members
123,227
Latest member
samaro
Top