Skip to content

Instantly share code, notes, and snippets.

View Kurohyou's full-sized avatar

Scott Casey Kurohyou

View GitHub Profile
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){
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,