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

Rolltemplates and Textarea

I'm having trouble getting the text in a text area to display in a rolltemplate. I've got a general understanding of making and setting up a rolltemplate but have been stuck on this one for a while.  At the current point if i try and "roll" the attack nothing shows up in the text log.  For reference this is the chunk im working on now. </div> <fieldset class="repeating_attacks"> <table border="1"> <tr> <th><h5 align="center">Vs MC</th> <th><h5 align="center">Name</th> <th><h5 align="center">Wielding</th> <th><h5 align="center">Dice</th> <th><h5 align="center">Damage</th> <th><h5 align="center">% Damage</th> <th><h5 align="center">Hit</th> <th><h5 align="center">% Hit</th> <th><h5 align="center">Info</th> <th><h5 align="center">Attack</th> </tr> <tr> <td><h3 align="center"><input type='checkbox' name='attr_VS_MC' value='1' checked='true' /></td> <td><h3 align="center"><input type="text" name="attr_attack_name" title="@{attack_name}" style="width: 150px; display: inline-block;" placeholder="Weapon/Spell Name"></td> <td><h3 align="center"><input type="text" name="attr_wielding" title="@{wielding}" style="width: 60px; display: inline-block;" value="1.0"></td> <td><h3 align="center"><input type="text" name="attr_damage_die" title="@{weapon_die}" style="width: 60px; display: inline-block;" value="1d6"></td> <td><h3 align="center"><input type="text" name="attr_flat_damage" title="@{flat_damage}" style="width: 60px; display: inline-block;" value="0"></td> <td><h3 align="center"><input type="text" name="attr_percent_damage" title="@{percent_damage}" style="width: 60px; display: inline-block;" value="1.0"></td> <td><h3 align="center"><input type="text" name="attr_flat_hit" title="@{flat_hit}" style="width: 60px; display: inline-block;" value="0"></td> <td><h3 align="center"><input type="text" name="attr_percent_hit" title="@{percent_hit}" style="width: 60px; display: inline-block;" value="1.0"></td> <td> <h3 align="center"><input type="checkbox" class="sheet-arrow" name='attr_description_check' value='1' checked='true'> <div class="sheet-body"> <h5 align="center">Show Up On Attack: </span><select name="attr_show_up" style="width: 60px;"> <option value="0">No</option> <option value="1">Yes</option> <textarea placeholder="Fulltext" name="attr_description_text" style="width: 240px; height: 120px"></textarea> </div> </div> <td><button type="roll" name="roll_attack" title="%{attack}" value="&{template:Base} {{roll_name=@{character_name}'s Attack with @{attack_name}}} {{Hit_area=[[?{Called Shot?|No, 1d100|Yes, 101}]]}} {{ShowUp=[[@{show_up}]]}} {{Description=[[@{description_text}]]}}">Attack Roll</button></td> </tr> </table> </fieldset> <rolltemplate class="sheet-rolltemplate-Base"> <div> <table class="sheet-rolltemplate-Base"> <tr> <th colspan="2">{{roll_name}}</th> </tr> <tr> <td>Hit Area: </td> <td> {{#rollTotal() Hit_area 101}} Called Shot {{/rollTotal() Hit_area 101}} {{#rollBetween() Hit_area 96 100}} {{Hit_area}} Head! {{/rollBetween() Hit_area 96 100}} {{#rollBetween() Hit_area 51 95}} {{Hit_area}} Chest! {{/rollBetween() Hit_area 51 95}} {{#rollBetween() Hit_area 36 50}} {{Hit_area}} Right Arm! {{/rollBetween() Hit_area 36 50}} {{#rollBetween() Hit_area 21 35}} {{Hit_area}} Left Arm! {{/rollBetween() Hit_area 21 35}} {{#rollBetween() Hit_area 1 20}} {{Hit_area}} Legs! {{/rollBetween() Hit_area 1 20}} </td> </tr> <tr> <td><span>Effect: </span></td> <td> {{#rollTotal() ShowUp 1}} {{Description}} {{/rollTotal() ShowUp 1}} {{#rollTotal() ShowUp 0}} None {{/rollTotal() ShowUp 0}} </td> </tr> </table> </div> </rolltemplate>
1536193806
GiGs
Pro
Sheet Author
API Scripter
If you have [[ ]] brackets around it, roll20 will try to convert it into a number, and that may be why it's not working. Try removing the inline square brackets and see if it works.
1536194030

Edited 1536194063
vÍnce
Pro
Sheet Author
Try removing the inline roll around your description_text in macro-text for the attack roll. try; &{template:Base} {{roll_name=@{character_name}'s Attack with @{attack_name}}} {{Hit_area=[[?{Called Shot?|No, 1d100|Yes, 101}]]}} {{ShowUp=[[@{show_up}]]}} {{Description=@{description_text}}} lol what GG said
Yep that worked thanks guys.