DWizard

Villager
Member
Joined
Apr 19, 2018
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hey guys,

What's the call script for current character level ? I was able to find ${$gameParty.leader().maxLevel()} which shows max level 120.... but something like ${$gameParty.leader().currentLevel()} which supposed to return 110 in this example, it returns an ERROR. I searched everywhere and had no luck :/

error.PNG
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,152
First Language
English
Primarily Uses
RMMV
If you know the actor # from the database:
Code:
$gameActors.actor(#).level
(replace # with the actor #)

Otherwise if you are going by party position it would be:
Code:
$gameParty.members()[X].level
Where X is a number of the position in the party (0 is the party leader)
 

DWizard

Villager
Member
Joined
Apr 19, 2018
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
@Aloe Guvner, Thanks a lot, this ${$gameParty.members()[0].level} worked perfectly :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
You could also have used control variable to get that info without any script (it's in the game data window)
 

Latest Threads

Latest Posts

Latest Profile Posts

I just finished Variables I lesson! Urrah! I'll be publishing it soon. :smile:
Hopefully brighten your Monday.
SwordSkill wrote on alice_gristle's profile.
Hey, wanna give my project a try? I promise it will be easy.
Seeker Clones.png
Work on the Decepticon Seeker sprites is taking longer than I anticipated. I have five down: Starscream, Thundercracker, Skywarp, Acid Storm and Nova Storm. Three left to go: Ion Storm, Sunstorm (needs rework), and Slipstream. After completing their walking sprites, should I wait to post them after I've done a transformation sequence?

Forum statistics

Threads
118,672
Messages
1,117,783
Members
155,788
Latest member
slot777situs
Top