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

is there an update on Bubble Chat?

Reference:&nbsp; <a href="https://app.roll20.net/forum/post/1397909/script-dungeon-buddies-inspired-speech-balloons" rel="nofollow">https://app.roll20.net/forum/post/1397909/script-dungeon-buddies-inspired-speech-balloons</a> no PNG to download, unable to make the script work.
1679689130
Pat
Pro
API Scripter
I thought there were a few variants of bubble-chat, are there not?&nbsp;
if so, I cant find it. I found a few variant of speech bubble but none of them works.
1679689568
Pat
Pro
API Scripter
I was asked if emojibubble worked like that, I never pursued it, but if there's a need for an update or something, I could see about adapting it to take strings from chat or something...&nbsp;
Last fork was this one:&nbsp; <a href="https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af" rel="nofollow">https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af</a> Error I am getting is this: TypeError: pageObject.get is not a function TypeError: pageObject.get is not a function at bustBalloon (apiscript.js:24443:39) at Timeout.checkBubbleDisplay [as _onTimeout] (apiscript.js:24470:21) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) Also, I went into the code, looked for the PNG and found them, downloaded all 3 and named them as bubbleFill, bubbleTail, bubbleBorder
1679690028

Edited 1679690144
Pat
Pro
API Scripter
Ohh looks like TheAaron made a fix three years ago, so it's above my pay grade. I'm a neophyte coder.&nbsp; ...my gut is saying maybe the old page.id notation isn't valid anymore...&nbsp;
yeah, his post and reference for the gist came from:&nbsp; <a href="https://app.roll20.net/forum/post/9599562/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/9599562/slug%7D</a> he stated he fixed it, but still getting an error. Gotta summon @TheAaron
1679690485
The Aaron
Roll20 Production Team
API Scripter
Hmm.. I just tested the version you linked to and it worked for me.&nbsp; You should be able to just drop that in and it will work.
1679690700
Pat
Pro
API Scripter
Hey, Aaron? Did you have the corrected version of Emojibubble? Or is it in the library already?&nbsp;
wasnt working for me. I ended up replacing "pageobject" for "token" in 3 different locations between line 12-15 and now it works for me... go figure. bustBalloon = function(token) { if(state.SpeechBalloon.bubbleShown) { if (typeof(token) != "undefined") { var page = token.get("_id"),
now it broke. it was working. o.O
1679691393

Edited 1679691429
The Aaron
Roll20 Production Team
API Scripter
There's no pageObject in my version:&nbsp;<a href="https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af" rel="nofollow">https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af</a>
1679691522
The Aaron
Roll20 Production Team
API Scripter
Pat said: Hey, Aaron? Did you have the corrected version of Emojibubble? Or is it in the library already?&nbsp; I don't think I know what that is. =D&nbsp; Got a link?
1679691711
Pat
Pro
API Scripter
The Aaron said: Pat said: Hey, Aaron? Did you have the corrected version of Emojibubble? Or is it in the library already?&nbsp; I don't think I know what that is. =D&nbsp; Got a link? Oh, well, there was a memory issue with Emojibubble &nbsp;that I thought you corrected and submitted, with it presuming a default state variable that caused a crash - I can get it from the checked in version, just need to update my gist I think.&nbsp;
The Aaron said: There's no pageObject in my version:&nbsp; <a href="https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af" rel="nofollow">https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af</a> line 12, 14,15
1679693185
The Aaron
Roll20 Production Team
API Scripter
Oh, you're right, I'm blind. =D&nbsp; Let me look deeper...
1679693450

Edited 1679693522
also, is it possible to have the bubble appear on the token but not include it in the text chat? basically what I am doing is, allowing players to speak out of turn during combat once per combat, but they need to type it They can type a paragraph for all i care it doesnt matter. The bubble will appear with their text for only 3 seconds. Once it goes away, it goes away and the message is not also thrown to the chat log.
1679694609
The Aaron
Roll20 Production Team
API Scripter
Ok.&nbsp; I've rewritten / modernized / fixed the copy here:&nbsp; <a href="https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af" rel="nofollow">https://gist.github.com/shdwjk/9cfdaa7efd4bb3dc55474e372f8f87af</a> If you preface the message with --show|, it will only show the bubble, not speak to chat.&nbsp; You can use a macro like this: !makebubble --show|?{Say} To make it easier on your players.
1679695655

Edited 1679695785
ok, no errors but here is the new issue from it if I do "!makebubble&nbsp; If you preface the message with --show|, it will only show the bubble, not speak to chat.&nbsp; You can use a macro like&nbsp; this:" it will show the entire things on the VTT and in the chat. if I do it with the -show| command, it doesnt show up in the chat BUT on the token, it only shows a small portion of it. like 25-30 characters only. to be more specific, its not event grabbing the beginning part. So I inputted this line: "If you preface the message with --show|, it will only show the bubble, not speak to chat.&nbsp; You can use a macro like&nbsp; this:" &nbsp; and what i got back was this: "ll only show the bubble, not "
I am completely fine without the macro --show and just simply remove msg.sent to chat overall if possible please.
1679696935
The Aaron
Roll20 Production Team
API Scripter
It looks like --show does some weird things, it expects encoding like this: !makebubble --show|STR:~18::DEX:~17::CON:~12 Probably easiest for you to just delete the sendChat() on line 168.
Awesome, that worked! thank you. @Pat hey mate, question on another script of yours - EmojiBubble - ever thought of attaching some emoji to sounds? Pouting, sighing, woohoo, laughing, etc. Would be awesome when activating certain emojis, it would trigger a sound effect
1679745680
Pat
Pro
API Scripter
Novercalis said: Awesome, that worked! thank you. @Pat hey mate, question on another script of yours - EmojiBubble - ever thought of attaching some emoji to sounds? Pouting, sighing, woohoo, laughing, etc. Would be awesome when activating certain emojis, it would trigger a sound effect If we could encapsulate audio, or there were common "fonts" of ear-cons (icons but for audio), I'd do that sure :) As it is, I'd have to find a place to upload a library of audio files for ... just about every emoji in the catalog...&nbsp;