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

Repeating field and drag and drop roll button to macro bar

1462120755

Edited 1462121027
Phoxounet
Sheet Author
Translator
Hi again. My sheet is almost finished. I am encountering a nasty last issue so that I could start translation and submission. I made several repeating fields sections, especially for weapons and advanced skills (warhammer 2nd edition). Every single roll button is working as intended and can be draggued and dropped to the macro bar. Except Advanced skills. I don't see why. Problem seems related to the roll button name. Tried several things but no luck : Here are the results from the weapons repeating section and the advanced skills repeating section : Not working at all.&nbsp; Here are pieces of code about weapons and advanced skills : &nbsp;&lt;div&gt; &lt;!--Advanced skills--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;hr style="background: transparent url(<a href="http://nsm08.casimages.com/img/2016/04/23//1604230239056857314173993.png" rel="nofollow">http://nsm08.casimages.com/img/2016/04/23//1604230239056857314173993.png</a>) no-repeat; width:441px; height: 34px; border: none;"&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="dark_row" style="font-size:12px;line-height:18px;"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 16px; margin-top:10px;"&gt;Compétence&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 74px;"&gt;Carac.&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 10px;"&gt;Pris&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 6px;"&gt;+10%&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 2px;"&gt;+20%&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 10px;"&gt;Total&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="dark_row"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fieldset class="repeating_AdvancedSkills"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp-name" type="text" name="attr_SkillName" style="margin-left:5px;width:177px;" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select class="comp" name="attr_SkillAttr" style="width:55px;margin-left:1px;font-weight:lighter;"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value="@{F_Actuel}"&gt;F&lt;/option&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value="@{Agi_Actuel}"&gt;Agi&lt;/option&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value="@{Int_Actuel}"&gt;Int&lt;/option&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value="@{Soc_Actuel}"&gt;Soc&lt;/option&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value="@{FM_Actuel}"&gt;FM&lt;/option&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp" type="text" name="attr_SkillAttrbis" value="@{SkillAttr}" style="width:50px;margin-left:0px;font-weight:lighter;display:none" disabled="disabled" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp" type="radio" name="attr_Skill" value="@{SkillAttrbis}" checked style="margin-left:-5px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- acquis--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp" type="radio" name="attr_Skill" value="@{SkillAttrbis}+10" style="margin-left:23px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- +10%--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp" type="radio" name="attr_Skill" value="@{SkillAttrbis}+20"style="margin-left:26px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- +20% --&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="comp" type="text" value="@{Skill}" name="attr_SkillTotal" style="width:40px;height:18px;background:black;margin-left:19px;" disabled="disabled"/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="comp"style="width:10px;margin-left:1px;" &gt;%&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;button &nbsp;type="roll" style="margin-left:0px;line_height:10px;height:20px;margin-bottom:2px;" name="roll_skill" title="Compétence Avancée" value="&{template:war2_test} {{name=@{SkillName}}} {{Carac=[[@{Skill}+?{mod|0}]]}} &nbsp;{{Roll=[[1D100cs&lt;[[@{Skill}+?{mod|0}]]cf&gt;[[@{Skill}+?{mod|0}]]]]}} "&gt;&lt;/button&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/fieldset&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&lt;!-- End Advanced skills--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div style="background: transparent url(<a href="http://nsm08.casimages.com/img/2016/04/23//1604230205096857314173928.png" rel="nofollow">http://nsm08.casimages.com/img/2016/04/23//1604230205096857314173928.png</a>) no-repeat; width:789px; height: 34px; border: none;margin-top:50px;margin-left:10px;"&gt;&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="dark_row" style="font-size:20px;line-height:25px;"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 50px; margin-top:10px;"&gt;Arme Contact&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 29px;"&gt;Dégâts&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 40px;"&gt;Groupe&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div &nbsp;class="arme-title" style="margin-left: 212px;"&gt;Attributs&lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fieldset class="repeating_weapons"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class="dark_row"&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;button &nbsp;type="roll" style="margin-left:0px;line_height:10px;height:20px;margin-bottom:2px;" title="Combat" name="roll_Arme" value="&{template:war2_combat}{{name=@{ArmeNom}}} {{Carac=[[@{CC_Actuel}+?{mod|0}]]}} &nbsp;{{Roll=[[ 1D100cs&lt;[[@{CC_Actuel}+?{mod|0}]]cf&gt;[[@{CC_Actuel}+?{mod|0} ]]]]}} &nbsp;{{Rollbis=[[[[1D100]]cs&lt;[[@{CC_Actuel}+?{mod|0}]]cf&gt;[[@{CC_Actuel}+?{mod|0}]]]]}} {{degats=[[1D10+@{ArmeDeg}]]}} {{degatsbis=[[1D10!+@{ArmeDeg}]]}} "&gt;&lt;/button&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="arme" type="text" name="attr_ArmeNom" style="width:150px;margin-left:0px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="arme" type="text" name="attr_ArmeDeg" style="width:50px;text-align:center;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="arme" type="text" name="attr_ArmeGroup" style="width:150px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input class="arme" type="text" name="attr_ArmeAttr" style="width:423px;"/&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/fieldset&gt; Please also note that the advanced skills button is perfectly working when clicking it directly from the character sheet. It seems to me that the problem is related to the roll name but I can't figure why and how to fix it. Thx :)
1462123269
Natha
KS Backer
Sheet Author
API Scripter
Il me semble que j'ai déjà eu ce problème. Si tu as des accents dans le nom, les propriétés ou autre, essaie de les enlever, en commençant par renommer le bouton.
1462123592

Edited 1462123686
Phoxounet
Sheet Author
Translator
Aucun accent dans aucune des propriétés ou champ à interpréter par le parser. :( For everyone else, here is the translation : Natha warned me to be carefull about accented characters in fields and parameters. Anyway, none of my parameters contains spaces or accented characters. :( Edit : only exception : title field in roll buttons. Changed it but did nothing.
1462188645
Phoxounet
Sheet Author
Translator
Ok. J'ai trouvé le souci : les rolls fonctionnent dans les champs répétables mais pas en drag&drop si il y a des majuscules dans le nom. Mes excuses donc, Natha, tu étais dans le vrai : il s'agissait d'un problème de caractères dans la classe du fieldset. Translation for everyone : Ok, I found the issue : roll buttons work no matter uppercase characters you have in the class of the fieldset tag. However, it does not work with drag&drop : if you have uppercase characters in the class of the fiedset tag, the macro won't work. So apologies to Natha that was right about the issue, in a way : it was about characters in the repeating field.