ohrrpgce / ohrrpgce

Official Hamster Republic RPG Construction Engine (mirror of SVN repository)
https://rpg.HamsterRepublic.com/ohrrpgce/Source
Other
72 stars 16 forks source link

Bitset: "Damage cannot exceed current stat" #252

Open ohrrpgce-bugbot opened 17 years ago

ohrrpgce-bugbot commented 17 years ago

[bz#252]

I want to make an attack that - will not drain more than the caster's lost HP and - will not drain more than the target's current HP.

The easiest way to do this (since it is not currently supported) is to add a bitset to disallow damage to exceed the stat it is targeting. Besides being useful for this and other things like it, it can also be used to reproduce the effect in games where your damage is never shown as higher than the enemy's remaining life.

From: @arperry Operating system: Windows XP URL: http://castleparadox.com/ohr/viewtopic.php?p=61176 Severity: feature request

ohrrpgce-bugbot commented 14 years ago

Comment author: @bob-the-hamster

Implemented the new attack bitset: "Don't allow damage to exceed target stat"

This works for both damaging and curing, and works with drain.

So this implements half of this request. The other half, "will not drain more than the caster's lost HP" is still not possible.