Ryan S. said:
Hey, I found this to get pixels to work with roll20. https://github.com/GameWithPixels/PixelsRoll20ChromeExtension The default macro just send a chat message with the name of the die and the number rolled. I am still trying to figure out how to use it to make an attack roll or cast a spell or something but it should just be a matter of figuring out macro commands.
I got it to work. here is an example of a macro using my prismatic whip. This is the macro that gets generated when I roll it from my character sheet.
@{Brylee Shadowrest|wtype}&{template:atkdmg} {{mod=+7}} {{rname=prismatic whip}} {{r1=[[@{Brylee Shadowrest|d20}cs>20 + 1[STR] + 6[PROF]]]}} @{Brylee Shadowrest|rtype}cs>20 + 1[STR] + 6[PROF]]]}} {{attack=1}} {{range=15 foot}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2 + 1[STR] + 4[MOD]]]}} {{dmg1type=}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[4d4+4[CRIT]]]}} {{crit2=[[2d4+4[CRIT]]]}} 0 {{desc=when you strike with this whip it will emanate an additional energy either red orange yellow green blue or violet. the extra energy will be discharged in to the target for 1d6 damage Red is fire orange is acid, yellow is lightning green is poison blue is cold and violet blinds subject until end of next turn but no additional damage. +1 magical weapon requires attunement. Roll 1d6 for color and 1d6 for additional damage.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Brylee Shadowrest|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Brylee Shadowrest|global_damage_mod_type}}} ammo= @{Brylee Shadowrest|charname_output}
we really only need to look at 1 line of code: {{r1=[[@{Brylee Shadowrest|d20}cs>20 + 1[STR] + 6[PROF]]]}} @{Brylee Shadowrest|rtype}cs>20 + 1[STR] + 6[PROF]]]}}
this is the code for our roll. all we need to do is replace @{Brylee Shadowrest|d20}cs>20 with #face_value. It should look like this
{{r1=[[#face_value + 1[STR] + 6[PROF]]]}} @{Brylee Shadowrest|rtype}cs>20 + 1[STR] + 6[PROF]]]}}
I left the message of the dice name and value at the top like default and added in the macro below. the whole macro looks like this:
Pixel #pixel_name rolled a #face_value
@{Brylee Shadowrest|wtype}&{template:atkdmg} {{mod=+7}} {{rname=prismatic whip}} {{r1=[[#face_value + 1[STR] + 6[PROF]]]}} @{Brylee Shadowrest|rtype}cs>20 + 1[STR] + 6[PROF]]]}} {{attack=1}} {{range=15 foot}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2 + 1[STR] + 4[MOD]]]}} {{dmg1type=}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[4d4+4[CRIT]]]}} {{crit2=[[2d4+4[CRIT]]]}} 0 {{desc=when you strike with this whip it will emanate an additional energy either red orange yellow green blue or violet. the extra energy will be discharged in to the target for 1d6 damage Red is fire orange is acid, yellow is lightning green is poison blue is cold and violet blinds subject until end of next turn but no additional damage. +1 magical weapon requires attunement. Roll 1d6 for color and 1d6 for additional damage.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Brylee Shadowrest|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Brylee Shadowrest|global_damage_mod_type}}} ammo= @{Brylee Shadowrest|charname_output}
The only problem is so far it is opening up about 7 or prompts for the roll. I just use the first one and cancel the rest. Not a big issue but I am sure with some more playing around that can be fixed. I hope this helps.