Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: dragifon on March 27, 2008, 05:19:19 pm

Title: [RESOLVED] Leveling System For XP
Post by: dragifon on March 27, 2008, 05:19:19 pm
Could somebody make a script for me that will let me make the exp needed to level up go up by a specific amount each time the player reaches a new level?

For example: at level 1 player needs 100 exp to level up, but at level 2 player needs 200 exp to level up and at level 3 they need 300 exp etc.

i would also like for it to be changeable .

example: instead of increasing by 100 each time i can change the base number to 5 or 10.

thanks . ;D
Title: Re: Leveling System For XP
Post by: nathmatt on March 27, 2008, 05:37:17 pm
go under database hero experiance curve see if that what u want
Title: Re: Leveling System For XP
Post by: dragifon on March 27, 2008, 08:51:38 pm
i have already looked at that but it does not let you increase the exp. by a certain amount each level it uses some weird formula thing and i do not like the way it works.

i have an excel file that i made that might be able to explain it better but i don't know how to upload it. :D

What i want is to make it to where regardless of the player's level it ALWAYS takes the same number of kills on a same level enemy to level up. Example: at level 1 if you kill 100 level 1 baddies you go up a level. at level 2 if you kill 100 level 2 baddies or 200 level 1 baddies you go to level 3, and so on.

I don't know if this can be done with rmxp or rmvx but i really hope it is because i want to test this system and see if it is as amazing as i think it will be. But if it is not possible then i will just scrap the whole idea for know until i am able to create   
my own fully fledged video games as a video game designer.  ;D

Thank you ahead of time to anyone that can help and thank you for the help you have provided thus far.
Title: Re: Leveling System For XP
Post by: Nortos on March 28, 2008, 12:40:42 am
You can do it with the experience curve try looking at it a bit longer
Title: Re: Leveling System For XP
Post by: Blizzard on March 28, 2008, 07:37:41 am
Actually I think that you can't. The problem is that it's exponential while this "curve" is factorial. You see, the exp required for the levels is:

Lvl 1 = 0
Lvl 2 = 100
Lvl 3 = 300
Lvl 4 = 600
Lvl 5 = 1000
...

I might be wrong, though. In case you can't set it with the normal exp curve, use this extra script and add it below Game_Actor:

#==============================================================================
# Game_Actor
#==============================================================================

class Game_Actor < Game_Battler
 
  def make_exp_list
    actor = $data_actors[@actor_id]
    @exp_list[1] = 0
    (2..100).each {|i|
        if i > actor.final_level
          @exp_list[i] = 0
        else
          @exp_list[i] = @exp_list[i-1] + (i-1) * 100
        end}
  end
 
end
Title: Re: Leveling System For XP
Post by: dragifon on March 28, 2008, 03:35:45 pm
so does this mean that it is impossible to use my system in rmxp?

(i really hope not :()
Title: Re: Leveling System For XP
Post by: Blizzard on March 28, 2008, 03:38:05 pm
No, no, not at all. It's the other way around. You can simply use the system by using my mini-script up there and it will override RMXP's default way of setting up the EXP curves. If you want to change the base number, simply change the "100" in the script to any other number. Read this (http://forum.chaos-project.com/index.php?topic=198.0) topic if you don't know how to insert a script.
Title: Re: Leveling System For XP
Post by: dragifon on March 28, 2008, 04:30:51 pm
Thanks blizz that was exactly what i was looking for however i think it is a little weird not having the exp reset when you level up is there a way to change that?

level 1=0
2=100
3=200 (after reseting to 0 exp gotten)
4=300 (ditto)
5=400 (ditto)

if not its fine it still works exactly the way i wanted  ;D
Title: Re: Leveling System For XP
Post by: dragifon on March 28, 2008, 04:44:49 pm
also how do i get a .jpg i made to be my avatar permanently?
Title: Re: Leveling System For XP
Post by: Blizzard on March 28, 2008, 04:47:34 pm
Upload it on imageshack.us and use the link in your profile.

The EXP don't get reset. But for Level 2 you need to gather 100 EXP, for level 3 you need ADDITIONAL 200 EXP. If you want that you need 100 EXP each level, remove the "(i-1) * " in the code.