Template:Autofill tag/row: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
(added c0tag) |
||
(97 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc}} | {{doc}} | ||
<includeonly><onlyinclude>{{#vardefine:c#|c{{#ifeq:c0tag|{{{1}}}|0|{{#ifeq:c1tag|{{{1}}}|1|{{#ifeq:c2tag|{{{1}}}|2|{{#ifeq:c3tag|{{{1}}}|3|{{#ifeq:c4tag|{{{1}}}|4|{{#ifeq:c5tag|{{{1}}}|5|{{#ifeq:c6tag|{{{1}}}|6|{{#ifeq:c7tag|{{{1}}}|7|{{#ifeq:c8tag|{{{1}}}|8|{{#ifeq:c9tag|{{{1}}}|9|{{#ifeq:c10tag|{{{1}}}|10|{{#ifeq:c11tag|{{{1}}}|11|{{#ifeq:c12tag|{{{1}}}|12|{{#ifeq:c13tag|{{{1}}}|13|{{#ifeq:c14tag|{{{1}}}|14|{{#ifeq:c15tag|{{{1}}}|15|{{#ifeq:c16tag|{{{1}}}|16|{{#ifeq: | <includeonly><onlyinclude>{{#vardefine:c#|c{{#ifeq:{{{c0tag}}}|{{{1}}}|0|{{#ifeq:{{{c1tag}}}|{{{1}}}|1|{{#ifeq:{{{c2tag}}}|{{{1}}}|2|{{#ifeq:{{{c3tag}}}|{{{1}}}|3|{{#ifeq:{{{c4tag}}}|{{{1}}}|4|{{#ifeq:{{{c5tag}}}|{{{1}}}|5|{{#ifeq:{{{c6tag}}}|{{{1}}}|6|{{#ifeq:{{{c7tag}}}|{{{1}}}|7|{{#ifeq:{{{c8tag}}}|{{{1}}}|8|{{#ifeq:{{{c9tag}}}|{{{1}}}|9|{{#ifeq:{{{c10tag}}}|{{{1}}}|10|{{#ifeq:{{{c11tag}}}|{{{1}}}|11|{{#ifeq:{{{c12tag}}}|{{{1}}}|12|{{#ifeq:{{{c13tag}}}|{{{1}}}|13|{{#ifeq:{{{c14tag}}}|{{{1}}}|14|{{#ifeq:{{{c15tag}}}|{{{1}}}|15|{{#ifeq:{{{c16tag}}}|{{{1}}}|16|{{#ifeq:{{{c17tag}}}|{{{1}}}|17|{{#ifeq:{{{c18tag}}}|{{{1}}}|18|{{#ifeq:{{{c19tag}}}|{{{1}}}|19}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
| | | {{#cargo_query:table=Items|fields=_pageName,identifier,name,icon|where=identifier{{=}}"{{{item}}}"|format=template|template=HyperlinkCargo{{!}}32|named args=yes|default=[[{{{item}}}]]}} | ||
| align=center | {{#ifeq:{{{{{#var:c#}}notcampaign}}}|1|True|False}} | | align=center | [[File:Checkmark {{#ifexpr:{{#ifeq:{{{ {{#var:c#}}notcampaign}}}|1|0|1}}and(({{{ {{#var:c#}}amount}}} > 0)or({{{ {{#var:c#}}maxamount}}} > 0))|True|False}}.png|32px]] | ||
| align=center | {{# | | align=center | | ||
| align=center | {{{{{#var:c#}}spawnprobability|}}} | {{#ifeq:{{{ {{#var:c#}}amount|}}}|0 | ||
| {{{ | |{{#ifexpr:{{{ {{#var:c#}}minamount}}}+{{{ {{#var:c#}}maxamount}}}>0 | ||
|{{#ifeq:{{{ {{#var:c#}}minamount}}}|{{{ {{#var:c#}}maxamount}}} | |||
|{{#ifeq:{{{ {{#var:c#}}minamount|}}}|0 | |||
|<span style="color:#808080">0</span> | |||
|{{{ {{#var:c#}}minamount|}}} | |||
}} | |||
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}} | |||
}} | |||
|<span style="color:#808080">0</span> | |||
}} | |||
|{{{ {{#var:c#}}amount|}}} | |||
}} | |||
| align=center | {{#ifexpr:({{#if:{{{ {{#var:c#}}minamount|}}}|{{{ {{#var:c#}}minamount}}}|0}}+{{#if:{{{ {{#var:c#}}maxamount|}}}|{{{ {{#var:c#}}maxamount}}}|0}}+{{#if:{{{ {{#var:c#}}amount|}}}|{{{ {{#var:c#}}amount}}}|0}})>0|{{#ifeq:{{{ {{#var:c#}}spawnprobability|}}}|0|<span style="color:#808080">Cleanup only</span>|{{#expr:{{{ {{#var:c#}}spawnprobability}}}*100}}%|100%}}|<span style="color:#808080">Cleanup only</span>}}</onlyinclude></includeonly><noinclude><!-- | |||
This is what we want: | |||
proba: | |||
if any of the 3 amounts defined and >0 but proba undefined: proba=1 | |||
if proba defined and = 0: cleanup only | |||
if amount OR maxamount defined and = 0: cleanup only | |||
else proba=proba | |||
amount: | |||
if proba defined and >0 but all 3 amounts undefined: amount=1 | |||
if amount defined and >0: amount=amount | |||
if amount undefined and minamount/maxamount defined: amount=minamount-maxamount | |||
if min==max: amount=minamount--></noinclude> |
Latest revision as of 16:03, 24 April 2024
Item | Campaign Spawn | Amount | Probability |
---|---|---|---|
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() ![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
lightcomponentround | ![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
4-6 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
The above documentation is transcluded from Template:Autofill tag/row/doc. (edit | history)