Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
The VTT and Roll20 Characters should be back online; if you continue to experience issues, try reloading.
Create a free account

Operating strings and RollID - Power Cards

1595055691

Edited 1595056312
Hi, everyone. I'm from Brazil, so please forgive my english. After decades, me and my friends are playing a D&D 3.5E custom sheet campaing (because we stopped playing 20 years ago and that was the system we used to play). In our game we use a diferent kind of critical damage. When a player rolls a 20, that player rolls a plus d6 (or table, in Roll20) and the enemy suffers a consequence acording result of dice. For example, 1 = Maximum Damage, 2 = Dobble Damage... So, I want to create a macro using Power Cards that allow me to attack, check if the player hits or misses and, if the attack base = 20, roll the table, put the result in a RollID and check this result for a especial damage. This is my macro: !power {{ --charid|@{character_id} --target_list|@{target|token_id} --emote|**@{selected|token_name} attacks *@{target|token_name}*** --bgcolor|#702082 --orowbg|#FFFFFF --erowbg|#EEEEEE --titlefontshadow|none --name|Weapon:***Hands*** --leftsub|Dano: **Concussion** --rightsub|Range: **1,5m** --Attack:|[[ [$Atk] 1d20+11 ]] vs AC @{target|AC} --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Hits|and takes [[ [$Dmg] 1d6+10 ]] damage --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^Dmg] _show|all --?? $Atk >= @{target|AC} AND $Atk.base == 20 ?? CRITICAL SUCCESS!!!|[[ [$CritSuc] 1t[Critical-Success] ]] --?? $Atk < @{target|AC} ?? Misses UP TO THIS LINE THE MACRO WORKS PERFECTLY. WHEN I ADD THE LINES BELOW THE SYSTEM RETURNS ERROR. --?? $Atk.base == 20 AND $CritSuc == "Max Damage" ?? Critical Damage:|[[ [$CritMax] 16 ]] --?? $Atk.base == 20 AND $CritSuc == "Max Damage" ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^CritMax] _show|all --?? $Atk.base == 20 AND $CritSuc == "Dobble Damage" ?? Critical Damage:|[[ [$CritDbl] [^Dmg]*2 ]] --?? $Atk.base == 20 AND $CritSuc == "Dobble Damage" ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^CritDbl] _show|all --?? $Atk.base == 20 AND $CritSuc == "Triple Damage" ?? Critical Damage:|[[ [$CritTpl] [^Dmg]*3 ]] --?? $Atk.base == 20 AND $CritSuc == "Triple Damage" ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^CritTpl] _show|all --?? $Atk.base == 20 AND $CritSuc == "Knockout" OR $CritSuc == "Sever Limb" ?? Critical Damage:|[[ [$CritDmg] [^Dmg] ]] --?? $Atk.base == 20 AND $CritSuc == "Knockout" OR $CritSuc == "Sever Limb" ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^CritDmg] _show|all --?? $Atk.base == 20 AND $CritSuc == "Death" ?? Critical Damage:|[[ [$CritDth] [@{target|HP}]+10 ]] --?? $Atk.base == 20 AND $CritSuc == "Death" ?? alterbar|_target|@{target|token_id} _bar|3 _amount|-[^CritDth] _show|all }} This is the result if I don't insert the special critical damage in the macro. And this is the error that Roll20 returns when I insert the special critical damage. What am I doing wrong?
1595058191
GiGs
Pro
Sheet Author
API Scripter
Power Cards has its own thread. It's best to ask questions there, as most of us on the forums dont use it so cant help, but people reading that thread will be very familiar with the syntax. 
I will. Thanks!!!