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

[3.5e] Drop Down menus for Spells

Hello. I am having more troubles with my macros. So, I have created drop down menus for each level of spell for my spell casters that can be accessed through their token. Things were going good with my arcane spell casters. Though I had a few bumps with some of the spells, the drop downs works perfectly. However, I am having some trouble with the Divine casters.  My drop down for the 0-level divine spells works perfectly (given below). But my drop down for the 1st-level spells (also given below) refuses to call the name or the macro for any spell. I have five spells entered in the 1st-level list, but when I try to use the macro is gives the following message.  "You tried to use the repeating section row at index 3 for repeating_spells11, but there doesn't seem to be a row at that index." No attribute was found for @{selected|repeating_spells11_$3_spellmacro11}" I know I have the information added to this row as I have five spells with their macros added. If I roll from the spell list the macros work. But if I use the drop down it just gives this message for all five entries (from row 0 to row 5). Can anyone tell what is going on, as I can't find any difference between the drop down that works and the one that doesn't. Here is the 0-level drop down that works (with seven entries) ?{choose|@{selected|repeating_spells01_$0_spellname01}, @{selected|repeating_spells01_$0_spellmacro01}|@{selected|repeating_spells01_$1_spellname01}, @{selected|repeating_spells01_$1_spellmacro01}|@{selected|repeating_spells01_$2_spellname01}, @{selected|repeating_spells01_$2_spellmacro01}|@{selected|repeating_spells01_$3_spellname01}, @{selected|repeating_spells01_$3_spellmacro01}|@{selected|repeating_spells01_$4_spellname01}, @{selected|repeating_spells01_$4_spellmacro01}|@{selected|repeating_spells01_$5_spellname01}, @{selected|repeating_spells01_$5_spellmacro01}|@{selected|repeating_spells01_$6_spellname01}, @{selected|repeating_spells01_$6_spellmacro01}} and here is the 1st-level drop down that does not work (with five entries) ?{choose|@{selected|repeating_spells11_$0_spellname11}, @{selected|repeating_spells11_$0_spellmacro11}|@{selected|repeating_spells11_$1_spellname11}, @{selected|repeating_spells11_$1_spellmacro11}|@{selected|repeating_spells11_$2_spellname11}, @{selected|repeating_spells11_$2_spellmacro11}|@{selected|repeating_spells11_$3_spellname11}, @{selected|repeating_spells11_$3_spellmacro11}} Finally, here is a screen shot to show that I do, in fact, have five spells in the list of 1st-level spells.
1541798558

Edited 1541798627
Ziechael
Forum Champion
Sheet Author
API Scripter
Odd indeed, on the face of it that looks fine to me too... have you tried it on a new character to see if there is something funky with the sheet in question? Have many rows been added and subsequently removed from that one for 1st level divine spells? What happens when you put @{selected|repeating_spells11_$0_spellmacro11} on it's own? Scrap that, just looked at the sheet and the reference for that repeating section isn't standardised like the rest (there is no number following the 'spells' bit in the attribute names for that level of divine spells!): Try this: ?{choose|@{selected|repeating_spells_$0_spellname11}, @{selected|repeating_spells_$0_spellmacro11}|@{selected|repeating_spells_$1_spellname11}, @{selected|repeating_spells_$1_spellmacro11}|@{selected|repeating_spells_$2_spellname11}, @{selected|repeating_spells_$2_spellmacro11}|@{selected|repeating_spells_$3_spellname11}, @{selected|repeating_spells_$3_spellmacro11}}
Yeah, when I first went into add the spells I added five slots, each having the default spell of Doom. But when I entered a title into the first one the others got erased. So I had to add each row and fill in the information before adding another row.  Now when I just enter @{selected|repeating_spells_$0_spellname11} it just returns Doom. It does this with every level that I try to enter. Since typing the above I attempted to enter a row well beyond the five I have. It returned "Divine Favor", which is a spell on my list. So I went back and entered 12 rows at once (0-11). My five spells were returned as row $2, and then $8-$11.  I did notice that the numbers after the word spell were not given, but when I tried that I just got the default 'Doom' returned so I didn't think it would work. But now that I have altered the row numbers to correspond with what my experiment showed, and removed the 11 after the word spell, the drop down works perfectly. Thank you for the assistance.