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

Retrieve a variable w/o rolling?

Is it possible to get a variable within a repeat section and NOT do rolls? Right now I have a auto-update field that gets the name of the entry. Unfortunately if a user enters "longsword +1" the autoupdate field (which is just value="@{atk_name}") get's set to "1", if the user sets it to "longsword" it shows up as longsword. Anyway to get around this?
1468185400

Edited 1468185411
Lithl
Pro
Sheet Author
API Scripter
If you give the "display" field the same name as the user-editable one, you don't need to make it an autocalc field (with disabled and a value ) in order to exactly copy the value of the other field. You can make it non-editable (and yet not an autocalc field) with the readonly  attribute. Another option would be sheet workers.
Brian said: If you give the "display" field the same name as the user-editable one, you don't need to make it an autocalc field (with disabled and a value ) in order to exactly copy the value of the other field. You can make it non-editable (and yet not an autocalc field) with the readonly  attribute. Another option would be sheet workers. Worked perfectly, thanks for the tip!