I'm trying to write a macro that sets the value of two properties(GdP, GeB) on a token. It works for the first one("GdP"), but not for the second one("GeB"). I want to know (1) if it is possible to do it this way and, (2) what am i doing wrong, cause as i said, im new to macro writing and i know little about it.
Code: Select all
[h: str = getProperty("Strength")]
[h,switch(str):
case "10": setProperty("GdP", '1d6-2') setProperty("GeB", '1d6');
case "11": setProperty("GdP", '1d6-1') setProperty("GeB", '1d6+1');
case "12": setProperty("GdP", '1d6-1') setProperty("GeB", '1d6+2');
]