Skip to content

Problems with expressions #210

@HelenaCrispim

Description

@HelenaCrispim

It was working perfect before the most recent big update from FoundryVTT, so I know the logic is correct. When I add the "&&" or use hp based expressions it doesn't seem to work at all anymore.
A lot of characters/npc on the table have the mapping for variant tokens during combat.

token-variants-combat && hp>=30%
token-variants-combat && hp<=30%

Now if I use the token-variants-combat on it's on, it still works as intended, however, if I add the second part it no longer works either of them.

Also tried using just the hp<=30% on it's on, and it did not work either.

Image Image Image Image

EDIT:
So I kept testing and I noticed that if I set a fixed number like "hp<=30", intead of "30%" it is actually working. It's the % that for some reason isn't working anymore. Any ideas how I could fix it in my expressions so the % will work again?

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