Difference between revisions of "User:Jynx/Sandbox/Template2"

From Jackpoint
Line 8: Line 8:
 
  </tr>
 
  </tr>
 
  <tr>
 
  <tr>
   <td>
+
   <td style="vertical-align:top;">
 
   <table>
 
   <table>
 
     <tr>
 
     <tr>
Line 16: Line 16:
 
   </table>
 
   </table>
 
   </td>
 
   </td>
   <td>b</td>
+
   <td style="vertical-align:top;">
 +
  <table>
 +
    <tr>
 +
    <td>(Pool / 6)</td><td style="text-align: right;">{{#if: {{{challenge|}}} | {{#expr: floor({{{challenge}}} / 6) }} | 0 }} </td>
 +
    </tr>
 +
{{#if: {{{died|}}} || <tr><td>Survived</td><td style="text-align: right;">+2</td></tr> }}
 +
{{#switch: {{{objectives|}}} 
 +
| all  = <tr><td>Objectives: all </td><td style="text-align: right;">+2</td></tr>
 +
| some = <tr><td>Objectives: some</td><td style="text-align: right;">+1</td></tr>
 +
}}
 +
  </table>
 +
  </td>
 
  </tr>
 
  </tr>
 
  <tr>
 
  <tr>

Revision as of 13:22, 24 February 2021

NuyenKarma
Base Highest opposed pool: —
(Pool / 4)0
(Pool / 6)0
Survived+2

¥0

4

Usage

Setting a parameter to something non-blank adds the value from its row in the corresponding reward table.

If the died parameter is omitted or blank (as in the example), the 2 karma for surviving are added; i.e. only set this parameter if characters actually died.

The challenge parameter should be set to the dice pool encountered - the template will handle the division and rounding.

{{RunRewards
|died=
|all=1
|some=1
|challenge=4
|bastard=1
|good_feelings=1}}