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,362
Reaction score
9,730
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

And today we got some insides maps from the town i posted last time.

Map044.png
Map045.png
Map046.png
Map047.png Map048.png Map049.png Map050.png
So a big bug that was on a glue trap at home is now magically not on the glue trap. This feeling of terror I'm experiencing could be a fun thing to put in my game project (not the IGMC one).
Hoping that Unite has a character generator with black hairs/lips and other features.. it is such a pain making characters without these...
Today is my dad's birthday! And he's still going strong in his retirement days!
Ooh a plugin for exactly what I was looking for... DEAD LINK. DEAD LINKS EVERYWHERE.. AAAAAAAAAAAAAAAGH!!!

Forum statistics

Threads
123,392
Messages
1,156,237
Members
161,848
Latest member
Alerin
Top