The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Radiant_Cadenza on September 05, 2011, 04:07:56 PM

Title: [Resolved] Check Level of Party Leader for Conditional Branch?
Post by: Radiant_Cadenza on September 05, 2011, 04:07:56 PM
I already know how to check the level of a specific actor (as shown here: http://rmrk.net/index.php/topic,43718.0.html (http://rmrk.net/index.php/topic,43718.0.html) )

But I want to check the level of whatever actor is currently in the lead position.
I'm going to use it to make enemies that flee from the player if the party leader's level is above a certain number. Since I don't have a main character that is always in the party, I thought it might be kind of silly to pin it to a specific character's level; who may not even be in the party, or who may be over/under-leveled compared to who is actually in the party.

While I'm asking, how do you check the ID of the lead party member?

I'm using KGC_LargeParty if that changes anything.
Title: Re: Check Level of Party Leader for Conditional Branch?
Post by: cozziekuns on September 05, 2011, 04:38:02 PM
Use the script command in Conditional Branch (Bottom of 4th Tab) and enter:

Code: [Select]
$game_party.members[0].level >= Number
Title: Re: Check Level of Party Leader for Conditional Branch?
Post by: Radiant_Cadenza on September 09, 2011, 02:49:11 AM
So that's how it's done.

Many thanks.

Note to self: Try to find a list of valid script commands.