Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

clevett's Shadowrun 5e Sheet: No Init?

1608735231

Edited 1608737972
Init seems to do everything it's supposed to with this sheet EXCEPT actually populate the init table. As near as I can tell, I'm following the instructions on the api perfectly. Characters represent a sheet. !sr5 --linkToken has the tokens set up. I added two token markers (matrix and astral). Init counter is in place with !sr5 --initCounter. !sr5 --rollInit does roll initiative for all selected tokens and I do see positive feedback in the chat window, but otherwise nothing happens. My init table remains empty. Is this known broken? I haven't seen anyone mention it.
1608737075

Edited 1608737164
Andreas J.
Forum Champion
Sheet Author
Translator
Do you remember to have the tokens selected? Or does it give an error message when running the command without having tokens selected? (haven't used the sheet or API, not familiar with it)
The tokens are selected. It seems to be rolling init:   But my init tracker remains empty:
1608850075

Edited 1608850364
I've dug a bit deeper, and I'm now very confused at how this code is meant to operate. Here's the exception I get when attempting to roll for init: "processResults: TypeError: Cannot read property 'slice' of undefined" And here's where that happens:   processResults = results => {     try {       let array = [];       //iterate through the msg.inlinerolls data contained in results       results.forEach(roll =>{         //find the tokenID for each element         const tokenID = roll['expression'].split(' [')[1].slice(0, -1);  It's choking because this is what I found inside roll: {     "expression": "10+1d6cs0cf0",     "results": {         "resultType": "sum",         "rolls": [             {                 "expr": "10+",                 "type": "M"             },             {                 "dice": 1,                 "mods": {                     "customCrit": [                         {                             "comp": "==",                             "point": 0                         }                     ],                     "customFumble": [                         {                             "comp": "==",                             "point": 0                         }                     ]                 },                 "results": [                     {                         "v": 2                     }                 ],                 "sides": 6,                 "type": "R"             }         ],         "total": 12,         "type": "V"     },     "rollid": "-MPLldvCfg7U6ftmJCR1",     "signature": "48ec0ea8c57e2b65507ac79445d0278684644144eaca276eccc20add1c0481e79918245331f6a206be2bde764292a49d8ba923604b327e433d1eef1ce4f6b722" } I feel as though I must be doing something wrong. Is there some setting that would turn 'expression' into the sort of object the code seems to be anticipating? Barring that, is there enough data in here for me to somehow pivot to the tokenid?