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

From Jackpoint
Line 1: Line 1:
<table class="wikitable">
+
{| class="wikitable
  <tr>
+
|-
    <th col colspan="4">{{{name|Condition Monitor}}}</th>
+
! !! Nuyen        !! Karma
  </tr>
+
|-
  {{DamageRow|n=1| max={{{max|0}}} | d={{{d|0}}} | f={{{f|0}}} | r={{{r|0}}} }}
+
! rowspan="7" | Base
  {{DamageRow|n=2| max={{{max|0}}} | d={{{d|0}}} | f={{{f|0}}} | r={{{r|0}}} }}
+
| colspan="4" | Highest opposed pool: {{{challenge|}}}
  {{DamageRow|n=3| max={{{max|0}}} | d={{{d|0}}} | f={{{f|0}}} | r={{{r|0}}} }}
+
|-
  {{DamageRow|n=4| max={{{max|0}}} | d={{{d|0}}} | f={{{f|0}}} | r={{{r|0}}} }}
+
|
  {{DamageRow|n=5| max={{{max|0}}} | d={{{d|0}}} | f={{{f|0}}} | r={{{r|0}}} }}
+
{|
</table>
+
|-
 +
| Pool / 4 || style="text-align: right;" | {{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}
 +
{{#if: {{{outnumbered_3|}}} | {{!}}-
 +
{{!}} Outnumbered 3-1 {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
{{#if: {{{outnumbered_pro|}}}
 +
{{!}} Outnumbered by Pros {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
{{#if: {{{six_critters|}}} | {{!}}-
 +
{{!}} Six critters {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
{{#if: {{{three_spirits|}}} | {{!}}-
 +
{{!}} Three spirits {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
{{#if: {{{speed_subtlety|}}} | {{!}}-
 +
{{!}} Speed or Subtlety {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
{{#if: {{{exposure|}}} | {{!}}-
 +
{{!}} Risked exposure{{!}}{{!}} style="text-align: right;" {{!}} +1 }}  
 +
{{#if: {{{dangerous_lore|}}} | {{!}}-
 +
{{!}} Notably dangerous {{!}}{{!}} style="text-align: right;" {{!}} +1 }}
 +
|}
 +
|b
 +
|-
 +
| style="text-align: center;"|
 +
¥{{#expr: ((((((
 +
{{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}
 +
+ {{#if: {{{outnumbered_3|}}} | 1 | 0}}
 +
+ {{#if: {{{outnumbered_pro|}}} | 1 | 0}}
 +
+ {{#if: {{{six_critters|}}} | 1 | 0}}
 +
+ {{#if: {{{three_spirits|}}} | 1 | 0}}  
 +
+ {{#if: {{{speed_subtlety|}}} | 1 | 0}}
 +
+ {{#if: {{{exposure|}}} | 1 | 0}}
 +
+ {{#if: {{{dangerous_lore|}}} | 1 | 0}} )
 +
* 3000)
 +
{{#if: {{{bastard|}}} | * 1.2 }}
 +
{{#if: {{{good_feelings|}}} | * 0.8 }}  
 +
)
 +
{{#if: {{{negotiation|}}} | * ( 1 + ( {{{negotiation}}} * 0.1 ) ) }} )
 +
* 2)
 +
{{#if: {{{relative_nuyen_adjustment|}}} | * {{{relative_nuyen_adjustment}}} }} )
 +
{{#if: {{{absolute_nuyen_adjustment|}}} | + {{{absolute_nuyen_adjustment}}} }}
 +
}}
 +
| style="text-align: center;"|
 +
{{#expr: ((
 +
{{#if: {{{died|}}} | 0 | 2}}  
 +
+ {{#switch: {{{objectives|}}} | all = 2 | some = 1 | #default = 0}}
 +
+ {{#if: {{{challenge|}}} | floor({{{challenge}}} / 6) | 0}}
 +
+ {{#if: {{{bastard|}}} | (-2) | 0}}
 +
+ {{#if: {{{good_feelings|}}} | 2 | 0}}
 +
) * 2)
 +
{{#if: {{{karma_per_session|}}} | + ( {{{karma_per_session}}} * {{#if: {{{sessions|}}} | {{{sessions}}} | 0}} ) }}
 +
}}
 +
|}
 +
 
 +
<noinclude>
 +
== 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.
 +
 
 +
<pre>
 +
{{RunRewards
 +
|died=
 +
|all=1
 +
|some=1
 +
|challenge=4
 +
|bastard=1
 +
|good_feelings=1}}
 +
</pre>
 +
</noinclude>

Revision as of 22:43, 23 February 2021

Nuyen Karma
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}}