User Tools

Site Tools


Roll20 Scripts

Since the campaign is being run in Roll20, I have written some scripts to help make it easier for me to run things. They are all available on GitHub.

There are also some comments on my blog about the physics APIs I added.




This lists all defined attacks for the selected token. Selecting an attack will make an attack skill roll and a damage roll.


/r 2d6 + {@{selected|mod-Dexterity},@{selected|mod-Intellect}}kh1 &{tracker}

Used to roll initiative for the selected token. Takes the highest of Dexterity and Intellect, and adds that modified to 2d6.



Lists all the defined skills for the selected token. Each skill can be clicked on in order to roll it.

The default characteristic (as set on the character sheet) is always used, and DMs cannot be specified this way. But it is a quick way to roll skills.

If a skill has specialities, then the result for each speciality is shown. Each result is off the same dice roll.

API Commands

The above use some of the API commands available.


This makes an attack, possibly with modifiers.

!attack pistol
!attack laser rifle
!attack laser rifle +2
!attack pistol +
!attack pistol +2 -

An attack is rolled for skill and damage with the named attack for the currently selected tokens. If multiple tokens are selected, then they each make an attack.

If a +N/-N modifier is specified, then the DM is applied to the dice roll.

If a single +/- is specified, then it is treated as a Boon or Bane, rolling 3d6 and keeping the highest two (Boon) or lowest two (Bane).


This makes a skill roll with a given characteristic, possibly with modifiers.

!skill int admin
!skill i admin
!skill SOC Perform +4 +

Like with attacks, DMs and boon/bane can be specified.

Only the first letters of the characteristic need to be specified - all characteristics except for END can be specified with a single letter. For END, at least 'en' needs to be used.

The skill name needs to be complete, but case is not important.



!skill STR ?{Skill|STR, |Athletics|Melee} ?{Type|Normal, |Boon,+|Bane,-}


!skill DEX ?{Skill|DEX, |Animals|Art|Athletics|Deception|Drive|Electronics|Explosives|Flyer|Gunner|Gun Combat|Heavy Weapons|Melee|Pilot|Seafarer|Stealth}  ?{Type|Normal, |Boon,+|Bane,-}


!skill END ?{Skill|END, |Athletics|Carouse} ?{Type|Normal, |Boon,+|Bane,-}


!skill INT ?{Skill|INT, |Advocate|Animals|Art|Broker|Deception|Diplomat|Electronics|Engineer|Gambler|Gunner|Heavy Weapons|Investigate|Mechanic|Navigation|Persuade|Profession|Recon|Science|Seafarer|Streetwise|Survival|Tactics} ?{Type|Normal, |Boon,+|Bane,-}


!skill EDU ?{Skill|EDU, |Admin|Advocate|Animals|Art|Astrogation|Diplomat|Electronics|Engineer|Explosives|Language|Mechanic|Medic|Navigation|Science|Seafarer|Steward|Survival|VaccSuit}  ?{Type|Normal, |Boon,+|Bane,-}


!skill SOC ?{Skill|SOC, |Admin|Advocate|Broker|Carouse|Deception|Diplomat|Leadership|Persuade|Profession|Steward}  ?{Type|Normal, |Boon,+|Bane,-}
islandsintherift/roll20.txt · Last modified: 2021/06/21 12:27 by sam