Difference between revisions of "Template:RunRewards"

From Jackpoint
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|-
 
|-
 
| style="text-align: center;" |
 
| style="text-align: center;" |
¥{{#expr: ((((
+
¥{{#expr: ((((((
 
{{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}  
 
{{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}}  
 
+ {{#if: {{{outnumbered_3|}}} | 1 | 0}}  
 
+ {{#if: {{{outnumbered_3|}}} | 1 | 0}}  
Line 16: Line 16:
 
{{#if: {{{good_feelings|}}} | * 0.8 }}  
 
{{#if: {{{good_feelings|}}} | * 0.8 }}  
 
)
 
)
 +
{{#if: {{{negotiation|}}} | * ( 1 + ( {{{negotiation}}} * 0.1 ) ) }} )
 +
* 2)
 
{{#if: {{{relative_nuyen_adjustment|}}} | * {{{relative_nuyen_adjustment}}} }} )
 
{{#if: {{{relative_nuyen_adjustment|}}} | * {{{relative_nuyen_adjustment}}} }} )
 
{{#if: {{{absolute_nuyen_adjustment|}}} | + {{{absolute_nuyen_adjustment}}} }}
 
{{#if: {{{absolute_nuyen_adjustment|}}} | + {{{absolute_nuyen_adjustment}}} }}
Line 21: Line 23:
  
 
| style="text-align: center;" |
 
| style="text-align: center;" |
{{#expr:  
+
{{#expr: ((
 
{{#if: {{{died|}}} | 0 | 2}}  
 
{{#if: {{{died|}}} | 0 | 2}}  
 
+ {{#switch: {{{objectives|}}} | all = 2 | some = 1 | #default = 0}}
 
+ {{#switch: {{{objectives|}}} | all = 2 | some = 1 | #default = 0}}
+ {{#if: {{{some|}}} | 1 | 0}}
 
 
+ {{#if: {{{challenge|}}} | floor({{{challenge}}} / 6) | 0}}  
 
+ {{#if: {{{challenge|}}} | floor({{{challenge}}} / 6) | 0}}  
 
+ {{#if: {{{bastard|}}} | (-2) | 0}}  
 
+ {{#if: {{{bastard|}}} | (-2) | 0}}  
+ {{#if: {{{good_feelings|}}} | 2 | 0}} }}
+
+ {{#if: {{{good_feelings|}}} | 2 | 0}}  
 +
) * 2)
 +
{{#if: {{{karma_per_session|}}} | + ( {{{karma_per_session}}} * {{#if: {{{sessions|}}} | {{{sessions}}} | 0}} ) }}
 +
}}
 
|}
 
|}
  

Latest revision as of 00:00, 22 February 2021

Nuyen Karma

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