
I use the below to increase the current and max hit points for an effect such as AID. How can this be modified to reduce ONLY the max but leave the current alone?
!token-mod {{
--set bar1|[[{ (0@{selected|bar1} + 0d0+?{How many hit points do you increase?|0} ), (0@{selected|bar1|max}d1 + (999)) }kl1 ]]
--report
all|"{name} gained or lost {bar1_value:abschange} hit points"
gm|"{name} has {bar1_value}/{bar1_max} hp"
--ids @{selected|token_id}
}}