The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Rune on March 25, 2007, 01:10:35 PM

Title: 99999 HP and SP? [RESOLVED]
Post by: Rune on March 25, 2007, 01:10:35 PM
Does anyone know how to get a character's max HP and SP over the 9999 barrier?
I think i've done it somehow before just by editing a few scripts but if I did i've forgotten how

Thanks in advance  ;)
Title: Re: 99999 HP and SP?
Post by: Blizzard on March 25, 2007, 02:21:08 PM
In Game_Battler 1 find:

  def maxsp
    n = [[base_maxsp + @maxsp_plus, 0].max, 9999].min
    for i in @states
      n *= $data_states[i].maxsp_rate / 100.0
    end
    n = [[Integer(n), 0].max, 9999].min
    return n
  end
 


Change the 9999 to 99999.
In Game_Actor 1 find:

  def maxhp
    n = [[base_maxhp + @maxhp_plus, 1].max, 9999].min
    for i in @states
      n *= $data_states[i].maxhp_rate / 100.0
    end
    n = [[Integer(n), 1].max, 9999].min
    return n
  end


Same thing: Change 9999 to 99999.
Title: Re: 99999 HP and SP?
Post by: Rune on March 25, 2007, 02:46:15 PM
That's it! thaks Blizzard! :D