[RPG Maker MV] Conditional Branch: Party Leader

Yuu-Mon

Villager
Member
Joined
Jun 23, 2013
Messages
7
Reaction score
2
First Language
English
Primarily Uses
I want to be able to have events react to whoever is in the current leader position (Front line) using the Conditional Branch event command: I was able to do this back on RPG Maker VX Ace, where I would use the script option in the Conditional Branch using: " $game_party.leader == $game_actors[1] "


But it doesn't work with MV. Can I get some help with making this work for MV? Thanks.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
it's a lot easier to do it without scripts (both in Ace and in MV), you'll simply need two commands instead of one.


1) control variable : game data : party : member #1's ID


This will load the ID of the party leader into the variable


2) conditional branch : var = [number of actor you want to check for)
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
@Yuu-MonThis is how the script call looks in MV




Alternatively you can work with ID's directly (assuming the leader is always an actor)
 
 
Last edited by a moderator:

Yuu-Mon

Villager
Member
Joined
Jun 23, 2013
Messages
7
Reaction score
2
First Language
English
Primarily Uses
All right. I tried both of them out, and they both work just the way I want it. (I keep forgetting about  variables and that's not a good thing...) So thanks a lot, this helped me out.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top