In this targeting macro, I need @{target|type1} and @{target|type2} to result in different numbers based on the type of the attack used, how would I do this? ((2*(@{level})/5+2)*@{AType}*@{APower})/@{Target|Def})/50)+2)*@{STAB})*(@{Target|Typemod1}*@{Target|Typemod2})*(1d39+216))/255 I need both @{target|type1} and @{target|type2} to somehow result in 2, 1, 0.5 or 0 based on the type of attack used.