Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: GAX on April 23, 2008, 11:31:19 pm

Title: [RESOLVED] Snipet request
Post by: GAX on April 23, 2008, 11:31:19 pm
Fairly simple...I'm getting f&*%ing sick of holding the increase arrow for hours on end to setup monster HP that's over 100000 and I just need something that I can type in the monster's ID and set its HP and MP according to that instead of wasting so much time boosting stats like that.
Title: Re: Snipet request
Post by: shdwlink1993 on April 24, 2008, 01:29:20 am
I think this would work:

Go to Game_Enemy, and look for def base_maxhp.

When you get there, Comment out the original (in case this doesn't work), and put this in:


  def base_maxhp
    return $data_enemies[@enemy_id].maxhp
    if [INSERT ID HERE] then return [NUMBER HERE]
  end


Again, not sure about that, but it's the best thing I can think of on the spot. Also, you can adjust this pretty easily for SP, or any stat really.
Title: Re: Snipet request
Post by: Blizzard on April 24, 2008, 08:24:21 am
I use this, it's more convenient.

class RPG::Enemy

  def maxhp
    return case id
    when 3 then 999999
    when 26 then 999999
    when 44 then 999999
    when 48 then 500000
    when 49 then 500000
    when 65 then 336189
    when 66 then 102514
    when 70 then 250000
    when 71 then 169618
    when 79 then 999999
    else
      @maxhp
    end
  end

end


But shdwlink's works as well.