Skip to content

HP automation not working on v13.348 #214

@notgithub111

Description

@notgithub111

Describe the bug
simple automation such as attributes.hp<10% do not work.
I was using the pre-made template for applying critical, bloodied, wounded, etc... as text over the token
I am using starfinder, but I don't think that would matter as the hp value is still attributes.hp, or actor.system.attributes.hp

I have done some experimentation using a token set at 3hp both a PC token with an actor, and an NPC token not linked to an actor

system HP path is is set to
attributes.hp

hp=3 TRUE
hp<=8 TRUE

hp.value=3 FALSE
attributes.hp.value=3 FALSE
system.attributes.hp.value=3 FALSE
actor.system.attributes.hp.value=3 TRUE
actor.system.attributes.hp=3 FALSE
actor.system.attributes.hp=<100% FALSE
actor.system.attributes.hp.value<=9 TRUE

it feels like TVA cannot read the full properties, perhaps because there is no minimum value for hp
it can read .value, and comparisons of hp.value=3 or hp.value<=4 do test as true

but it's as if it doesn't have a min and max with which to calculate any percentages, thus nothing ever tests true....
not sure if this is related to the other open issue for HP and v13

In many game systems, HP can be a negative number, so perhaps if no min is present it could assume 1? for purposes of calculations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    implementedFix/Feature has been coded and will be included in the next release.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions