ever wanted to make new skills?
like fishing, cooking, etc.
in this toturial, we do fishing.
*the complete script is at the end of the toturial,
but be sure to follow the toturial.*

first, go into the script editor,
and go to the script: Game_Actor.
you'll see attr_reader :level, exp, skills, and some more.
(attr stands for attribute)
attr_reader means it's defined in rmxp itself,
in the database.
now, we are going to add 3 attr_accessors.
with attr_accessor, you can do:
$game_party.actors[ID].fishing_level
now, underneath attr_reader :skills, add 3 new accessors:

line 1, is the method,
which has the name of the attr_accessor :fishing_level
line 2, is an if-statement.
this takes care for leveling up.
when @fishing_exp (the current exp) is equal to
@fishing_next_exp (exp needed for next level),
something will happen(in this case: at line 3 & 4)
line 3, increase the number of @fishing_next_exp,
so the number won't be the same. in this case,
it's set equal to the current fishing exp + 65.
line 4
this adds everytime that @fishing_exp is equal to @fishing_next_exp,
1 level to @fishing_level.
line 5 + 6
this ends the if statement & the method.

to add exp, simply do:
$game_party.actors[0].fishing_exp += number
you don't need anything to do with the next exp.

this is the toturial.
i hope this is useful.

comments & questions are welcome.

here's the complete script, for the people who don't know where to put it.

#==============================================================================
# ■ Game_Actor
#------------------------------------------------------------------------------
# This class defines an actor, with all of the typical data elements such as level,
# equipment, and skill progression. This class refers to the global arrays $game_actors
# and $game_party.
#==============================================================================

you can make your own skills with that script.
it allows you to do it with experience points(exp) like the one in the battle!

Jeff_PKLight

June 10th, 2005, 04:45 AM

Very cool, -virtual-! :D It looks awesome.

Datriot

June 17th, 2005, 01:03 AM

Err....this did nothing, I put the whole code in the Game_Actor script but it's done nothing, I don't see a change in anything...;/

Blizzy

June 17th, 2005, 01:41 AM

Err....this did nothing, I put the whole code in the Game_Actor script but it's done nothing, I don't see a change in anything...;/
erm....because i didn't do anything with it yet.
you can only store exp, next_exp, and level with it

Datriot

June 18th, 2005, 09:35 AM

Oh, okay.(too short, stupid thingy)

Budgie_boy

June 23rd, 2005, 02:48 AM

Hi there, does this also allow you to make the characters level higher than lvl99? If not, how do you make it higher? How do you make the battle screen like POKEMON?

I'm using rm2k/3 and its proving difficult to get the battle sprites in...

freakboy

June 23rd, 2005, 04:55 AM

Hi there, does this also allow you to make the characters level higher than lvl99? If not, how do you make it higher? How do you make the battle screen like POKEMON?

I'm using rm2k/3 and its proving difficult to get the battle sprites in...
this is only for rpgmaker xp, not for rpgmaker 2003, sorry

kanto123326

February 28th, 2011, 03:59 PM

I've got the script and everything, but how do you lvl up in the actual game?
sorry if youve already said this somewhere!:P

Cilerba

February 28th, 2011, 07:03 PM

This threads a little over 5 years old. Try and read the rules next time.