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

DealInit Returns Odd Chat Message

I'm building a Savage Worlds Deadlands Game and every time I use DealInit to deal cards to any token in the turn order it deals the cards fine but returns this message,   (From ):  No Init Edges for: Priest Vallon. It returns this Message regardless of whether I have a Character Sheet setup with an Init Edge or no. If anyone out there has any ideas how i solve this that would be great 
1645057612
Andreas J.
Forum Champion
Sheet Author
Translator
might be related to: <a href="https://app.roll20.net/forum/post/10671107/api-update-turn-order-changes" rel="nofollow">https://app.roll20.net/forum/post/10671107/api-update-turn-order-changes</a>
1645061235
Kurt J.
Pro
API Scripter
I don't use Deal-Init, so this is just a suggestion based on looking at the code in the repo. Adding the following at line 700 might address the problem (though it is not ideal - it will assume you are always playing on the campaign's current player page: turnorder[i]._pageid=Campaign().get('playerpageid'); The surrounding lines would be: (the added line bolded) &nbsp; &nbsp; &nbsp; var nextcard = {}; &nbsp; &nbsp; &nbsp; for (i = 0; i &lt; turnorder.length; i += 1) { turnorder[i]._pageid=Campaign().get('playerpageid'); &nbsp; &nbsp; &nbsp; &nbsp; // if --onlyto is active, we need to selectively execute this loop for only matching names &nbsp; &nbsp; &nbsp; &nbsp; // otherwise execute the loop for every turn order entry -unless dea2chat then execute loop once &nbsp; &nbsp; &nbsp; &nbsp; if ((!onlyToActive) || (onlyToActive &amp;&amp; initEdges[i].name.indexOf(onlyToString) !== -1) || dealToChat) {
Thanks for the responses much appreciated. I Tried your suggestion Kurt but alas it still returns&nbsp;&nbsp; (From ): &nbsp;No Init Edges for: Bill Sutter 1
1645151288
Kurt J.
Pro
API Scripter
I'll set up a deadlands game and see if I can track down what might be causing the problem... Its been ages since I played deadlands though, and that was the Pinnacle version :)
Thanks Kurt I'm using the Savage Worlds Tabbed Character Sheet if that's any help
1645305115
Pat
Pro
API Scripter
Hi Shaun, I'm the author of the script.&nbsp; It's just a message to the GM to let you know that a token has no special init edges.&nbsp; I found that was safest just to let you know what the script was finding in case you forgot to set up the InitEdges attribute. How would you like it to behave?
1645310611
Kurt J.
Pro
API Scripter
Pat said: Hi Shaun, I'm the author of the script.&nbsp; It's just a message to the GM to let you know that a token has no special init edges.&nbsp; I found that was safest just to let you know what the script was finding in case you forgot to set up the InitEdges attribute. How would you like it to behave? That's good to hear, as that was the impression I was getting from reading the code :)
Ok thanks I didn't realise that. Bit annoying that its returning the message in chat for all selected tokens in the turn order regardless of whether they have Initiative Edges or not, but as I'm the only one seeing them I can live with it.&nbsp; &nbsp;
1648917911
Pat
Pro
API Scripter
Shaun, latest version of Deal Init in the one click install now has a "--quiet" switch to reduce the chat messaging to to just those tokens with init edges.&nbsp;
Thanks Pat that helps