Template:Spell: Difference between revisions

From Timaresh
Jump to navigationJump to search
(Created page with "{{#vardefine:output| {{#expr: {{cityspell| {{citysize| {{{1|1}}} }} }} + {{#if: {{#pos:{{{2}}}|magical}} |1|0}} + {{#if: {{#pos:{{{3}}}|academic}} |1|0}} + ...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#vardefine:output|
{{#vardefine:gov|
  {{citygov|{{{2}}}|{{{4}}}}}
}}{{#vardefine:output|
   {{#expr:
   {{#expr:
       {{cityspell| {{citysize| {{{1|1}}} }} }} +
       {{cityspell| {{citysize| {{{1|1}}} }} }} +
       {{#if: {{#pos:{{{2}}}|magical}} |1|0}} +
       {{#if: {{#pos:{{#var:gov}}|magical}} |1|0}} +
       {{#if: {{#pos:{{{3}}}|academic}} |1|0}} +
       {{#if: {{#pos:{{{3}}}|academic}} |1|0}} +
       {{#if: {{#pos:{{{3}}}|holy site}} |2|0}} +
       {{#if: {{#pos:{{{3}}}|holy site}} |2|0}} +
       {{#if: {{#pos:{{{3}}}|magically attuned}} |2|0}} +
       {{#if: {{#pos:{{{3}}}|magically attuned}} |2|0}} +
       {{#if: {{#pos:{{{3}}}|pious}} |1|0}} +
       {{#if: {{#pos:{{{3}}}|pious}} |1|0}} +
      {{#if: {{#pos:{{{3}}}|planar crossroads}} |2|0}} +
       {{#if: {{#pos:{{{3}}}|superstitious}} |-2|0}}
       {{#if: {{#pos:{{{3}}}|superstitious}} |-2|0}}
   }}
   }}
}}{{#ifexpr:{{#var:output}}>9|9|{{#ifexpr:{{#var:output}}<1|1|{{#var:output}} }} }}
}}{{#ifexpr:{{#var:output}}>9|9|{{#ifexpr:{{#var:output}}<1|1|{{#var:output}} }} }}

Latest revision as of 01:40, 31 May 2013

1