I created a
blank character sheet for neither PC nor NPC and added these Attributes: coin_treasure_1
value: CP| [[5d6]] --SP| [[4d5]] --EP|
[[3d6]] --GP| [[3d6]] --PP| [[ 1d2 ]] coin_treasure_2 value: SP| [[4d5]] --EP| [[3d6]] --GP|
[[3d6]] --PP| [[ 1d4 ]] coin_treasure_3 value: EP| [[6d6]] --GP| [[3d10]] --PP| [[ 1d8
]] Using PowerCards , I created two simple macros utilizing conditional statements
within the Abilities area of the sheet. This one
works !power {{ --name| @{selected|token_name}'s Punch Attack --leftsub|Non-lethal dmg 1d4 --rightsub|Range touch --Attempt|[[ [$Atk] 1d20 +
@{strength_save_bonus} ]] vs @{target|token_name} --?? $Atk <= @{target|AC} AND $Atk.bas
<> 20 ?? Hey, @{selected|token_name},|You missed! --?? $Atk > @{target|AC} ?? Hit for | [[
[$Dmg] 1d4 + @{strength_save_bonus} ]] points damage --?? $Atk.base == 20 ?? Nat 20 Critical Hit|[[
[$CritDmg] 8 + 1d4 +
@{strength_save_bonus} ]] --?? $Atk > @{target|AC} AND $Atk.base
<> 20 ?? api_token-mod|_ids @{target|token_id} _ignore-selected _set
bar1_value|-[^Dmg] }} This one
does not !power {{ --name| Pouch 1-4 --leftsub|Treasure --rightsub|Coins --Rolled Percent| [[ [$Atk] 1d100 ]] --?? $Atk > 0 AND $Atk < 31 ?? { @{selected|coin_treasure_1 } --?? $Atk > 30 AND $Atk < 61 ?? {
@{selected|coin_treasure_2 } --?? $Atk > 60 AND $Atk < 71 ?? {
@{selected|coin_treasure_3 } }} The conditional
statements in the first macro work well. The conditional
statements in the second macro always default to the last line. The data gathering and display works, but I cannot get the
pre-last-line conditions to intercept. I tried reversing the order – no difference. I tried using $Atk.bas – another no-go. Help?