Difference between revisions of "Template:Mob Combat InfoBox"

m
m
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#arraydefine:slayerTypes|{{#replace:{{{slayer}}}|eodon tribe|Eodon Tribe}} }}{{#arraysort:slayerTypes|asc}}{| class=infobox style="clear: right;"
+
{{#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>
 
|-
 
|-
 
| <span class="translatable">Base Damage</span> {{#ifeq: {{Boolean|{{{disableParagon}}} }} | 1 || ᵉ}} || {{#if:{{{baseDamage|}}}|{{{baseDamage}}}|<span class="translatable">unknown</span>{{Missing Info}}}}
 
| <span class="translatable">Base Damage</span> {{#ifeq: {{Boolean|{{{disableParagon}}} }} | 1 || ᵉ}} || {{#if:{{{baseDamage|}}}|{{{baseDamage}}}|<span class="translatable">unknown</span>{{Missing Info}}}}
Line 6: Line 6:
 
| <span class="translatable">Ranged Attack</span> || {{#if:{{{rangedAttack|}}}|<span class="translatable">{{{rangedAttack}}}</span>|<span class="translatable">unknown</span>{{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|<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">[[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|<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|<span class="translatable">Anti-Slayer</span>]] ||  {{#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}} }} | , }}
+
  | dinosaur = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Myrmidex Slayer|Myrmidex]]</span><br/>}}
 
+
  | myrmidex = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Dinosaur Slayer|Dinosaur]]</span><br/>}}
{{#var:i}}: {{#arrayindex:val | 0}}
+
  | elemental = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Abyss Slayer|Abyss]]</span><br/>}}
 
+
  | eodon = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">Everything not in Eodon</span><br/>}}
{{#switch: {{#arrayindex:val | 0}}
+
  | eodon tribe = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">Everything in Eodon not Eodon Tribe</span><br/>}}
| Abyss = <span class="translatable">Elemental</span><br/><span class="translatable">Fey</span><br/>
+
  | fey = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Abyss Slayer|Abyss]]</span><br/>}}
  | Arachnid = <span class="translatable">Reptile</span><br/>
+
  | repond = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Undead Slayer|Undead]]</span><br/>}}
  | Dinosaur = <span class="translatable">Myrmidex</span><br/>
+
  | reptile = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Arachnid Slayer|Arachnid]]</span><br/>}}
  | Myrmidex = <span class="translatable">Dinosaur</span><br/>
+
  | undead = {{#vardefine:antislayer|{{#var:antislayer}}<span class="translatable">[[UO:Repond Slayer|Repond]]</span><br/>}}
  | Elemental = <span class="translatable">Abyss</span><br/>
+
  | none =  
  | Eodon = <span class="translatable">Everything not in Eodon</span><br/>
+
  | #default  =  
  | Eodon Tribe = <span class="translatable">Everything in Eodon not Eodon Tribe</span><br/>
+
}}|unknown}}{{#ifeq:0|{{#len:{{#var:antislayer}}}}|<span class="translatable">None</span>|{{#var:antislayer}}}}
  | Fey = <span class="translatable">Abyss</span><br/>
 
  | Repond = <span class="translatable">Undead</span><br/>
 
  | Reptile = <span class="translatable">Arachnid</span><br/>
 
  | Undead = <span class="translatable">Repond</span><br/>
 
  | None = <span class="translatable">none</span>
 
  | #default  = <span class="translatable">none</span>
 
}}}}|unknown}}
 
 
|-
 
|-
 
| <span class="translatable">Speed</span> || {{#if:{{{speed|}}}|<span class="translatable">{{{speed}}}</span>|<span class="translatable">unknown</span>{{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|<span class="translatable">Auto-Dispel?</span>]] || {{#if:{{{autoDispel|}}}|<span class="translatable">{{{autoDispel}}}</span>|<span class="translatable">unknown</span>{{Missing Info}}}}
+
| <span class="translatable">Special Moves & Abilities</span> || {{#arraydefine:specialAttackArray|{{{specialAttack}}}}}{{#replace:{{#if:{{{specialAttack|}}}|{{#arrayprint:specialAttackArray|<br/>|@@@@ |{{#switch: @@@@
|-
+
| Bushido
| <span class="translatable">Special Attacks?</span> || {{#if:{{{specialAttack|}}}|<span class="translatable">{{{specialAttack}}}</span>|<span class="translatable">unknown</span>{{Missing Info}}}}
+
| Chivalry
 +
| Discordance
 +
| Magery
 +
| 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 ||{{!}}-
 
{{#ifeq: {{Boolean|{{{disableParagon}}} }} | 1 ||{{!}}-
 
{{!}}style="font-weight:500;padding-top:1em;" colspan="2"{{!}} <small>ᵉ <span class="translatable">5 points higher if paragon.</span></small>
 
{{!}}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.