public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Why does this happen? (HP Rate)

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Why does this happen? (HP Rate)
  • Original author: Rinobi
  • Original date: November 30, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/why-does-this-happen-hp-rate.51851/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

So I'm going through the painfully slow process of adding classes/skills to the database, creating new animations, and scripting in functionality where necessary when I encountered some odd behavior. { "lightbox_close": "Close", "lightbox_next": "Next",

Archived First Post

So I'm going through the painfully slow process of adding classes/skills to the database, creating new animations, and scripting in functionality where necessary when I encountered some odd behavior.

Protected downloadProtected download

hp_rate as I've understood it, should return what is essentially the decimal equivalent of the percentage of HP remaining.

If health is at full: hp_rate = 1

If health is at half: hp_rate = 0.5

Through some testing, this has been shown to be true, however, when I multiply a say... atk by hp_rate, the value increases drastically as HP falls while I'd expect it to decrease instead...

# The formula for the berserk state is bascially: user.atk *= (1 / user.hp_rate) #Should increase as hp falls.# The formula I tested above is: user.atk * user.hp_rate # Should decrease as hp falls.Instead they both return insanely high values as hp damage is taken. Now, I'm not asking for a solution, I just want to know what's causing this.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

Why01.PNG
Why01.PNG
Why02.PNG
Why02.PNG
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#should#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar