Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadowrun 5th Edition API Doesn't Populate Initiative Tracker #1336

Open
Almos80 opened this issue Aug 23, 2021 · 2 comments
Open

Shadowrun 5th Edition API Doesn't Populate Initiative Tracker #1336

Almos80 opened this issue Aug 23, 2021 · 2 comments

Comments

@Almos80
Copy link

Almos80 commented Aug 23, 2021

I'm having trouble with the Shadowrun 5th Edition API. The "!sr5 --rollInit" command doesn't actually send the tokens to the initiative tracker, although it does roll in the chat. The technotes has an entry for 1.2, but I can't see that 1.2 has actually been uploaded. Is there an update missing, or am I missing a step in the process for using the API? The readme implies that this should be plug-and-play, but maybe I've missed something?

https://github.com/Roll20/roll20-api-scripts/tree/master/Shadowrun%205th%20Edition

@Almos80
Copy link
Author

Almos80 commented Sep 2, 2021

I'm also noticing that the script doesn't seem to recognize the 'astral' or 'matrix' token markers, as the readme suggests it should. It always rolls the physical initiative.

@voodoozulu
Copy link

voodoozulu commented Sep 16, 2021

I worked on it for a few hours. I don't know the original intent of the script, they were listening to a message then trying to pull the token _id from the message? Whatever, I couldn't figure it out. Instead I used a message callback. Right now it doesn't populate chat. I'll see if I can get that implemented. You need to custom load this API for it to work. But if you have the old one disabled and load this one it will work just fine.

I've never worked in JS before, and I didn't edit the documentation because I figure this will get fixed by someone who knows what they are doing eventually.

https://pastebin.com/vdEnsvN2

EDIT:
I got messaging working, but it requires libinline library (just install it as you would any API). then past this into a new script. I'm leaving the old one up incase you don't want to download libinline for whatever reason.

https://pastebin.com/8vS8diUB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants