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 .
×

Help with Universal Chat Menus for Fabula Ultima

I'm attempting to build chat menus for the fabula ultima community sheet using the Universal Chat Menus script found here: <a href="https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1</a> &nbsp; I managed to get main hand and off-hand weapon swings to work with the "Other Attributes" formatting from the script, however I did need to edit the sheet HTML to assign a name to the Accuracy button. My problem comes from&nbsp;Repeating Section buttons, which I would need to use for magic. I've gotten the chat menu to list off all the spells in the repeating section, but the button in the chat menu fails to roll the spell info. I've noticed dragging the Magic Check button from the sheet into the quick macros also fails to roll the spell info so I think it has to do with the sheet HTML but can't see any issue with it. Here's the macro code I have (note this will not work out of the box for others as it's designed to work with the modified sheet HTML I used to name buttons): !chatmenu @{selected|character_id} @{selected|character_name}'s Chat Menu --title:Weapons --@{selected|mainWeaponName},tn|@{selected|offWeaponName},n --title:Magic --repeating_offensivespells|offensiveSpellName|gbtn --repeating_basespells|baseSpellName|mbtn This is what the output for repeating sections ends up looking like when used with either the chat menu and quick macro bar: No ability was found for %{Phiojaw Soch|repeating_offensivespells_gbtn} Tyler H. (GM):Phiojaw Soch|repeating_offensivespells_-Ojg0Bk3ezogzgK86M2b_gbtn I don't really care if it's the macro or the HTML that needs to be edited, I would just really like a clean chat menu that lists and can cast all of a selected character's spells. I'm not exactly a macro or HTML expert so help would be appreciated!&nbsp;
1769225184
Gauss
Forum Champion
Hi Tyler H.,&nbsp; If someone cannot get the API Script operational for you let me know, I can help you develop a macro that will generate a chat menu.&nbsp;
Well since no one else has replied yet, do you think a normal chat menu without an API would be able to do what I want? Since I haven't really dug into those much either I don't know the full capabilities, but I basically just want to have it list spells from a repeating table then post the spell details and roll an appropriate accuracy check when clicked. Not sure if you're familiar with Fabula, but the stats used for magic accuracy checks can vary character to character or I wouldve set up some random universal macro for that by now.
1769644676
Gauss
Forum Champion
There are a number of folks with macros for repeating lists. Yes, it can be done without an API Script. I probably cannot take a look at it this week, but I should have time next week. If you contact me on Discord we can discuss it further. I can show you an example from a different sheet. I am available on the Roll20 Discord server:&nbsp;<a href="http://discord.gg/roll20" rel="nofollow">http://discord.gg/roll20</a>
If you just tell me which sheet and dump the example code I can probably fiddle with it some in my free time to figure it out
1769668338

Edited 1769668556
Gauss
Forum Champion
Tyler H. said: If you just tell me which sheet and dump the example code I can probably fiddle with it some in my free time to figure it out There is no simple example code. It requires multiple attributes plus Ability macros. Then it requires CSS tricks.&nbsp;
1769714332
Gauss
Forum Champion
I asked Scott C to take a look, the sheet's author did not assign a name to the spell buttons so there is no way to call them.&nbsp; I suggest contacting the sheet authors and ask them to upgrade their sheet. If they don't (if it is abandoned) I would then suggest posting in the Character Sheets forum. Maybe someone will fix this.&nbsp; <a href="https://app.roll20.net/users/4842841/aurelien-c" rel="nofollow">https://app.roll20.net/users/4842841/aurelien-c</a> <a href="https://app.roll20.net/users/1020021/tozio" rel="nofollow">https://app.roll20.net/users/1020021/tozio</a> <a href="https://app.roll20.net/users/1470591/rezay" rel="nofollow">https://app.roll20.net/users/1470591/rezay</a> <a href="https://app.roll20.net/users/590534/alastor" rel="nofollow">https://app.roll20.net/users/590534/alastor</a>
Yes, as I mentioned in the original post I mucked around a bit in the sheet and assigned the buttons names. This worked for normal buttons but not those from repeating sections even though it does seem to be calling the correct ID. While typing this I was looking around at some things and had a breakthrough. I found the issue with the sheet HTML:&nbsp; Class names should be all lowercase Guess what included a capital letter... For posterity and to help anyone in the future reading this: Lines 1810 and 1868 in the HTML&nbsp; &nbsp; &nbsp; &lt;fieldset class="repeating_offensiveSpells"&gt;&nbsp; &nbsp; and&nbsp; &nbsp; &lt;fieldset class="repeating_baseSpells"&gt; just need to have the S's changed to lowercase.&nbsp; Lines 1833 and 1873 need names added, so just tack something to the start like:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;button name="offmagbtn" type="roll" value="... and &lt;button name="othermbtn" type="roll" value="... something similar needs to be done to name the weapon roll buttons, lines 1267 and 1336 for main and off weapons. There's repeating weapons as well but with the quick swap to main/off hand options in the sheet I wouldn't worry about those. I'll pass this along to the sheet authors and keep posting here if I run into any other issues relating to the sheet or API code.&nbsp; Even if you don't plan to use the API I'm using, other chat menu magic will still need these HTML changes to work.
lines 1302 and 1371 for the main and off weapon buttons**