User Tools

Site Tools


traveller:roll20

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
traveller:roll20 [2020/10/24 16:38] samtraveller:roll20 [2020/10/24 22:35] sam
Line 1: Line 1:
 +{{ :traveller:traveller-heading.png?nolink&800 |}}
 +
 ====== Roll20 Scripts ====== ====== Roll20 Scripts ======
  
 ===== Physics [!physics] ===== ===== Physics [!physics] =====
  
-The //Physics// scripts are designed to provide aid in calculating basic things such as information on planets, or plotting travel times.+The //Physics// script is designed to provide aid in calculating basic things such as information on planets, or plotting travel times. It's not specifically tied to //Traveller//, but was written with that game in mind. As with my other scripts, it is available on [[https://github.com/samuelpenn/rpg/blob/master/roll20/traveller/physics.js|GitHub]].
  
 ==== planet ==== ==== planet ====
Line 18: Line 20:
  
 Displays statistics on a planet with a radius of 6400km, and a density of 5.5g/cm³. It will display the planet's mass, escape velocity and surface gravity. Displays statistics on a planet with a radius of 6400km, and a density of 5.5g/cm³. It will display the planet's mass, escape velocity and surface gravity.
- 
-{{ :traveller:earth.png?nolink&200|}} 
-{{ :traveller:super-earth.png?nolink&200|}} 
  
 You don't have to specify the full command. You can use !phy instead of !physics. You can also specify the first letters of the command word. You don't have to specify the full command. You can use !phy instead of !physics. You can also specify the first letters of the command word.
Line 29: Line 28:
 !phy p 6400 5.5 !phy p 6400 5.5
 </code> </code>
 +
 +{{ :traveller:earth.png?nolink&200|}}
  
 You can specify different units, for example you can use 'e' for Earth, 'j' for Jupiter or 'sol' for Sol. You can also specify, m (metres), km (kilometres), mkm (millions of kilometres) or au (astronomical units). You can specify different units, for example you can use 'e' for Earth, 'j' for Jupiter or 'sol' for Sol. You can also specify, m (metres), km (kilometres), mkm (millions of kilometres) or au (astronomical units).
Line 36: Line 37:
 </code> </code>
  
 +=== Orbits ===
  
 +{{ :traveller:earth-orbit.png?nolink&200|}}
 +
 +Another option is to specify an orbit. If a third parameter is specified, then it is the distance to an orbit, which by default is from the centre of the planet. To specify a 7,000km orbit around a 6,400km radius planet you would use:
 +
 +<code>
 +!physics planet 6400km 5.5 7000km
 +</code>
 +
 +Alternatively, you can specify an orbit as an altitude by using +<altitude>.
 +
 +<code>
 +!physics planet 6400km 5.5 +400km
 +</code>
 +
 +=== Solar Orbits ===
 +
 +{{ :traveller:solar-orbit.png?nolink&200|}}
 +
 +You can also specify solar orbits, simply by using larger numbers.
 +
 +<code>
 +!physics planet 1sol 1sol 1au
 +!physics planet 2sol 1.5sol 3au
 +!physics planet 5j 1.5j 1mkm
 +</code>
  
traveller/roll20.txt · Last modified: 2020/10/25 14:48 by sam