This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on('ready', async function(){ | |
'use strict'; | |
var diceResults = await diceAction(8,7,true); | |
var actionResult = diceResults.RollResult; | |
var damage = diceResults.DamageResult; | |
sendChat("","New Result"); | |
sendChat("","Action Result: "+actionResult); | |
sendChat("","Damage Result: "+damage); | |
function async diceAction(nDice,targetNumber,damageFlag){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map_coordinates = function(obj){ | |
var g,l,t,s,v,h,rv, | |
//size = 91.14378277661477, | |
//side = 50, | |
left_h = 46.48512749037782, | |
top_h = 39.8443949917523, | |
left_step_h = 69.585127490378, | |
top_step_h = 39.84439499, | |
left_v = 37.5992809922301, | |
top_v = 43.8658278242683, |