How to get the level of the first member of the group in a variable?

colossus0

Warper
Member
Joined
Jun 2, 2023
Messages
2
Reaction score
1
First Language
Português
Primarily Uses
RMMV
Hello, I want to create a condition where if my enemy's level (which is in a variable) is higher than my character's then something happens, but I'm making a Pokémon style game, so I can't predict who the character will be the first member of the group, and to get the level in the variable using the game data it only gives me the option of getting specific characters, and I don't know how to get a character's parameter in a variable other than this, could anyone help me with this ?
Thanks in advance!
 
Last edited:

colossus0

Warper
Member
Joined
Jun 2, 2023
Messages
2
Reaction score
1
First Language
Português
Primarily Uses
RMMV
Script calls are your friends :)

If you want to store the first party member's level in a variable, type $gameParty.members()[0].level in the script option
Thanks bro, it worked here, I really appreciate it, can I get the character's other attributes in the same way?
 
Last edited:

AmVa

Regular
Regular
Joined
Jul 6, 2022
Messages
123
Reaction score
44
First Language
English
Primarily Uses
RMMV
You're welcome! and yeah sure, you can get any property of the actor's object in the database in the same way
 

Latest Threads

Latest Posts

Latest Profile Posts

Arrr me mateys, have ye seen the new Advent pirates? Wouldn't want to cross paths with those scallywags.
Is there a clinical term for the disorder wherein you always have way too many Internet browser tabs open?
Kokoro Reflections is my favorite tileset maker. I absolutely love their work. I have bought quite a bit from them. Best RPG Maker tileset creator ever imo.
Me working on a deadline, "don't make the baseline and chords too funky, don't over compose it... remember, you have to finish it." Touches MIDI controller...instant funk.
TGA are coming up, and I'm still mad Lies of P didn't get nominated.
Like, they chose a remake of a 20 year old game and a vanilla 2D Mario game over it?

Bah, humbug!
I'll be there for the trailers and whatever weird mistakes are made.

Forum statistics

Threads
136,782
Messages
1,269,943
Members
180,538
Latest member
erprzemo
Top