Jump to content

Announcing our new website

To find out the latest about our new website, visit Game Dev Unlimited

- - - - -

Can anyone help modify this level and stat breaking script?


  • You cannot reply to this topic
1 reply to this topic

#1 djskagnetti

    Newbie

  • Member
  • 15 posts

Posted 03 October 2011 - 09:12 PM

Can anyone help me modify this script? I know how to set the limits, but would like to set the rates that stats increase to those limits.

I currently have in my game max level 99, 9999 HPs and SPs, and STR, INT, DEX, AGI at 100. I have it set up as follows:
at level 1 you have 20 HPs, no SPs (you gain 5 at level 6 and then it goes up from there), and 5 in each stat STR, INT, AGI, DEX.
at 25 you have 619 HPs, 600 SPs, and 11 in each stat.
at 50 you have 2515 HPs, 2500 SPs, and 29 in each stat.
at 75 you have 5710 HPs, 5702 SPs, and 60 in each stat.
and at 99 you have 9999 HPs, 9999 SPs, and 100 in each stat.

All rates are set with the slider to the far right, for the slowest gain in all stats. The EXP needed bar is set for 13 Basis (13 XP to reach level 2) and Inflation 50 (you need 2175991 XP to reach level 99.) Unfortunately, with the kind of game I'm making I believe this will not be high enough and the characters will reach level 99 far before the end of the game.

What I would like is to have it set for level 999, max HPs and SPs at 99,999, and max stats STR, INT, DEX and AGI at 999 - with the EXP needed to reach that level raising at the same pace (Inflation 50), so it would be:
at level 1 you have 20 HPs, no SPs (you gain 5 at level 6 and then it goes up from there (i would still like to do this if possible)), and 5 in each stat STR, INT, AGI, DEX.
at 25 you have 619 HPs, 600 SPs, and 11 in each stat.
at 50 you have 2515 HPs, 2500 SPs, and 29 in each stat.
at 75 you have 5710 HPs, 5702 SPs, and 60 in each stat.
at level 99 you have 9999 HPs, 9999 SPs, and 100 in each stat.
at level 250 (guesstimating) you have 25000 HPs, 25000 SPs, and 250 in each stat.
at level 500 - 50000 HPs and SPs, 500 in stats.
at level 999 - 99999 HPs and SPs, 999 in stats.

This way the player does not necessarily have to keep leveling past 99, but if they hit it way before the end of the game, they're not just cut off. Or if they have a lot of time on their hands they can see if they can get to 999. From testing the script below out, I used max lvl 999, max hps and sps 99,999, and max stats 999. I then made a ghost have max XP in a new game and 1 hp and made 8 of them in an battle process event, so killing 8 gave me 799992 XP. And it did indeed break lvl 99, I shot to 118 after the first battle, but the HPs and MPs increased to 96000, along with all of the stats hitting 999 as well. I want it to be around 11800 HPs and MPs and stats at 118 (so generally 100 HPs and MPs and 1 point added to stats for every level past 99.)

Can anyone look at the code below and see if they can change the rate of the increases to be accordance to what I need? I would really appreciate it!! Thanks much in advance!

Spoiler

I tried the ghost with max XP scenario in a brand new game. In my game I will be using Tons of Addons, an enemy health bar script, Easy Level Addon, Skill Shop addon, and a small script that adds "when X return Y" which means when monster ID is X then return Variable ID which adds 1 to that specific variable - it's for monster hunting jobs - go out and kill X amount of a specific monsters kind of thing - each kill of a specific kind of monster adds 1 to that monster's specific variable.

#2 xxultimaxx

    Member

  • Member
  • 32 posts

Posted 09 October 2011 - 10:37 PM

Have you tried to change the $FINAL_LVL constant and final_level method?

#----------------------------------------------------------------------------
    # here you can set the max hp,sp,,str,dex,agi and int
    #----------------------------------------------------------------------------
      $FINAL_LVL  = 100
      $MAX_HP     = 99999
      $MAX_SP     = 99999
      $MAX_STR    = 9999
      $MAX_DEX    = 9999
      $MAX_AGI    = 9999
      $MAX_INT    = 9999

def final_level
       
        # here you can set the max level for your characters based on their ID's...
        # i set it so that 3 characters have different levels and the rest
        # have max lvl of 9999
        #
        # this settings is only to show you how to change the max setting for your
        # characters... same thing is for the parameters -> hp,sp,str,dex.agi,int
       
        case self.id
        when 1
          level = 100
        when 2
          level = 100
        when 8
          level = 100
        else
          level = $FINAL_LVL
        end
        return level
      end

Try changing the 100s to 999s and see if that helps.





0 user(s) are reading this topic

members, guests, anonymous users