GAMEMONKEI

Villager
Member
Joined
Apr 10, 2022
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMMZ
Hey developers, is there any way that I can make an event, (Or if anyone has a plugin I can use) To make it so that an event is only active when a certain party member is at the head of the party something similar to OMORI.


Thanks,
GAMEMONKEI
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,277
Reaction score
9,701
First Language
German
Primarily Uses
RMMV
control variable can get you the ID of the actor in any of the first eight party positions (game data section that defaults to map id but can get you hundreds of other data as well).

simply make the event fire anytime, then check which actor is in the first position and either do something for that actor or abort the event

no javascript needed at all
 

coyotecraft

Mythographer
Veteran
Joined
Mar 13, 2012
Messages
300
Reaction score
172
First Language
English
Primarily Uses
N/A
If (condition){do something}
if (Party leader == Somebody) {do something}
if ($gameParty._actors[0] == *whoever* ) {*run custom script*}

In a conditional branch command you just need to type the condition in the script box
$gameParty._actors[0] == *whoever*
Because it's evaluating true or false

Script in Move Routes or Map/Battle Events would require the full statement. Although there is a short hand:

condition ? when true : when false
$gameParty._actors[0] == *whoever* ? var = this value : var = this other value
 

Latest Threads

Latest Posts

Latest Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,139
Messages
1,154,243
Members
161,474
Latest member
nugogo555
Top