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,971
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

Need a few testers for my new plugin, any takers?
Good night (or day) to everyone! :smile:
You thought kids rooms were messy. Look at this.
Back in the house and I'm hungry
Yoshi!
DNPwhy.gif

You're using that item wrong... TwT

Trying to get the mechanics down for a cute, story-driven board game! I think I've accomplished dice movement, item effects, and activating a space's event when you land on it. Art is WIP. Hope to open a thread about the game soon!

Forum statistics

Threads
118,527
Messages
1,116,656
Members
155,548
Latest member
Kels
Top