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
traveller:roll20 [2020/10/24 22:35] samtraveller:roll20 [2020/10/25 14:48] (current) sam
Line 6: Line 6:
  
 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]]. 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]].
 +
 +The ''!physics'' command takes a sub-command and a number of arguments. It can be shortened if desired, down to ''!phy'' to save on typing. There are three sub-commands - ''thrust'', ''rocket'' and ''planet''.
 +
 +The sub-commands can be shortened to the shortest unique word, which current is a single letter for all of them.
 +
 +==== thrust ====
 +
 +The ''thrust'' sub-command uses the equation of motion to calculate how long it takes to travel a given distance under constant acceleration.
 +
 +<code>
 +!phy thrust 1g 1.2mkm
 +</code>
 +
 +This will give information on how long to accelerate to the mid-point, then decelerate to the destination. It also gives the time taken for when you don't want to decelerate - for example a missile that will accelerate all the way to the destination.
 +
 +If 'g' is not specified on thrust, then acceleration is assumed to be in ms<sup>-2</sup>.
 +
 +The distance is assumed to be kilometres unless other units are specified. ''km'', ''mkm'' (millions of kilometres) and ''au'' (astronomical units) are supported units.
 +
 +==== rocket ====
 +
 +The ''rocket'' sub-command will use the classical rocket equation to calculate the delta-vee for a rocket. This isn't used much in //Traveller//, but it's there in case it's needed.
 +
 +<code>
 +!phy rocket 1000 200 350
 +</code>
 +
 +It takes the wet and dry mass of the ship (units aren't important, since it's only the ration that matters), and the Isp (specific impulse) of the drive (in seconds).
 +
  
 ==== planet ==== ==== planet ====
traveller/roll20.1603578956.txt.gz · Last modified: 2020/10/24 22:35 by sam