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

[D&D 3.5E] Unwanted repetition

I am having a rather odd problem in some of my macros posting several times to the chat each time they are used. I have made several macros for spells in 3.5 D&D, which are placed in the spells list for each character. I then made a dropdown macro to put in the abilities page that is put as a token action for ease of play. Now, the spells all work when used from the character sheet, but two don't work when used from the dropdown. Let me explain with some screen shots I got. I will post my actual macros at the bottom. For instance, with my light macro I get this in the chat, which it what it should be. My Arcane Mark, when done from the character sheet, gives the following, which is basically what it should be, though the choices are not made. But from the drop down menus it gives something like this:  (taken from the Chat Log; it actually repeats the three section 22 times each). Could you look at the following macros and tell me why this is happening? My drop down macro ?{choose|@{selected|repeating_spells02_$0_spellname02}, @{selected|repeating_spells02_$0_spellmacro02}|@{selected|repeating_spells02_$1_spellname02}, @{selected|repeating_spells02_$1_spellmacro02}|@{selected|repeating_spells02_$2_spellname02}, @{selected|repeating_spells02_$2_spellmacro02}|@{selected|repeating_spells02_$3_spellname02}, @{selected|repeating_spells02_$3_spellmacro02}|@{selected|repeating_spells02_$4_spellname02}, @{selected|repeating_spells02_$4_spellmacro02}|@{selected|repeating_spells02_$5_spellname02}, @{selected|repeating_spells02_$5_spellmacro02}}   Light Spell macro /em @{selected|character_name} casts the spell **LIGHT**, touching ?{target | } to cause it to glow like a torch, shedding bright light in a 20-foot radius. This persists for [[@{selected|casterlevel}*10]] minutes. /w gm This is an Evocation [light] effect that has V components and requires a naturally phosphorescent object. /w gm It will not function in magical darkness, and it counters/dispels darkness of level [[0]]. Arcane Mark spell macro /em @{selected|character_name} casts the spell **ARCANE MARK** to inscribe their personal mark on ?{target | } . The writing is ?{choose | visible | invisible } /w gm this is a universal spell with V and S components. There is no save or SR. /w gm The mark must fit within a 1 foot square. It cannot be dispelled, but Erase will remove it. Detect Magic will reveal the mark, and read magic will decipher it. It also does it on my Open/Close spell macro, which I give here. /em @{selected|character_name} casts the spell **?{choose | OPEN | CLOSE } ** to  ?{choose | OPEN | CLOSE } ?{target | } which must be within [[25+{{@{selected|casterlevel}/2 } *5 } ]] feet away, /w gm This can effect a door, chest, box, window, bag, pouch, bottle, barrel, or other container. If anything resists this activity, or if the object to be effected weighs more than [[30]] lbs, the spell fails. /w gm This is a Transmutation effect that has V and S components and requires a key as a focus. SR applies, and a will save of DC [[floor(@{selected|spelldc0}+(@{selected|casterlevel}/2))]] will negate the effect.
1541116258
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hi Shem, Could you check to make sure your macro code isn't duplicated some number of times in the macro box of that spell entry? If it isn't then you can move on to my suggestion below, but bear in mind that I'm not sure why only some of your spells would be affected by it). My suggestion would be to clear your chat archive (note, not clear current chat log from in game). The clear chat archive is a button available to the game's creator (and maybe other GM's) from the settings drop down on the game's splash page. If you aren't the creator or a GM, you'll need to ask your game's creator to do this for you. NOTE -  The dialog will ask you to type "CONFIRM" to delete the chat archive. The button is very close to the DELETE GAME button, which will ask you to type "DELETE" in to confirm your choice. NEVER  type "DELETE" in unless you do want your game to be lost.
Yeah, I checked for duplicate numbers, but there aren't any. I'll try deleting the archive.
1541169273
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Shem A. I've created a D&D 3.5 game exactly once, just to test your macros, so I admit my complete unfamiliarity with the sheet. I really don't have any suggestions beyond what Scott has given other than you might try contacting the sheet author, Diana P, though since the sheet has not received an update in over 2 years, this might be problematical. Also, I am going to edit your post title to include [D&D 3.5E], in the hopes of increasing visibility to those more familiar with the sheet. I'll revert the title if you prefer, of course.
1541454083
Diana P
Pro
Sheet Author
Sorry it took me so long to get around to testing this, but what the problem appears to be is an issue with the nested queries.  You have the nested queries encoded like: ?{choose | OPEN | CLOSE } and that somehow is causing the repetition.  When I put a space between the question/choice and the subsequent ampersand (&) it works for me without the repetition.  ie the query should look like: ?{choose | OPEN | CLOSE } This also is the case in the arcane mark spell where ?{choose | visible | invisible } works as ?{choose | visible | invisible }   Note that this bug also occurs if you put the macros into Attributes and/or Attributes that you create (ie making an Attribute or Ability named amark and putting the arcane mark macro in it) so I believe it is a bug in how the queries or the html entities are parsed.  Might be worthy of a post in the bug forums (though it also might be a known issue, not sure).
1541454209
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Huh, interesting Diana, Nice find.
Let me look into that.
It worked very well. Honestly, I thought I had the spaces which is why I was confused. That is my mistake. Thanks for catching it.