Template:AdjustReagent: Difference between revisions
From Space Station 14 Wiki
(Created page with "{{#ifexpr:{{{amount|0}}}<0 |Removes {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} |Adds {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} }}{{#if:{{{when|}}}| when {{{when}}}}}.") |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexpr:{{{amount|0}}}<0 | {{Chance to|{{#ifexpr:{{{amount|0}}}<0 | ||
|Removes {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} | |{{#ifeq:{{{prob}}}|1|Removes|remove}} {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} | ||
|Adds {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} | |{{#ifeq:{{{prob}}}|1|Adds|add}} {{#expr:abs {{{amount|0}}}}} {{#invoke:Chemistry Lookup|readscalar|{{{reagent}}}|name}} | ||
}}{{#if:{{{when|}}}| when {{{when}}}}}. | }}{{#if:{{{when|}}}| when {{{when}}}}}.|prob={{{prob}}}}} |
Revision as of 23:37, 17 January 2022
Expression error: Unrecognized punctuation character "{".% chance to add 0 Lua error in Module:Chemistry_Lookup at line 9: attempt to index field '?' (a nil value)..