Main Menu

[Resolved] Check Level of Party Leader for Conditional Branch?

Started by Radiant_Cadenza, September 05, 2011, 04:07:56 PM

0 Members and 1 Guest are viewing this topic.

Radiant_Cadenza

I already know how to check the level of a specific actor (as shown here: 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.

cozziekuns

Use the script command in Conditional Branch (Bottom of 4th Tab) and enter:

$game_party.members[0].level >= Number

Radiant_Cadenza

So that's how it's done.

Many thanks.

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