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.