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

From Jackpoint
Line 1: Line 1:
{| class="wikitable
+
<table class="wikitable>
|-
+
<tr>
! !! Nuyen       !! Karma
+
  <th></th><th>Nuyen</th><th>Karma</th>
|-
+
</tr>
! rowspan="7" | Base
+
<tr>
| colspan="4" | Highest opposed pool: {{{challenge|—}}}
+
  <th rowspan="7">Base</td>
|-
+
  <td colspan="4">Highest opposed pool: {{{challenge|—}}}</td>
|
+
</tr>
{|
+
<tr>
|-
+
  <td>
| (Pool / 4) || width="10px" | || style="text-align: right;" | {{#if: {{{challenge|}}} | {{#expr: floor({{{challenge}}} / 4) }} | 0 }}{{#if: {{{outnumbered_3|}}} | <br /> {{!}}- <br /> {{!}} Outnumbered 3-1 {{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{outnumbered_pro|}}} | <br /> {{!}}- <br /> {{!}} Outnumbered by Pros {{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{six_critters|}}} | <br /> {{!}}- <br /> {{!}} Six critters {{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{three_spirits|}}} | <br /> {{!}}- <br /> {{!}} Three spirits {{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{speed_subtlety|}}} | <br /> {{!}}- <br /> {{!}} Speed or Subtlety {{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{exposure|}}} | <br /> {{!}}- <br /> {{!}} Risked exposure{{!}}{{!}} style="text-align: right;" {{!}} +1 }} {{#if: {{{dangerous_lore|}}} | <br /> {{!}}- <br /> {{!}} Notably dangerous {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
+
  <table>
|}
+
    <tr>
|b
+
    <td>(Pool / 4)</td><td style="text-align: right;">{{#if: {{{challenge|}}} | {{#expr: floor({{{challenge}}} / 4) }} | 0 }} </td>
|-
+
    </tr>
| style="text-align: center;"|
+
    {{#if: {{{outnumbered_3|}}} | <tr><td>Outnumbered 3-1</td></td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{outnumbered_pro|}}} | <tr><td>Outnumbered by Pros</td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{six_critters|}}} | <tr><td>Six critters</td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{three_spirits|}}} | <tr><td>Three spirits</td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{speed_subtlety|}}} | <tr><td>Speed or Subtlety</td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{exposure|}}} | <tr><td>Risked exposure</td><td style="text-align: right;">+1</td></tr> }}
 +
    {{#if: {{{dangerous_lore|}}} | <tr><td>Notably dangerous</td><td style="text-align: right;">+1</td></tr> }}
 +
  </table>
 +
  </td>
 +
  <td>b</td>
 +
</tr>
 +
<tr>
 +
  <td style="text-align: center;">
 
¥{{#expr: ((((((
 
¥{{#expr: ((((((
 
{{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}  
 
{{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}  
Line 32: Line 44:
 
{{#if: {{{absolute_nuyen_adjustment|}}} | + {{{absolute_nuyen_adjustment}}} }}
 
{{#if: {{{absolute_nuyen_adjustment|}}} | + {{{absolute_nuyen_adjustment}}} }}
 
  }}
 
  }}
| style="text-align: center;"|
+
  </td>
 +
  <td style="text-align: center;">
 
{{#expr: ((
 
{{#expr: ((
 
{{#if: {{{died|}}} | 0 | 2}}  
 
{{#if: {{{died|}}} | 0 | 2}}  
Line 42: Line 55:
 
{{#if: {{{karma_per_session|}}} | + ( {{{karma_per_session}}} * {{#if: {{{sessions|}}} | {{{sessions}}} | 0}} ) }}
 
{{#if: {{{karma_per_session|}}} | + ( {{{karma_per_session}}} * {{#if: {{{sessions|}}} | {{{sessions}}} | 0}} ) }}
 
}}
 
}}
|}
+
  </td>
 
+
</tr>
 +
</table>
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==

Revision as of 00:02, 24 February 2021

NuyenKarma
Base Highest opposed pool: —
(Pool / 4)0
b

¥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}}