Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Complete XP Control, Crude but effective. Like a sledgehammer when a rock would do.
shinto
post Mar 13 2011, 02:51 AM
Post #1


Level 2
Group Icon

Group: Member
Posts: 18
Type: Developer
RM Skill: Skilled




A quick script I hacked together for my game. Customization instructions are in the script.
Perfect for when you're using irregular progressions and NEED to have them exact.
XP Control
CODE
##XP Control by Shinto aka Blackorchid.
##For setting exact XP settings to your game.
##Replace x with the C.lvl and y with the desired XP
##@exp_list[x] = @exp_list[y] = 20
##By default only goes to 30 as I coded it for my game but by
##tweaking for i in 31..99 higher and adding a new entry for each level
##you can customize it up to 99. NO CREDIT NEEDED for Shinto/Blackorchid.
##If it helps a newbie like other scripts have helped me it's good enough :)
class Game_Actor
def make_exp_list
    @exp_list[1] = @exp_list[100] = 0
    #100 +10 per lvl gained until lv.10
    @exp_list[2] = @exp_list[100] = 20
    #+20
    @exp_list[3] = @exp_list[100] = 50
    #+30
    @exp_list[4] = @exp_list[100] = 90
    #+40
    @exp_list[5] = @exp_list[100] = 140
    #+50
    @exp_list[6] = @exp_list[100] = 200
    #+60
    @exp_list[7] = @exp_list[100] = 270
    #+70
    @exp_list[8] = @exp_list[100] = 350
    #+80
    @exp_list[9] = @exp_list[100] = 440
    #+90
    @exp_list[10] = @exp_list[100] = 550
    #+110 +20 per lvl gained lv.10 - 19
    @exp_list[11] = @exp_list[100] = 680
    #+130
    @exp_list[12] = @exp_list[100] = 830
    #+150
    @exp_list[13] = @exp_list[100] = 1000
    #+170
    @exp_list[14] = @exp_list[100] = 1190
    #+190
    @exp_list[15] = @exp_list[100] = 1400
    #+210
    @exp_list[16] = @exp_list[100] = 1630
    #+230
    @exp_list[17] = @exp_list[100] = 1880
    #+250
    @exp_list[18] = @exp_list[100] = 2150
    #+270
    @exp_list[19] = @exp_list[100] = 2440
    #+290
    @exp_list[20] = @exp_list[100] = 2770
    #+320     +30 per lvl gained lv.20 - 30  
    @exp_list[21] = @exp_list[100] = 3120
    #+350
    @exp_list[22] = @exp_list[100] = 3500
    #+380
    @exp_list[23] = @exp_list[100] = 3910
    #+410
    @exp_list[24] = @exp_list[100] = 4350
    #+440
    @exp_list[25] = @exp_list[100] = 4830
    #+480 +40 per lvl gained lv.25 - 29
    @exp_list[26] = @exp_list[100] = 5350
    #+520
    @exp_list[27] = @exp_list[100] = 5910
    #+560
    @exp_list[28] = @exp_list[100] = 6510
    #+600
    @exp_list[29] = @exp_list[100] = 7150
    #+640
    @exp_list[30] = @exp_list[100] = 7800
    #+700 +1k per lvl gained lv. 30  
    for i in 31..99
      @exp_list[i] = 0
    end
end
end

If you want to give credit it's cool , if not I'm not too worried about it.
Figured I'd give something back with my very meager scripting abilities x.x
CREDITS - All the scripters who post their work here who I've been slowly learning from.
-Shinto
Go to the top of the page
 
+Quote Post
   
Tacoghandi
post Jun 25 2011, 11:12 PM
Post #2


Level 1
Group Icon

Group: Member
Posts: 11
Type: None
RM Skill: Undisclosed




Nice code. Really helped me make my game more D&Dish and ill definatly give you credit.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 11:56 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker