EXP Script?

sgtwolf89

Warper
Member
Joined
Mar 21, 2016
Messages
3
Reaction score
0
First Language
English
Primarily Uses
ok so im really new at RPG maker, and im trying to redo an old nintendo game for my own deviseing. i would like to know how i have a shop keeper tell me what the total experince i need till the next level? is there a way to do it?
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,381
Reaction score
8,537
First Language
English
Primarily Uses
RMMV
I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
In control variable, goto the script box at the bottom and type in this:


$game_actors[actor_id].exp_for_level(level_number)


actor_id = the id of the actor you wish to check


level_number = the level you wish to check


eg


check how many exp actor 2 need to get to level 10


use this:


$game_actors[2].exp_for_level(10)


when you add that to a variable, you can easily show it later in any message you wish using \v[variable_id] within a message.
 

sgtwolf89

Warper
Member
Joined
Mar 21, 2016
Messages
3
Reaction score
0
First Language
English
Primarily Uses
ok great what about like a party situation? can u just add the same line to do multiple characters?
 

sgtwolf89

Warper
Member
Joined
Mar 21, 2016
Messages
3
Reaction score
0
First Language
English
Primarily Uses
and how do i figure out what my actor id is?
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
Try not to double post, it's against the forum rules, you can always edit your last post if you wish to add more information.


The basic code is the same, how you pair it with other script calls / conditional branches is up to your dev skill. So the answer is yes, you can do multiple chars with that code, just need to add another script call to it, eg, replace actor_id with $game_variables[id] to make it able to react to game variables. You can then control that game variable to get which actor id you wish to use etc etc.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top