Not the greatest at searching for references, and I've searched but can't find reference to this problem.... if there is already a post,.. please direct me to it.. Can't get a script to work... e.g. Script asks type of attack... Normal, Advantage, Disadvantage and rolls accordingly,.. the If/Then is... if roll is 1 - Fumble section if roll is 20 - Crit section If roll is >Target AC - Hit section... default if none of above. - Miss How do i implement as question of whether the target is hexxed or not? so to add another set of the above, but split into two versions in order to not have to have separate token buttons for normal attack and attack against a hexxed foe? when I try to do same "If/Then".... it either just doesn't work at all.. or it flows through and uses the last entry which would be the Crit section of the Hexxed section... e.g. !scriptcard {{
--lSettings|BlahBlah
--/| Polearm Master
--#title|BlahBlah
--#leftsub|Bonus Melee Attack
--#sourceToken|@{selected|token_id}
--#targetToken|@{target|token_id}
--#emoteText|@{selected|token_name} delivers an additional attack with the butt end of his weapon!
--=TargetAC|@{target|npc_ac}
--?[$TargetAC.Total] -gt 0|DoneWithAC
--=TargetAC|@{target|ac}
--:DoneWithAC|
--=CurseVal|?{Target Cursed?|no,0|Hex,1}
--?[$CurseVal] -eq 0|no
--?[$CurseVal] -eq 1|Hex
--:no|
--&AtkDice|?{Roll Type?|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}
--=AttackRoll|[&AtkDice] + @{selected|strength_mod} [STR] + @{selected|pb} [PROF] + 3 [WPN BNS]
--+Attack|@{selected|token_name} rolls [$AttackRoll] vs the Bad Guy.
--?[$AttackRoll.Base] -ge 20|Crit
--?[$AttackRoll.Base] -eq 1|Fumble
--?[$AttackRoll.Total] -ge [$TargetAC.Total]|Hit
--/|BlahBlah
--+Miss!|
--^EndAttack|
--:Fumble|
--/|BlahBlah
--+Fumble!
--^Final|
--:Hit|
--=BlahBlah
--+Hit!
--^Final|
--:Crit|
--/| BlahBlah
--+Critical Hit!|
--^Final|
--:Hex|
--&AtkDice|?{Roll Type?|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}
--=AttackRoll|[&AtkDice] + @{selected|strength_mod} [STR] + @{selected|pb} [PROF] + 3 [WPN BNS]
--+Attack|@{selected|token_name} rolls [$AttackRoll] vs the Bad Guy.
--?[$AttackRoll.Base] -ge 19|Crit
--?[$AttackRoll.Base] -eq 1|Fumble
--?[$AttackRoll.Total] -ge [$TargetAC.Total]|Hit
--&BlahBlah
--+Miss!|
--^Final|
--:Fumble|
--/BlahBlah
--+Fumble!|
--^Final|
--:Hit|
--=BlahBlah
--+Hit!|
--^Final|
--:Crit|
--/| BlahBlah
--+Critical Hit!|
--^Final|
--:Final|
}}