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

Bubble Icon Marker API script???

1418434885
PrincessFairy
Marketplace Creator
I am trying to add two things, one a image over each of the 3 bubbles on top to display what each marker means but my skills in API are very limited and I don't know how to do so. Second I also want to be able to add a stat block beside the character to show AC or items from character sheet. Here a photo picture of something I am trying to accomplish. Any script that can help me do this would be great. Thanks.
1418435345
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
<a href="https://app.roll20.net/forum/post/1397909/script-dungeon-buddies-inspired-speech-balloons#post-1397909" rel="nofollow">https://app.roll20.net/forum/post/1397909/script-dungeon-buddies-inspired-speech-balloons#post-1397909</a>
1418435529
The Aaron
Roll20 Production Team
API Scripter
Stephen beat me on the stats. The icons won't be satisfactorily possible because the bubbles are scaled based on zoom, but the API doesn't have access to the zoom level.
1418435755
PrincessFairy
Marketplace Creator
Thats great and all but I am still not sure how it comes together. What images I need for static text like AC to be displayed.
1418438509
The Aaron
Roll20 Production Team
API Scripter
The Dragon said: Thats great and all but I am still not sure how it comes together. What images I need for static text like AC to be displayed. Assuming you're talking about the stat bubbles. The first post talked about the technique.
1418439153
PrincessFairy
Marketplace Creator
Not to sound completely dumb, but when it comes to API I have practically no experience, and basically been coping and pasting to API and minor adjustments of a few things to work. Unless I have the script I can't add random details in there. So basically what I got out of that was "!makebubble " + some text.....text will be word wrapped and sized. "!makebubble --show|" + macro stuff + "~" for space + "::" for new line...macro text will not be word wrapped (28 characters wide by default, and height based on number of new lines.) "!makebubble --show|•STR|@{selected|Strength}~~~•AGL|@{selected|Agility}~~~•STM|@{selected|Stamina}::•PER|~@{selected|Personality}~~~•INT|~@{selected|Intelligence}" So is that how the script is written? it doesn't even display target image, so I am clueless.
1418440633
The Aaron
Roll20 Production Team
API Scripter
The first post talks about how it works and was a preview. You have to scroll down a bit to the script. Here it is: <a href="https://app.roll20.net/forum/post/1397909/#post-1402934" rel="nofollow">https://app.roll20.net/forum/post/1397909/#post-1402934</a>
1418520159
PrincessFairy
Marketplace Creator
Ok so I installed graphics, and added script to API but for some reason I don't see any text or information am I do something wrong?
1418520717

Edited 1418520764
PrincessFairy
Marketplace Creator
So apparently it sees the script but is returning this information in picture. No character was found for 'selected'
1418523827
The Aaron
Roll20 Production Team
API Scripter
What was your command? Probably it is referencing an attribute that is expected to be on a character, and your token doesn't represent a character or the character doesn't have the expected attributes. Messages like that that are from the client, not the API. You can take the ! off the front of an API command and see how the arguments would be expanded. If you do that in this case, you'll see the same errors, which will confirm it is not an API problem.
1418525817
PrincessFairy
Marketplace Creator
"!makebubble --show|•STR|@{selected|Strength}~~~•AGL|@{selected|Agility}~~~•STM|@{selected|Stamina}::•PER|~@{selected|Personality}~~~•INT|~@{selected|Intelligence}" That command
1418526216
PrincessFairy
Marketplace Creator
Alright Great news I figured out my problem, that little " symbol infront of the macro. However, there is another problem with this. I need the information to remain next to the player and follow the character. Second it not pulling the information from the pathfinder character sheet. Not sure how to fix that. Master Aaron please help. :)
1418530926
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
There is a lot wrong with this script in its present form. Its really just a notation at this point. I would suggest playing around with macros in general and then the power card script. If the speech balloon script (or some variation of it) every get's taken further it will likely be based on macros and some syntax similar to power card script.
1418581269
The Aaron
Roll20 Production Team
API Scripter
What you have now is a macro problem, not an API problem. Your characters don't have attributes named Strength, Agility, Stamina, Personality, Intelligence. The names of the attributes vary depending on what character sheet you are using. They might be STR or str_mod or anything else. You have to check either the Attribute list or the character sheet to find the names. Some charactersheets have a popup hint that tells you the name (I think Pathfinder's does) others you have to look at the HTML. If you see attr_Str, you know the attribute is named Str.