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

[Help] Stats from 5th Edition (Community Contributed) - can I add my API? (How?)

I started to work on tokens and monster stats according guidance on <a href="https://www.youtube.com/watch?v=zLI-oAyHFaA&list=L" rel="nofollow">https://www.youtube.com/watch?v=zLI-oAyHFaA&list=L</a>... There is quidance how to get stat card from it, if I understand correctly, it is using the API there. I use following Ability for Earth Elemental /w gm &{template:default} {{name=Stats}} {{AC= @{selected|npc_AC}}} {{HD= @{selected|npc_HP_hit_dice} [[@{selected|npc_HP_hit_dice}]]}} {{Speed= @{selected|npc_speed}}} {{Burrow= 30}}} {{Sences= @{selected|npc_senses}}} {{Chal= @{selected|npc_challenge} (@{selected|npc_xp} XP)}} {{Lang= @{selected|npc_languages}}} {{Bonus= @{selected|npc_damage_vulnerability}}} {{Resist= @{selected|npc_damage_resistance}}} {{Immune= @{selected|npc_damage_immunity}}} {{No effect= @{selected|npc_condition_immunity}}} /w gm Earth Glide /w gm The elemental can burrow through nonmagical, unworked earth and stone. While doing so, the elemental doesn't disturb the material it moves through. /w gm Siege Monster /w gm The elemental deals double damage to objects and structures. The result is following: <a href="https://drive.google.com/file/d/0B01l3wpG26w-Z3pnU" rel="nofollow">https://drive.google.com/file/d/0B01l3wpG26w-Z3pnU</a>... The Abilities, Earth Glide and Siege Monster written this way are not nice, I would like to be able to put them in table, but for whole line, not splitted in the columns. Can this be done? How?
Not without using an api script or custom character sheet/roll templates.
1462722439

Edited 1462722790
Try one of these out: /w gm &{template:default} {{name=Stats}} {{AC= @{selected|npc_AC}}} {{HD= @{selected|npc_HP_hit_dice} [[@{selected|npc_HP_hit_dice}]]}} {{Speed= @{selected|npc_speed}}} {{Burrow= 30}}} {{Sences= @{selected|npc_senses}}} {{Chal= @{selected|npc_challenge} (@{selected|npc_xp} XP)}} {{Lang= @{selected|npc_languages}}} {{Bonus= @{selected|npc_damage_vulnerability}}} {{Resist= @{selected|npc_damage_resistance}}} {{Immune= @{selected|npc_damage_immunity}}} {{No effect= @{selected|npc_condition_immunity}}} {{Earth Glide The elemental can burrow through nonmagical, unworked earth and stone. While doing so, the elemental doesn't disturb the material it moves through. Siege Monster The elemental deals double damage to objects and structures. }} /w gm &{template:default} {{name=Stats}} {{AC: @{selected|npc_AC} HD: @{selected|npc_HP_hit_dice} [[@{selected|npc_HP_hit_dice}]] Speed: @{selected|npc_speed} Burrow: 30 Sences: @{selected|npc_senses} Chal: @{selected|npc_challenge} (@{selected|npc_xp} XP) Lang: @{selected|npc_languages} Bonus: @{selected|npc_damage_vulnerability} Resist: @{selected|npc_damage_resistance} Immune: @{selected|npc_damage_immunity} No effect: @{selected|npc_condition_immunity} Earth Glide The elemental can burrow through nonmagical, unworked earth and stone. While doing so, the elemental doesn't disturb the material it moves through. Siege Monster The elemental deals double damage to objects and structures. }} If those aren't not quite what you're looking for, are you using a Character Sheets for D&D 5E? If so, which are you using? OGL by Roll20 <a href="https://app.roll20.net/sheet-previews/ogl5e.png" rel="nofollow">https://app.roll20.net/sheet-previews/ogl5e.png</a> Community Contributed <a href="https://app.roll20.net/sheet-previews/dnd5e.png" rel="nofollow">https://app.roll20.net/sheet-previews/dnd5e.png</a> Shapedv2 <a href="https://app.roll20.net/sheet-previews/dnd5eshaped2.jpg" rel="nofollow">https://app.roll20.net/sheet-previews/dnd5eshaped2.jpg</a> Each of these Character Sheets contain custom Roll Templates, which can allow for the desired output.
Hi Silvyre, thanks for hints. It is community contributed, NPC sheet only. Both your propositions have the same result, table ends with earth glide and description is then written as new message to all with brackets. Anyway your syntax in second example is good and I will start to use it to have it more readable. Qestion - where exactly can I get into the API of the sheet to look for definitions to tweak them for my games?
1462783890

Edited 1462783991
Sniper said: It is community contributed, NPC sheet only. Gotcha. Give this a shot: /w gm &{template:5eDefault} {{title=Stats}} {{ freetext =AC: @{selected|npc_AC} HD: @{selected|npc_HP_hit_dice} [[@{selected|npc_HP_hit_dice}]] Speed: @{selected|npc_speed} Burrow: 30 Sences: @{selected|npc_senses} Chal: @{selected|npc_challenge} (@{selected|npc_xp} XP) Lang: @{selected|npc_languages} Bonus: @{selected|npc_damage_vulnerability} Resist: @{selected|npc_damage_resistance} Immune: @{selected|npc_damage_immunity} No effect: @{selected|npc_condition_immunity} **Earth Glide** The elemental can burrow through nonmagical, unworked earth and stone. While doing so, the elemental doesn't disturb the material it moves through. **Siege Monster** The elemental deals double damage to objects and structures. }} Documentation for the Community Contributed sheet's &{template:5eDefault} Roll Template can be found here . Sniper said: Qestion - where exactly can I get into the API of the sheet to look for definitions to tweak them for my games? Here's a link to the Community Contributed sheet on GitHub.
I tweaked your last example and I am really happy with the result. Screenshot on GoogleDoc Thanks for help! I am still unsure about API itself - can I do some API programming on my side (in my games) which will enhance what is provided by what you provided link for?
1462788830

Edited 1462788895
Sniper said: I am still unsure about API itself - can I do some API programming on my side (in my games) which will enhance what is provided by what you provided link for? The sheet's HTML and CSS are stored on GitHub. Anyone can write API&nbsp;Scripts , but only Pro users can implement&nbsp;API Scripts (within games that they create). Does that answer your question?