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

Roll Template Examples for Cosmere RPG

1727653744

Edited 1727713818
Hey there! I dug around in the Cosmere RPG and played around with some of the roll templates. I haven't seen them posted, so I thought I would share some examples here. You can use these to build Abilities for characters or paste them into chat, but the NPC and PC examples below require a valid character to function. Every character has a "template_start" attribute that is passed to the chat to make the template function. Not every section needs to be included; you can always omit the title or description, for example. In every case I've seen so far, the template_start attribute is: @{whisper}&{template:Stormlight_Archives} {{character_name=@{character_name}}} {{character_id=@{character_id}}} NB: Some attributes and how they work are in another post  below . General Template The general template appears to be: @{whisper}&{template:Stormlight_Archives} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{title=<text>}} {{subtitle=<text>}} {{^{target}=<text>}} {{roll=<roll>}} {{defense=<defense>}} {{traits=<text>}} {{^{range}=<text>}} {{plot_die=<roll>}} {{damage=<roll>}} {Damage_type=<text>}} {{description=text}} NPC Examples Attack @{Nimbleform Singer|template_start} {{title=Mace}} {{^{target}=one target}} {{plot_die=[[1d6]]}} {{roll=[[1d20 + 5]]}} {{^{range}=5 ft.}} Action & Reaction  @{Nimbleform Singer|template_start} {{title=Chosen Target}} {{description=Thenimbleformsinger chooses an enemy they can sense within 120 feet of them. For 1 hour, when the nimbleform hits their chosen enemy with a weapon attack, they deal an extra 3 (1d6) damage. In addition, the nimbleform singer gains an advantage on Survival tests to track that enemy.}} {{^{target}=one target}} Skill  @{Nimbleform Singer|template_start} {{title=agility}} {{roll=[[1d20 + 5]]}} @{Nimbleform Singer|template_start} {{title=agility}} {{roll=[[1d20 + 5]]}} {{plot_die=[[1d6]]}} Traits  @{Nimbleform Singer|template_start} {{title=Keen Senses}} {{description=When the nimbleform singer makes a Per- ception test, they can spend 1 focus to gain an advantage.}} PC Examples Expertise @{Jomari|template_start} {{title=Knives}} {{description=You can use a knife's expert traits.}} Recovery Die @{Abena|template_start} {{title=^{recovery}}} {{roll=[[@{Abena|recovery_die}]]}} Attack @{Abena|template_start} {{title=Shortspear}} {{roll=[[1d20 + @{Abena|light_weapons}]]}} {{defense=physical}} {{traits=Two-handed, melee}} {{^{range}=Thrown (20'60')}} {{plot_die=[[1d6]]}} {{damage=[[1d8+5]]}} {{damage_type=keen}} Skill @{Abena|template_start} {{title=agility}} {{roll=[[1d20 + 3]]}} {{plot_die=[[1d6]]}} Talent @{Abena|template_start} {{title=Seek Quarry}} {{description=Seek Quarry During a short or long rest, choose a character that you can sense or that you have encountered previously as your quarry. It remains your quarry until you choose to end this effect as ▷. You gain an advantage on tests to find, attack, and scrutinize your quarry (including the Gain Advantage action test).}} {{^{cost}=}} {{^{actions}=special}} @{Abena|template_start} {{title=Tagging Shot}} {{description=Move up to 5 feet and make a ranged attack vs. a target (+5 vs Physical). On a hit or graze, the target takes damage as normal and becomes your quarry.}} {{^{cost}=}} {{^{actions}=3 actions}}
1727662045
GiGs
Pro
Sheet Author
API Scripter
I don't know the game or character sheet, but I wonder if you sometimes need to use character attributes. If the sheet supports them, you can include an attribute in a macro in this syntax: @{attribute-name}. So this {{roll=[[1d20 + 5]]}} could be {{roll=[[1d20 + @{attribute-name}]]}} That can make things a lot more cnvenient if you can identify the attribute namea.
1727712426

Edited 1727712843
I have found a way to produce a template without a name in it. Added to first post. Some attributes that I have tested to work are below. Calling Rolls Skills For any skill, you can call the skill by using the name of the skill + “action”, with all words separated by dash characters. These appear to be the same skills for PCs and NPCs. All characters have options for rolling with advantage/disadvantage and for rolling with the Plot Die. Calling an action in this way follows the character’s settings. NB: The result does not display the results of the two dice, but it does show the rolls on a mouseover of the displayed roll result that includes modifiers added.  Skill Examples %{Abena|light-weapons-action} %{Abena|agility-action} Recovery Die The recovery die for a character can be included in a roll by using "recovery_die". [[@{Abena|recovery_die}]] Attributes for Reference Basic Abilities These can be referenced by their name (case doesn’t matter) and used in rolls. @{Abena|strength} Defenses These can be referenced by their name with an underscore character replacing the space (case doesn’t matter) and used in rolls. Health & Focus These can be referenced by name. Like similar attributes, it has a max value accessible through “|max”. @{Abena|health|max} Skills These can be referenced by their name with an underscore character replacing the space (case doesn’t matter) and used in rolls. This gives the total bonus of the skill. The rank of the skill can be referenced with the above with the addition of “_rank”. Other Attributes Many can be referenced, usually by their display name with an underscore character replacing the space (case doesn’t matter) and used in rolls (even when they include or are text - text is ignored). Examples Movement Lifting capacity (lifting_capacity) Recovery Die (recovery_die) Senses Conditions & Injuries (conditions) Deflect
1727712844
timmaugh
Pro
API Scripter
Not sure if the sheet you're looking at is a Beacon sheet or not, but if it isn't you could use the Inspector script to get a comprehensive list of attributes (at least comprehensive of the attributes that are available to scripts). If it *is* a beacon sheet, Inspector has to be refactored to be able to read their data structures -- if that's even going to be possible. I'm just waiting for beacon to reach a finalized state before I start any work on it.
1727713921

Edited 1727714623
Yeah, I'm not sure either. I've been looking at the Inspector and at the drop downs for the token bar links and posting what I have verified myself. Edit: Pretty sure this isn't Beacon, though.
1727734026
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hey Dr. DM I'm the author of the sheet. Like all of my sheets, all attributes should have they're attribute syntax shown in a tooltip if you hover over the input for the attribute. This works for most buttons, but there's a bug with the repeating section buttons that prevents it from showing up.
1727762219
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Also, for the ability calls, you can just use the same syntax, but omit the -action . This will result in pretty much the same call. There's some technical differences, but from a user perspective, it has pretty much no differences.
Thanks, Scott