Hello,
thank you for this addition.
I'm trying to link it to my character sheet, I've created a macro with 2 properties (ResultDice(ie 4d6:4:4:4:2) , ColorDice (ie plastic Charcoal)),
but I'm having some trouble.
<!-- Get ID of selected object -->
[h,if(hasImpersonated()): tokenId=getImpersonated();tokenId=getSelected()]
[h,if(listCount(tokenId)!=1): abort(0)]
<!-- It must be a vaid token -->
[h: cLib=startsWith(upper(getName(tokenId)),'LIB:')]
[h,if(cLib==1||getLayer(tokenId)=="OBJECT"||getLayer(tokenId)=="BACKGROUND"): abort(0)]
<!-- Check permission of token -->
[h: cPerm = if(isGM()||isOwner(getPlayerName(), tokenId), 0, 1)]
[h, if(cPerm): abort(0)]
[h: switchToken(tokenId)]
[h: broadcast(rollDO(ResultDice,ColorDice,"1"),"all")]
Sometimes the dice roll appears on the 2 screens,
other times only on the caster screen.
I'd also like to suppress the result in the chat (for example 1:D6:4,2:D6:4,3:D6:4,4:D6:3), and only see my personal display in the chat.
Another problem, when I modify the Example UDF macro, by [h: broadcast(rollDO("2d20+5:15:3,1d6+4
:2", "plastic red,plastic blue", "2"), "all")]
I get this error message in chat
Thanks for your help
PS: I'm not a programmer...