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

question of Sheet Worker Scripts

1516078061
Sad
Sheet Author
API Scripter
hi,everyone. i just reading  Sheet Worker Scripts wiki page but i have two question. A) is it possible to make fast  import function like i enter {str=80;size=50;app=40......}  in one textarea, then Sheet Worker Scripts analytics to right place. Make the attr_str be 80....... B) Is it possible to make a dropdown in character sheet, then bar 1 be attr. like bar 1 is hp, bar 2 is mp.
1516092424
Jakob
Sheet Author
API Scripter
A) Yes. B) Not without an extra API script.
1516099105
Sad
Sheet Author
API Scripter
thx for  reply how can i mede it? may i have some sample coding
1516112970

Edited 1516113106
Matt Carpenter
Pro
Sheet Author
You could take a look at the JSON Import I have in the Mythras sheet.&nbsp; It is very similar to what you want to do with stat imports. <a href="https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489</a>
1516128165
Sad
Sheet Author
API Scripter
Matt Carpenter said: You could take a look at the JSON Import I have in the Mythras sheet.&nbsp; It is very similar to what you want to do with stat imports. <a href="https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489</a> thank you very much. &gt;Whisper Rolls to GM is a useful function also.
1516187990
Sad
Sheet Author
API Scripter
Matt Carpenter said: You could take a look at the JSON Import I have in the Mythras sheet.&nbsp; It is very similar to what you want to do with stat imports. <a href="https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/master/Mythras/Mythras.html#L6489</a> thankyou matt And one more question. when i try your character sheet, i find that the sheet name is connected to token name. how can you do that. i just read the github code, but cant find the way.
1516194872
Pat S.
Forum Champion
Sheet Author
Sad said: thankyou matt And one more question. when i try your character sheet, i find that the sheet name is connected to token name. how can you do that. i just read the github code, but cant find the way. That is not part of the sheet code but more related to tokens being linked to the sheet. Token features , specifically&nbsp; representing character . Linking tokens to sheet
Like Pat S. said, that is not actually custom work in the sheet code.&nbsp; If you just make an input field with name="attr_character_name" Roll20 will do the rest of the magic.
1516379099
Sad
Sheet Author
API Scripter
Matt Carpenter said: Like Pat S. said, that is not actually custom work in the sheet code.&nbsp; If you just make an input field with name="attr_character_name" Roll20 will do the rest of the magic. thankyou so much.