[RESOLVED] Snipet request

Started by GAX, April 23, 2008, 11:31:19 pm

Previous topic - Next topic

GAX

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.

Rule 2: ShowHide
Quote from: Rule No.2Keep your signatures at reasonable size. The pictures in your signature may altogether be no more than 200kB and take up an area of 1600px2. That means 2 pictures of 400x200 are fine, one picture of 800x200 is fine and so on. Also your pictures height must not exceed 200 pixels, width can be as big as you want as long as your pictures match the other criteria. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature.

shdwlink1993

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.
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

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.