FutureProg functions
adjusthitpoints
Overload 1
adjusthitpoints overload 1
Boolean adjusthitpoints(Character character, Number amount)
Available in
- computer function
- computer program
- standard futureprog
Repairs native wound damage or inflicts direct HP damage without armour or magic. Preserves health ceilings and death rules; does not restore stun or resurrect. Returns false for unsupported health models or invalid targets.
| Parameter | Type | Description |
|---|---|---|
character |
Character |
The living character with a native HP strategy |
amount |
Number |
Positive heals; negative inflicts direct HP damage |
Overload 2
adjusthitpoints overload 2
Boolean adjusthitpoints(Character character, Number amount, Number stun)
Available in
- computer function
- computer program
- standard futureprog
Applies direct HP and stun harm atomically through the native health strategy. Positive healing cannot be combined with stun. Unsupported channels fail without partial damage.
| Parameter | Type | Description |
|---|---|---|
character |
Character |
Living character with an HP strategy |
amount |
Number |
Nonpositive HP adjustment |
stun |
Number |
Nonnegative direct stun damage |