Difference between revisions of "Template:Mob Combat InfoBox"

m
m
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#arraydefine:slayerTypes|{{{slayer}}}}}{{#arraysort:slayerTypes|asc}}{| class=infobox
+
{{#arraydefine:slayerTypes|{{#replace:{{{slayer|None}}}|eodon tribe|Eodon Tribe}} }}{{#arraysort:slayerTypes|asc}}{| class=infobox style="clear: right;"
|class=titlecell colspan="2"| Combat
+
|class=titlecell colspan="2"| <span class="translatable">Combat</span>
 
|-
 
|-
| Base Damage {{#ifeq: {{{disableParagon}}}|true|<noinclude>|}}ᵉ{{#ifeq: {{{disableParagon}}}|true|</noinclude>|}}                   || {{#if:{{{baseDamage|}}}|{{{baseDamage}}}|unknown{{Missing Info}}}}
+
| <span class="translatable">Base Damage</span> {{#ifeq: {{Boolean|{{{disableParagon}}} }} | 1 || }} || {{#if:{{{baseDamage|}}}|{{{baseDamage}}}|<span class="translatable">unknown</span>{{Missing Info}}}}
 
|-
 
|-
| Ranged Attack                   || {{#if:{{{rangedAttack|}}}|{{{rangedAttack}}}|unknown{{Missing Info}}}}
+
| <span class="translatable">Ranged Attack</span> || {{#if:{{{rangedAttack|}}}|<span class="translatable">{{{rangedAttack}}}</span>|<span class="translatable">unknown</span>{{Missing Info}}}}
 
|-
 
|-
| [[UO:Slayer Vulnerability|Slayer]] || {{#if:{{{slayer|}}}|{{#arrayprint:slayerTypes |<br/> |@@@@ |{{#ifeq:@@@@|None||[[}}{{#replace:{{ucfirst:@@@@}}|eodon tribe|Eodon Tribe}} Slayer|{{#replace:{{ucfirst:@@@@}}|eodon tribe|Eodon Tribe}}]][[Category:UO:Creatures with {{#replace:{{ucfirst:@@@@}}|eodon tribe|Eodon Tribe}} slayer vulnerability|UO:Creatures with {{#replace:{{ucfirst:@@@@}}|eodon tribe|Eodon Tribe}} slayer vulnerability{{#ifeq:@@@@|None||]]}} }}|unknown{{Missing Info}} }}
+
| [[UO:Slayer Vulnerability|<span class="translatable">Slayer</span>]] || {{#if: {{{slayer|}}} | {{#ifeq: {{{slayer|}}} |<span class="translatable">none</span> | <span class="translatable">none</span> |{{#arrayprint:slayerTypes |<br/> |@@@@ |{{#vardefine: slayer | {{ucfirst:@@@@}} }}<span class="translatable">{{#ifeq:{{#var:slayer}}|None|None|[[UO:{{#var:slayer}} Slayer|{{#var:slayer}}]]</span>[[Category:UO:Creatures with {{#var:slayer}} slayer vulnerability]]}} }} }} | <span class="translatable">unknown</span>{{Missing Info}} }}
 
|-
 
|-
| [[UO:Slayer Vulnerability|Anti-Slayer]] ||  {{#if:{{{slayer|}}}|{{#loop: i
+
| [[UO:Slayer Vulnerability|<span class="translatable">Anti-Slayer</span>]] ||  {{#vardefine:antislayer|}}{{#arrayprint:slayerTypes||@@@@|{{#switch: {{lc:@@@@}}
  | 0
+
| abyss = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Elemental Slayer|Elemental]]</span><br/><span class="translatable">Fey</span><br/>}}
  | {{#arraysize:slayerTypes}}
+
| arachnid = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Reptile Slayer|Reptile]]</span><br/>}}
  | {{#arraydefine: val | {{#arrayindex:slayerTypes | {{#var:i}} }} | , }}{{#switch: {{#arrayindex:val | 0}}
+
  | dinosaur = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Myrmidex Slayer|Myrmidex]]</span><br/>}}
| Abyss = Elemental<br/>fey<br/>
+
  | myrmidex = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Dinosaur Slayer|Dinosaur]]</span><br/>}}
  | Arachnid = Reptile<br/>
+
  | elemental = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Abyss Slayer|Abyss]]</span><br/>}}
| Dinosaur = Myrmidex<br/>
+
  | eodon = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">Everything not in Eodon</span><br/>}}
  | Myrmidex = Dinosaur<br/>
+
  | eodon tribe = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">Everything in Eodon not Eodon Tribe</span><br/>}}
  | Elemental = Abyss<br/>
+
  | fey = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Abyss Slayer|Abyss]]</span><br/>}}
  | Eodon = Everything not in Eodon<br/>
+
  | repond = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Undead Slayer|Undead]]</span><br/>}}
  | Eodon Tribe = Everything not Eodon Tribe<br/>
+
  | reptile = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Arachnid Slayer|Arachnid]]</span><br/>}}
  | Fey = Abyss<br/>
+
  | undead = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Repond Slayer|Repond]]</span><br/>}}
  | Repond = Undead<br/>
+
  | none =  
  | Reptile = Arachnid<br/>
+
  | #default  =  
  | Undead = repond<br/>
+
}}|unknown}}{{#ifeq:0|{{#len:{{#var:antislayer}}}}|<span class="translatable">None</span>|{{#var:antislayer}}}}
  | None = none
 
  | default  = none
 
}}}}|unknown}}
 
 
|-
 
|-
| Speed                           || {{#if:{{{speed|}}}|{{{speed}}}|unknown{{Missing Info}}}}
+
| <span class="translatable">Speed</span> || {{#if:{{{speed|}}}|<span class="translatable">{{{speed}}}</span>|<span class="translatable">unknown</span>{{Missing Info}}}}
 +
{{BoolInfoLine
 +
| field = Auto-Dispel?
 +
| param = {{{autoDispel|}}}
 +
| tip = Does this mobile auto-dispel summons?
 +
| unknownCat = Mobiles with missing info
 +
}}
 
|-
 
|-
| [[UO:Auto-dispel|Auto-Dispel?]]    || {{#if:{{{autoDispel|}}}|{{{autoDispel}}}|unknown{{Missing Info}}}}
+
| <span class="translatable">Special Moves & Abilities</span> || {{#arraydefine:specialAttackArray|{{{specialAttack}}}}}{{#replace:{{#if:{{{specialAttack|}}}|{{#arrayprint:specialAttackArray|<br/>|@@@@ |{{#switch: @@@@
|-
+
| Bushido
| Special Attacks?                || {{#if:{{{specialAttack|}}}|{{{specialAttack}}}|unknown{{Missing Info}}}}
+
| Chivalry
{{#ifeq: {{{disableParagon}}}|true|<noinclude>|}}|-
+
| Discordance
|style="font-weight:500;padding-top:1em;"| <small>ᵉ 5 points higher if paragon.</small>
+
| Magery
{{#ifeq: {{{disableParagon}}}|true|</noinclude>|}}|}
+
| Mysticism
 +
| Necromancy
 +
| Ninjitsu
 +
| Spellweaving
 +
| Mimic
 +
| Strangle = [[UO:@@@@ (ability)|@@@@]]
 +
| #default = [[UO:@@@@]]
 +
}}[[Category:UO Mobiles using @@@@]]}}|<span class="translatable">unknown</span>{{Missing Info}}}}|[[UO:None]]|None}}
 +
{{#ifeq: {{Boolean|{{{disableParagon}}} }} | 1 ||{{!}}-
 +
{{!}}style="font-weight:500;padding-top:1em;" colspan="2"{{!}} <small>ᵉ <span class="translatable">5 points higher if paragon.</span></small>
 +
}}
 +
|}

Latest revision as of 00:42, 11 July 2017

Combat
Base Damage unknown
Ranged Attack unknown
Slayer unknown
Anti-Slayer None
Speed unknown
Does this mobile auto-dispel summons?Auto-Dispel? unknown
Special Moves & Abilities unknown
5 points higher if paragon.