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 .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

PowerCards 3 (Thread 2)

1433909217

Edited 1433909239
The Aaron
Pro
API Scripter
As long as it's just a matter of applying it to everything in the inline roll, it shouldn't be a problem. I'll try to look at it in the morning.
Thanks Aaron. :) Though the script shouldn't be crashing.
1433910143

Edited 1433910289
vÍnce
Pro
Sheet Author
Remember that my sole purpose in life is to break scripts. :-) This is the console error I get if I leave HR# in my macro For reference, the error message generated was: /home/symbly/www/d20-api-server/node_modules/firebase/lib/firebase-node.js:1 orts, require, module, __filename, __dirname) { function g(a){throw a;}var j=v ^ SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "H" found.
1433910242
vÍnce
Pro
Sheet Author
The Aaron said: As long as it's just a matter of applying it to everything in the inline roll, it shouldn't be a problem. I'll try to look at it in the morning. Inline's only. Thanks Aaron.
Vince said: Remember that my sole purpose in life is to break scripts. :-) This is the console error I get if I leave HR# in my macro For reference, the error message generated was: /home/symbly/www/d20-api-server/node_modules/firebase/lib/firebase-node.js:1 orts, require, module, __filename, __dirname) { function g(a){throw a;}var j=v ^ SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "H" found. Just tried it and I didn't get any crashes or errors... o_0
1433915234
vÍnce
Pro
Sheet Author
Strange. I soon as I remove that bit of code it runs, leave it and I get the error.
You're running the latest version right?
1433923121
Ziechael
Forum Champion
Sheet Author
API Scripter
HoneyBadger said: Trying to sort this out, but it's very hard to do with all the @{attribute} calls. It's better if you create the macro/powercard without all those and just plain dice rolls and numbers... and then start adding in the all the specific stuff after you get the macro working. Great tip, will do this from now on :) Thanks. HoneyBadger said: Here's an updated macro for you Ziechael, that works... there were some issues with yours that I came across as I tested this version. Fumbles and crits were showing up even if the attack was a miss or a regular hit, since your macro was only checking the results from $fbl and $crit. So if you rolled a 17 on $att and a 1 on $fbl and a 20 on $crit... you could have a fumble table result, a hit table result, and crit damage show up all at once. The logic below prevents this by adding the $att check as needed... like $att.base == 1 AND $fbl.base == 1 to only show the fumble table if both rolls were a one. That all actually makes sense, maybe i'm finally getting the hang of this, really appreciate you taking the time to educate a ludite :) Any joy with the centring? ;)
Centering is a pain in the ass. It doesn't work unless it's the only thing on the line, including the tag. So, once I fix what I changed... you'd have to do !tag| ~C Stuff to center ~C. You can't have a tag and centered stuff for some reason on the same line.
Hi HoneyBadger With the chance of me being a bit OT. You previously made the "Character Importer" API for 4E, in that you import the different powers, but one thing isn't added, which is the "Item Abilities", have you experimented with that part? (that is auto adding those item powers and create them as abilities?). Best Regards //L
I don't maintain a subscription to DnD Insider and stopped working on those scripts a long time ago.
1433927040
Ziechael
Forum Champion
Sheet Author
API Scripter
HoneyBadger said: Centering is a pain in the ass. It doesn't work unless it's the only thing on the line, including the tag. So, once I fix what I changed... you'd have to do !tag| ~C Stuff to center ~C. You can't have a tag and centered stuff for some reason on the same line. No problem, thanks for explaining... certainly not a deal breaker =D I promise to leave you alone now...
1433939963
vÍnce
Pro
Sheet Author
HoneyBadger said: You're running the latest version right? Yes. This is on the Dev...
Oh, on dev. That's why. The api inlinerolls object is different on dev right now and I haven't done any investigation into what has changed.
1433949093
vÍnce
Pro
Sheet Author
I thought they were currently synced... ;-( It would be nice to have access to a running log of the differences between the Dev and Production servers.
1433949451
The Aaron
Pro
API Scripter
I have! And it will break power cards. Vince kept me hooked up to his campaign for hours trying to track it down. 2 things are changed with sendChat() and a callback: Items returned in inlinerolls.results are now an array instead of an object. The practical upshot being that the indexes start at 0 instead of 1. This is a good change as it means they behave the same way as inlinerolls.results passed to on('chat:message',...), but will break your script as you assume it starts at 1 and goes up. The order that things appear in the inlinerolls.results array is NOT the order they appear in the message text, but the $# indexes are correct. i.e. "[[1d6]][[1d6]][[1d6]][[1d6]]" might come back as "$[[3]]$[[0]]$[[1]]$[[2]]". Here's some more examples I sent to various people: sendChat('','[[1d2]]',function(ops){ /* ... */ }); ops.inlinerolls is an object in prod, with numeric properties starting at 1: "inlinerolls": { "1": { In dev, it is now an array: "inlinerolls": [ { with numeric indices starting at 0. Something new on the dev server that will likely break some things. Looks like the order of sendChat's inlinerolls is not guaranteed? "$[[0]]$[[1]]$[[4]]$[[2]]$[[6]]$[[3]]$[[5]]", There are at least a couple scripts for which this will break things.
>_<
1433963165
Ziechael
Forum Champion
Sheet Author
API Scripter
I lied, one last pester question, can you use hidden tags/content in conjunction with roll ID's? My testing suggests not: !power {{ --format|attack --emote|@{selected|token_name} strikes from the shadows! --name|Sneak Attack --$weaponchoice|[[ [$weap] ?{ShSw(0), Bow (1), D+1(2), D(3)|0} + 0d0 ]] --?? $weap == 0 ?? !att1|[[1d20 + 5 ]] vs AC }} doesn't seem to work, but as seen so far, i'm a moron =D
1433966611
Gen Kitty
Forum Champion
*patpats HB*
1433983718
vÍnce
Pro
Sheet Author
HoneyBadger said: Oh, on dev. That's why. The api inlinerolls object is different on dev right now and I haven't done any investigation into what has changed. Moved my campaign back to Production, no more crash. Thanks HB. Aaron is graciously working on a script to help change my deprecated HR# to cs> so we can still have some eye candy for crits.
1433989301

Edited 1433989320
Ziechael said: I lied, one last pester question, can you use hidden tags/content in conjunction with roll ID's? My testing suggests not: !power {{ --format|attack --emote|@{selected|token_name} strikes from the shadows! --name|Sneak Attack --$weaponchoice|[[ [$weap] ?{ShSw(0), Bow (1), D+1(2), D(3)|0} + 0d0 ]] --?? $weap == 0 ?? !att1|[[1d20 + 5 ]] vs AC }} doesn't seem to work, but as seen so far, i'm a moron =D No, if you use the $ to hide tag/content, none of the rolls get processed. However, you can hide rolls inside the --title tag right now. I do intend to create a new reserved tag that is just used for hiding dice rolls for id's though.
It actually makes sense that you can't center on the same line as a tag. Without working some DIV layer CSS voodoo, it won't likely be happening. I was able to get the first line of centered text on with the tag, by adding another DIV layer, but there were other issues.
SeanOG said: It actually makes sense that you can't center on the same line as a tag. Without working some DIV layer CSS voodoo, it won't likely be happening. I was able to get the first line of centered text on with the tag, by adding another DIV layer, but there were other issues. Yeah. I'll add that as a note or something... that centered content only works with hidden tags.
1434005956
Ziechael
Forum Champion
Sheet Author
API Scripter
HoneyBadger said: Ziechael said: I lied, one last pester question, can you use hidden tags/content in conjunction with roll ID's? My testing suggests not: removed to save space doesn't seem to work, but as seen so far, i'm a moron =D No, if you use the $ to hide tag/content, none of the rolls get processed. However, you can hide rolls inside the --title tag right now. I do intend to create a new reserved tag that is just used for hiding dice rolls for id's though. That's what i thought, will play around with tag rolls :) Thanks as always HB
1434009357

Edited 1434009583
First off, LOVE powercards. Finally figured out how to use them (though my methods are probably very sloppy) for my Shadowrun 5E game and everything was going great until a macro i was working on killed the script to a point where reloading it doesn't help. I was testing the macro in pieces to make sure the individual components would function but I got cocky after a while and tried to switch the Firearms/Automatics skill inline rolls from Binary role query switches to grouped kh1 functions inside the big macro instead of testing the functionality seperately. For reference, the error message generated was: /home/symbly/www/d20-api-server/node_modules/firebase/lib/firebase-node.js:1 orts, require, module, __filename, __dirname) { function g(a){throw a;}var j=v ^ Could not determine result type of: [{"type":"M","expr":"4-0+0+0-(0*4)+(2*0)+4+0"},{"type":"C","text":")d6>5k5 "}] Macro I was working on: !power {{ --tokenid| @{selected|token_id} --emote| @{selected|name} fires @{selected|PPronoun} AK 97 at **@{target|name}**! --format|atwill --name|AK97 --leftsub|Agility + Automatics or Firearms --rightsub| ?{number of bullets|1} bullets --title|If the Armorcheck value is positive after subtracting net hits, the damage is stun. Add net hits to DV to determine modified DV. --Attack: | [[[[{@{selected|automatics}, @{selected|firearms-group}}kh1]] - [[[[floor(@{selected|bar1}/3)]] + [[floor(@{selected|bar2}/3)]]]] + [[{(1 + [[{@{selected|DominantArmAugmentStrength}, @{selected|NonDominantArmAugmentStrength}}dh1]] + ceil(@{selected|strength}/3) - ?{number of bullets|1}), 0}dh1]] + [[{@{selected|DominantArmAugmentAgility}, @{selected|NonDominantArmAugmentAgility}}dh1]] - (?{Called Shot?|0} * 4) + (2 * ?{Has Specialization?|0}) + @{selected|agility} + ?{Attack Modifier|0})d6>5k[[5 + ?{Accuracy Bonus from Take Aim|0}]] ]] VS **@{target|name}**'s dodge! [[(@{target|reaction} + @{target|intuition} - [[[[floor(@{target|bar1}/3)]] + [[floor(@{target|bar2}/3)]]]] - (?{number of bullets|1} -1) +?{dodge modifier|0})d6>5]] --Weapon DV|[[(10 + (?{Hollow Points?|0} * 1) + (?{Targeting Vital?|0} * 2) + (?{Explosive Ammo?|0} * 1))]]P --Armorcheck: |[[((@{target|bar3} - 2) + (?{Hollow Points?|0} * 2) - (?{APDS Ammo?|0} * 4) - (?{Explosive Ammo?|0} * 1) - (10 + (?{Targeting Vital?|0} * 4) + (?{Hollow Points?|0} * 1) + (?{Explosive Ammo?|0} * 1)))]] --Target Damage Resist:|[[(@{target|body} + [[{((@{target|bar3} -2 + (?{Hollow Points?|0} * 2) - (?{APDS Ammo?|0} * 4) - (?{Explosive Ammo?|0} * 1)) * ?{Shooting at center mass?|1}), 0}kh1]])d6>5]] --Recoil penalty to next shot|[[{(1 + [[{@{selected|DominantArmAugmentStrength}, @{selected|NonDominantArmAugmentStrength}}dh1]] + ceil(@{selected|strength}/3) - ?{number of bullets|1}), 0}dh1]] --Bullets remaining| [[?{bullets currently in magazine|38} - ?{number of bullets|1}]] }} I'm sure there are better ways to handle this than what i'm doing but i'm still getting the hang of larger more complex macros. Anyway, love the script, any help is greatly appreciated.
As I've said plenty of times before... there is absolutely no way for me to troubleshoot those kinds of macro's with billions of @{attribute} calls. Best thing you can do is find the one that is causing problems and break it down piece by piece with numbers only until you find what is causing the root of the problem.
1434041785

Edited 1434045980
Ziechael
Forum Champion
Sheet Author
API Scripter
HB, what have i done... built a lovely complex (totally not pastable due to not wanting to annoy you) power card for dual wield with selective weaponry and got this console error? evalmachine.<anonymous>:912 fined) ? 0 : x[0].inlinerolls[Roll].results.rolls[RollCount + 1].results[0].v; ^ TypeError: Cannot read property 'v' of undefined at evalmachine.<anonymous>:912:176 at Array.forEach (native) at evalmachine.<anonymous>:902:39 at checkFinishedOps ( Restarting sandbox due to script changes... Spinning up new sandbox...
1434054342

Edited 1434054446
Somehow you managed to look for something that should exist, but doesn't anyway... post your macro, but strip it of any attribute calls. All I'm looking for are spots where you are trying to assign a roll to an id.
1434060199

Edited 1434105322
Ziechael
Forum Champion
Sheet Author
API Scripter
HoneyBadger said: Somehow you managed to look for something that should exist, but doesn't anyway... post your macro, but strip it of any attribute calls. All I'm looking for are spots where you are trying to assign a roll to an id. Ok thanks, armed with that info i'll attempt to debug it myself... failing that i'll post it but stripped down (still gonna be a beast though, its based on your crossbow attack from before... and then some ;) ) edit: found it, having copied and pasted the conditionals on my attack card i'd forgotten/missed a couple of the id's that had changed in the base rolls!! school boy stuff but was blind to it despite checking several times!!! Works like a charm now... well, works like a conditional really since i aren't using charms ;)
Has centered text formatting (~C Text ~C) been taken out? It seems to have recently stopped working in all of my macros after my last update. Example: !power {{ --txcolor|{@txcolor} --bgcolor|@{bgcolor} --name|Move Silently --leftsub|At-Will --rightsub|Free Action --|~C [[1d20r<1+@{Move Silently}]] ~C }}
Centered text does not work right now. Been busy with work and have not had time to fix it.
1434205477
vÍnce
Pro
Sheet Author
HoneyBadger said: Centered text does not work right now. Been busy with work and have not had time to fix it. Hey HB, any word on centering text? ;-P We love you.
1434264279

Edited 1434264984
To fix center text, change line 697 to either: .replace(/\~\C(.*?)\~\C/g, "<div style='text-align: center;'>$1</div><div style='clear: both;'></div>") or .replace(/\~\C(.*?)\~\C/g, "<span style='text-align: center; display: block;'>$1</span>") Both will fix center. Justify will also not work unless you do the same on line 695 with: .replace(/\~\J(.*?)\~\J/g, "<div style='text-align: justify;'>$1</div><div style='clear: both;'></div>") or .replace(/\~\J(.*?)\~\J/g, "<span style='text-align: justify; display: block;'>$1</span>")
That definitely worked (I used the second version). Thanks :)
I don't know if anyone else is having this problem, but Powercards seems to be rolling twice each time I attempt to roll once. I'm not sure if it's my macro: !power {{ --format|Skill --name|Stealth Roll --leftsub|Talent --rightsub|Normal Action --Roll:|[[ 1d20cs<@{selected|Agi}cf>@{selected|Agi}+1 ]] }} It seems to do this for every Powercard macro I put in. Here's the output (if it matters):
1434368070

Edited 1434368081
Sometimes there is a hiccup in the API server, and that happens. It's not indicative or inherent to PowerCards itself.
1434373911

Edited 1434375171
Loving the script HB, thanks again. Ran across something I have not seen posted anywhere and thought I would share. Not necessarily a bug, but a limitation of the system. If you use the following everything works fine: --?? [[ ?{DivineSmiteLevels} ]] > 0 ?? Divine Smite Damage| [[ ?{DivineSmiteLevels}d8 + 1d8 ]] But if I attempt to capture that value into a variable as such: --?? [[ ?{DivineSmiteLevels} ]] > 0 ?? Divine Smite Damage| [[ [$DSL] ?{DivineSmiteLevels}d8 + 1d8 ]] It will only work if the conditional evaluates to true. Otherwise it crashes. I assume it is because it is trying to parse out all possible variables and this one would not have an assigned value when the conditional evaluates to false. Or because it is trying to use 0d8 which the system does not like at all. Like I said, not really a bug but something I noticed. An easy work around is to change the line a tad and have a second line like this: --?? [[ ?{DivineSmiteLevels} ]] < 1 ?? $Divine Smite Damage| [[ [$DSL] (?{DivineSmiteLevels}+1)d8 ]] that hides the result but still calculates it and eliminates the 0d8 from happening. Just wanted to share that, and again, loving the PowerCards.
1434375990

Edited 1434376127
I believe it is because 0dX rolls don't actually create an inline roll in the message object that is sent to the API. I should be able to capture that and default it to zero. Will try to get to that today or tomorrow, but can't promise anything. Gotta do some scouting for reception locations with my fiancee. Also, why are you putting ?{DivineSmiteLevel} in an inline roll? Shouldn't need to do that anymore.
HoneyBadger said: I believe it is because 0dX rolls don't actually create an inline roll in the message object that is sent to the API. I should be able to capture that and default it to zero. Will try to get to that today or tomorrow, but can't promise anything. Gotta do some scouting for reception locations with my fiancee. Also, why are you putting ?{DivineSmiteLevel} in an inline roll? Shouldn't need to do that anymore. Usually I put numbers like that in inline rolls for the look/style of it. Or did you mean in the conditional? If that is not needed then I was unaware, good to know.
Yeah, in the conditional. You should be able to just compare number to number.
1434416891

Edited 1434417042
Update! June 15th, 2015 ~ 9:00 pm eastern Version: 3.2.2 Bugfix: Center and Justify options in row content should work now. Due to css/javascript limitations you cannot have a tag followed by centered or justified content on the same line. You will need to hide the tag using an exclamation mark and then use inline formatting to create a fake tag in the content. Something like --!HiddenTag|~J **Fake Tag:** Justified text. ~J Bugfix: Zeroed die rolls like 0d0 or 0d1 and such should not crash the script now. The roll will default to zero, but include any modifiers. For example, 0d0 + 1 will show up as one instead of zero.
Hello guys. Not sure where to post this question. So if this is in the wrong place, please help direct me where to go. I have been playing 5e on roll 20 and making macros in a somewhat custom fashion by using the class action and spell buttons from the my character sheet, and then hitting the up arrow on my keyboard to see what commands the system put into the chat log. Doing so I have created quite a few different things, and discovered how to do many things. I would like to know if there is a list of the 5e template commands anywhere, and any tips on creating new ones. I am currently trying to make a weapon macro for my Glaive weapon, and incorporate automated Two Handed Fighting bonus to the damage rolls . I also want to add a thing for hunters mark for that extra damage. Right now the macro looks like this - @{Unknown Paladin|output_option} &{template:5eDefault} {{weapon=1}} {{character_name=@{Unknown Paladin|character_name}}} @{Unknown Paladin|show_character_name} {{title=Glaive}} {{subheader=Melee - 10}} {{attack=[[d20 + 0 + @{Unknown Paladin|PB} + (@{Unknown Paladin|global_melee_attack_bonus})]]}} {{attackadv=[[d20 + 0 + @{Unknown Paladin|PB} + (@{Unknown Paladin|global_melee_attack_bonus})]]}} {{damage= [[1d8]]}} {{attackcancrit=1}} {{critdamage=Add [[1d8]] damage}} Any tips on how to modify the subheaders or really any part of it would be helpfull, or other peoples macros that I can copy paste and replace the text I would like to utilize would be fantastic. Here is an example of a 'test' spell I used from the sheet to find the different working parts and just used trial and error to modify it. @{Unknown Paladin|output_option} &{template:5eDefault} {{spell=1}} {{character_name=@{Unknown Paladin|character_name}}} @{Unknown Paladin|show_character_name} {{title=test x}} {{spellschool=Conjuration}} {{spellfriendlylevel=Level 9}} 0 0 {{spellshowinfoblock=1}} {{spellshowdesc=1}} {{spelldescription=description txt}} {{spellshowhigherlvl=1}} {{spellhigherlevel=higherlvl txt}} {{spellshowattack=1}} {{spellattack=[[d20 + 0 + @{Unknown Paladin|PB} + (@{Unknown Paladin|global_spell_attack_bonus})]]}} {{spellattackadv=[[d20 + 0 + @{Unknown Paladin|PB} + (@{Unknown Paladin|global_spell_attack_bonus})]]}} {{spellshowsavethrow=1}} {{spellsavedc=[[@{Unknown Paladin|paladin_spell_dc} + 0]]}} {{spellsavestat=Str}} {{spellsavesuccess=save txt}} {{spellshowhealing=1}} {{spellhealing=[[1d6 + @{Unknown Paladin|charisma_mod}]]}} {{spellshowdamage=1}} {{spelldamage=[[d8 + @{Unknown Paladin|strength_mod} + 0 + (@{Unknown Paladin|global_spell_damage_bonus}) + 0d0]] slashing}} {{spellcancrit=1}} {{spellcritdamage=Add [[d8]] damage}} {{spellshoweffects=1}} {{spelleffect=effects txt}} {{spellcasttime=xxx}} {{spellduration=xxx}} {{target=xxx}} {{range=xxx}} {{spellgainedfrom=Not Set}} {{spellcomponents=xxx}} @{Unknown Paladin|classactionspellcast} TL;DR: I want to find more info on how to manipulate the &{template:5eDefault} card things. I have been using {{spell=1}}, {{weapon=1}}, {{ability=1}} and {{classaction=1}} to get the different color cards. Any info on how to manipulate any or all of these cards would be GREATLY apreciated. Thank you very much.
Yeah, this is the wrong thread. This is about the powercard API script... not the 5e Character Sheet templates.
1434459603
Ziechael
Forum Champion
Sheet Author
API Scripter
Sorry, me again... I don't want to post the code as i really don't want to upset you but in your expert opinion what could cause the following output: Everything works in isolation but when put together it wigs out in different ways each time. I've fixed a couple of bugs since this screen shot but it was the most extreme example and hasn't been resolved by my debugging. Just curious if you know of a reason for it happening, the outputs failing to display are rollable table calls ($$[[1]], $$[[3]] and $$[[5]]) and the others are damage rolls which are formatted similar to the ones that have outputted correctly. Thanks yet again for any help! (and for fixing the centring :) )
You'll need to post part of that macro for the damage at least. Can't figure that one out otherwise.
1434533452
Ziechael
Forum Champion
Sheet Author
API Scripter
Hi HB, here is the card (stripped of all calls except for the targets AC which i'm thinking of replacing with a --title|[[ [$tac] @{target|armorclass}*1d1 ]] to allow me to use it throughout easily. It seems to fail even without the attribute calls in the above way from the output of Claw 2+... I've bolded all of the roll ID's for your ease of viewing as i know this is a beast to look at! !power {{ --emote|@{selected|token_name} charges and pounces at @{target|token_name}. --format|attack --name|Pounce --Bite|[[ [$att1] 1d20 + 8 ]] vs [[@{target|armorclass} ]] AC --?? $att1.base == 1 ?? !fumble|[[ 1t[misstable] ]] ^^ **Fumble Check:** [[ [$fbl1] 1d20 ]] --?? $att1.base == 1 AND $fbl1.base == 1 ?? !fumbled|[[ 1t[Fumble] ]] --?? $att1.base <> 1 AND $att1.total < [[@{target|armorclass} ]] ?? !miss|[[ 1t[misstable] ]] --?? $att1.total >= [[@{target|armorclass} ]] OR $att1.base == 20 ?? !hit|[[ 1t[hittable] ]] ^^ [[1d6]] damage! --?? $att1.total >= [[@{target|armorclass} ]] OR $att1.base == 20 ?? Grapple?|[[ [$grap] 1d20]] vs [[ [$grap2] 1d20]] --?? $att1.total >= [[@{target|armorclass} ]] AND $grap < $grap2 ?? !fail|The grapple fails --?? $att1.total >= [[@{target|armorclass} ]] AND $grap >= $grap2 ?? !success|The grapple succeeds --?? $att1.base >= 19 ?? Critical Threat:| [[ [$crit1] 1d20 + 8 ]] --?? $att1.base >= 19 AND $crit1.total >= [[@{target|armorclass} ]] ?? Critical Hit:|Additional [[ 1d6 ]] damage! --Claw 1|[[ [$att2] 1d20 + 4 ]] vs [[@{target|armorclass} ]] AC --?? $att2.base == 1 ?? !fumble|[[ 1t[misstable] ]] ^^ **Fumble Check:** [[ [$fbl2] 1d20 ]] --?? $att2.base == 1 AND $fbl2.base == 1 ?? !fumbled|[[ 1t[Fumble] ]] --?? $att2.base <> 1 AND $att2.total < [[@{target|armorclass} ]] ?? !miss|[[ 1t[misstable] ]] --?? $att2.total >= [[@{target|armorclass} ]] OR $att2.base == 20 ?? !hit|[[ 1t[hittable] ]] ^^ [[1d4]] damage! --?? $att2.base >= 19 ?? Critical Threat:| [[ [$crit2] 1d20 + 4 ]] --?? $att2.base >= 19 AND $crit2.total >= [[@{target|armorclass} ]] ?? Critical Hit:|Additional [[ 1d4 ]] damage! --Claw 2|[[ [$att3] 1d20 + 4 ]] vs [[@{target|armorclass} ]] AC --?? $att3.base == 1 ?? !fumble|[[ 1t[misstable] ]] ^^ **Fumble Check:** [[ [$fbl3] 1d20 ]] --?? $att3.base == 1 AND $fbl3.base == 1 ?? !fumbled|[[ 1t[Fumble] ]] --?? $att3.base <> 1 AND $att3.total < [[@{target|armorclass} ]] ?? !miss|[[ 1t[misstable] ]] --?? $att3.total >= [[@{target|armorclass} ]] OR $att3.base == 20 ?? !hit|[[ 1t[hittable] ]] ^^ [[1d4]] damage! --?? $att3.base >= 19 ?? Critical Threat:| [[ [$crit3] 1d20 + 4 ]] --?? $att3.base >= 19 AND $crit3.total >= [[@{target|armorclass} ]] ?? Critical Hit:|Additional [[ 1d4 ]] damage! --Rake 1|[[ [$att4] 1d20 + 4 ]] vs [[@{target|armorclass} ]] AC --?? $att4.base == 1 ?? !fumble|[[ 1t[misstable] ]] ^^ **Fumble Check:** [[ [$fbl4] 1d20 ]] --?? $att4.base == 1 AND $fbl4.base == 1 ?? !fumbled|[[ 1t[Fumble] ]] --?? $att4.base <> 1 AND $att4.total < [[@{target|armorclass} ]] ?? !miss|[[ 1t[misstable] ]] --?? $att4.total >= [[@{target|armorclass} ]] OR $att4.base == 20 ?? !hit|[[ 1t[hittable] ]] ^^ [[1d4]] damage! --?? $att4.base >= 19 ?? Critical Threat:| [[ [$crit4] 1d20 + 4 ]] --?? $att4.base >= 19 AND $crit4.total >= [[@{target|armorclass} ]] ?? Critical Hit:|Additional [[ 1d4 ]] damage! --Rake 2|[[ [$att5] 1d20 + 4 ]] vs [[@{target|armorclass} ]] AC --?? $att5.base == 1 ?? !fumble|[[ 1t[misstable] ]] ^^ **Fumble Check:** [[ [$fbl5] 1d20 ]] --?? $att5.base == 1 AND $fbl5.base == 1 ?? !fumbled|[[ 1t[Fumble] ]] --?? $att5.base <> 1 AND $att5.total < [[@{target|armorclass} ]] ?? !miss|[[ 1t[misstable] ]] --?? $att5.total >= [[@{target|armorclass} ]] OR $att5.base == 20 ?? !hit|[[ 1t[hittable] ]] ^^ [[1d4]] damage! --?? $att5.base >= 19 ?? Critical Threat:| [[ [$crit5] 1d20 + 4 ]] --?? $att5.base >= 19 AND $crit5.total >= [[@{target|armorclass} ]] ?? Critical Hit:|Additional [[ 1d4 ]] damage! }} I hope that isn't too painful to look at! Thanks as always =D
1434553002

Edited 1434553020
It's because you're using !hit multiple times. You can't use the same tag name. You need to do something like !BiteHit, !Claw1Hit, !Claw2Hit, !Rake1Hit, !Rake2Hit. Same applies to all the other tags.
1434554456
Ziechael
Forum Champion
Sheet Author
API Scripter
HoneyBadger said: It's because you're using !hit multiple times. You can't use the same tag name. You need to do something like !BiteHit, !Claw1Hit, !Claw2Hit, !Rake1Hit, !Rake2Hit. Same applies to all the other tags. Ofcourse it is! How did i miss that, it's a problem i'd even discussed with you at some point in the past... my humblest apologies for wasting your time yet again ;)
1434558401
DK Heinrich
Marketplace Creator
Sheet Author
can the highlight color of a roll result box be changed based on the result (other than the base critical options) and can that color be set? example: the game I am working with gives you a critical effect on a roll that totals 20 or higher and is a success. I would like to have that pop green (or another color) when its 20+ as opposed to a 20 on the die itself.
DK Heinrich said: can the highlight color of a roll result box be changed based on the result (other than the base critical options) and can that color be set? example: the game I am working with gives you a critical effect on a roll that totals 20 or higher and is a success. I would like to have that pop green (or another color) when its 20+ as opposed to a 20 on the die itself. All the crit success/fail highlighting is done based on the base value of the die roll and not the total of the whole roll.