Code: Select all
[h, if(GetState("Blinded") == 1): SetState("Blinded", 0), SetState("Blinded", 1))]
Code: Select all
[h: setState("Blinded", getState("Blinded")-1)]
Code: Select all
{GetState("Blinded")}
it returns 0 even if clicking the macro added the img to the token.
the framework(?) is failing in the same manner which is what prompted me making my own.
Code: Select all
[if(state.Blinded == 1), CODE:
{
[h:state.Blinded=0]
};
{
[h:state.Blinded=1]
<b>[r:token.name] is <u>blinded</u>!<br></b>
*A blinded creature can't see and automatically fails
any ability check that requires sight.<br>
*Attack rolls against the creature have advantage, and
the creature's attack rolls have disadvantage.
}]