[RESOLVED] Leveling System For XP

Started by dragifon, March 27, 2008, 05:19:19 pm

Previous topic - Next topic

dragifon

March 27, 2008, 05:19:19 pm Last Edit: July 25, 2008, 05:05:54 pm by Blizzard
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

nathmatt

go under database hero experiance curve see if that what u want
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script


dragifon

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.

Nortos

You can do it with the experience curve try looking at it a bit longer

Blizzard

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
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dragifon

so does this mean that it is impossible to use my system in rmxp?

(i really hope not :()

Blizzard

March 28, 2008, 03:38:05 pm #6 Last Edit: March 28, 2008, 03:38:52 pm by Blizzard
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 topic if you don't know how to insert a script.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dragifon

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

dragifon

also how do i get a .jpg i made to be my avatar permanently?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.