Difference between revisions of "Template:BAM ability"

From Yugipedia
Jump to: navigation, search
(since we're no longer doing anything with the "All" in $input, just strip it to start with like we do "Necro")
(minor tweak)
 
(25 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
before we start, normalize the input a bit:
 
before we start, normalize the input a bit:
* strip "All" and "Necro"
+
* strip "All", "Non-" and "Necro"
 
* "Monsters" and "Spells" to "Monster" and "Spell", respectively
 
* "Monsters" and "Spells" to "Monster" and "Spell", respectively
  
-->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | All }} | Necro }} | Spells | Spell }} | Monsters | Monster }} }}<!--
+
-->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | All }} | Non- }} | Necro }} | - }} | Spells | Spell }} | Monsters | Monster }} }}<!--
  
 
-->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!--
 
-->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!--
 +
 +
-->{{ #vardefine: $non | {{ #if: {{ #pos: {{{1}}} | Non- }} | Non- }} }}<!--
  
 
-->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!--
 
-->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!--
  
-->{{ #arraydefine: $actions | Acid, Annihilate, Backfire, Big, Bloodlust, Boost, Break, Courage, Cripple, Destroy, Drain, Empathy, Explosion, Farewell, Feeble, First, Fragile, Growth, Heal, Hurt, Immune, Last, Mirror, Osmosis, Parting, Power, Promo, Rage, Requiem, Resurrect, Sacrifice, Self-Destruct, Shared, Shock, Shockwave, Sneak, Soothe, Sorrow, Special, Spirit, Timidity }}<!--
+
-->{{BAM ability/action|{{{1}}}}}<!--
 
 
-->{{ #arraydefine: $ability | {{{1}}} | /\s/ }}<!--
 
 
 
-->{{ #arrayintersect: $A | $ability | $actions }}<!--
 
 
 
-->{{ #vardefine: $action
 
| {{ #switch: {{ #arrayindex: $A | 0 }}
 
  | Acid    = Acid Jet
 
  | Big      = Big Explosion
 
  | Break    = Break Immunity
 
  | First    = First Strike
 
  | Last    = Last Stand
 
  | Parting  = Parting Gift
 
  | Power    = Power Redistribution
 
  | Shared  = Shared Fate
 
  | Spirit  = Spirit Protection
 
  | #default = {{ #arrayprint: $A }}
 
  }}
 
}}<!--
 
  
 
-->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!--
 
-->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!--
Line 48: Line 31:
  
 
-->{{ #vardefine: $target
 
-->{{ #vardefine: $target
| {{ #switch: {{ #var: $target }}
+
| {{ #var: $non }}{{ #switch: {{ #var: $target }}
  
 
   | Light  | Dark | Earth | Wind | Fire | Water
 
   | Light  | Dark | Earth | Wind | Fire | Water
   | Divine = [[{{ uc: {{ #var: $target }} }}]]
+
   | Divine = [[{{ uc: {{ #var: $target }} }}|{{ #var: $target }}]]
  
 
   | Fairy    | Fairies      = [[Fairy]]
 
   | Fairy    | Fairies      = [[Fairy]]
Line 72: Line 55:
 
   }} {{ #if: {{ #var: $monster }} | [[Monster Card|Monster]] }}
 
   }} {{ #if: {{ #var: $monster }} | [[Monster Card|Monster]] }}
 
}}<!--
 
}}<!--
 
-->{{ #ifeq: {{ #var: $target }} | {{ #var: $action }} | {{ #vardefine: $target }} }}<!--
 
  
 
-->{{ #switch: {{ #var: $action }}
 
-->{{ #switch: {{ #var: $action }}
| Acid Jet              = Once per Round, when this [[Monster Card|Monster]] loses [[Power]], your Opponent loses [[Life Points]]
+
| Acid Jet              = Once per Round, when this [[Monster Card|Monster]] loses [[ATK|Power]], your Opponent loses [[Life Points]]
| Annihilate            = [[Destroy]] your opponent's {{ #var: $target }}s
+
| Annihilate            = [[Destroy]] your Opponent's {{ #var: $target }}s
| Backfire              = You Lose [[Life Points]]
+
| Backfire              = You lose [[Life Points]]
 
| Big Explosion        = When [[destroy]]ed, all [[Monster Card|Monsters]] on the [[Playing Field|Field]] are destroyed. Both players lose [[Life Points|LP]]
 
| Big Explosion        = When [[destroy]]ed, all [[Monster Card|Monsters]] on the [[Playing Field|Field]] are destroyed. Both players lose [[Life Points|LP]]
 
| Bloodlust            = Once per Round, your Opponent loses [[Life Points]] after losing Life Points
 
| Bloodlust            = Once per Round, your Opponent loses [[Life Points]] after losing Life Points
Line 84: Line 65:
 
   | All your {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} gain
 
   | All your {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} gain
 
   | Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }} gains
 
   | Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }} gains
   }} [[Power]]
+
   }} [[ATK|Power]]
 
| Break Immunity        = {{ #if: {{ #var: $all }}
 
| Break Immunity        = {{ #if: {{ #var: $all }}
 
   | All your Opponent's {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose their
 
   | All your Opponent's {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose their
 
   | Your Opponent's [[Monster Card|Monster]] loses its
 
   | Your Opponent's [[Monster Card|Monster]] loses its
 
   }} Immunity
 
   }} Immunity
| Courage              = Gains [[Power]] if it is the only [[Monster Card|Monster]] of your side
+
| Courage              = Gains [[ATK|Power]] if it is the only [[Monster Card|Monster]] on your side
 
| Cripple              = {{ #if: {{ #var: $all }}
 
| Cripple              = {{ #if: {{ #var: $all }}
 
   | All your Opponent's {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose
 
   | All your Opponent's {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose
 
   | Your Opponent's [[Monster Card|Monster]] loses
 
   | Your Opponent's [[Monster Card|Monster]] loses
   }} [[Power]]
+
   }} [[ATK|Power]]
 
| Destroy              = [[Destroy]] your Opponent's {{ #var: $target }}
 
| Destroy              = [[Destroy]] your Opponent's {{ #var: $target }}
| Drain                = Gains [[Power]] when your opponent loses [[Life Points]]
+
| Drain                = Gains [[ATK|Power]] when your Opponent loses [[Life Points]]
| Empathy              = Loses/gains [[Power]] as you lose/gain [[Life Points]]
+
| Empathy              = Loses/Gains [[ATK|Power]] as you lose/gain [[Life Points]]
 
| Explosion            = When [[destroy]]ed, facing [[Monster Card|Monster]] is also destroyed. Both Players lose [[Life Points]]
 
| Explosion            = When [[destroy]]ed, facing [[Monster Card|Monster]] is also destroyed. Both Players lose [[Life Points]]
 
| Farewell              = You gain [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Farewell              = You gain [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
Line 102: Line 83:
 
   | All your {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose
 
   | All your {{ #if: {{ #var: $target }} | {{ #var: $target }}s | [[Monster Card|Monsters]] }} lose
 
   | Loses
 
   | Loses
   }} [[Power]] every Round
+
   }} [[ATK|Power]] every Round
| First Strike          = At Round start, if your [[Graveyard]] is empty, your opponent loses [[Life Points]]
+
| First Strike          = At Round start, if your [[Graveyard]] is empty, your Opponent loses [[Life Points]]
 
| Fragile              = [[Destroy]]ed after battling another [[Monster Card|Monster]]
 
| Fragile              = [[Destroy]]ed after battling another [[Monster Card|Monster]]
| Growth                = At Round End, your [[Monster Card|Monster]]'s [[Power]] doubles
+
| Growth                = At Round End, your [[Monster Card|Monster]]'s [[ATK|Power]] doubles
 
| Heal | Soothe        = {{ #if: {{ #var: $target }}
 
| Heal | Soothe        = {{ #if: {{ #var: $target }}
 
   | Your Opponent gains
 
   | Your Opponent gains
 
   | You gain
 
   | You gain
 
   }} [[Life Points]]
 
   }} [[Life Points]]
| Hurt                  = Opponent loses [[Life Points]]
+
| Hurt                  = Your Opponent loses [[Life Points]]
| Immune                = Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }}{{ #if: {{ #var: $all }} |s }} cannot lose [[Power]] or be [[destroy]]ed
+
| Immune                = {{ #if: {{ #var: $all }}
| Last Stand            = Doubles its [[Power]] if there are no cards in your [[Main Deck|Deck]] at Round Start
+
  | All your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monsters]] }}
 +
  | Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }}
 +
  }} cannot lose [[ATK|Power]] or be [[destroy]]ed
 +
| Last Stand            = Doubles its [[ATK|Power]] if there are no cards in your [[Main Deck|Deck]] at Round Start
 
| Mirror                = Every Round, the first time you lose [[Life Points]], your Opponent loses Life Points
 
| Mirror                = Every Round, the first time you lose [[Life Points]], your Opponent loses Life Points
| Osmosis              = Drain [[Power]] from your Opponent's [[Monster Card|Monster]] to yours
+
| Osmosis              = Drain [[ATK|Power]] from your Opponent's [[Monster Card|Monster]] to yours
 
| Parting Gift          = Your Opponent loses [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Parting Gift          = Your Opponent loses [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
| Power Redistribution  = When this [[Monster Card|Monster]] is [[destroy]]ed, all your Monsters on the field gain [[Power]]
+
| Power Redistribution  = When this [[Monster Card|Monster]] is [[destroy]]ed, all your Monsters on the field gain [[ATK|Power]]
| Rage                  = Gains [[Power]] when you lose [[Life Points]]
+
| Rage                  = Gains [[ATK|Power]] when you lose [[Life Points]]
| Requiem              = Your Opponent's [[Monster Card|Monsters]] lose [[Power]] when this Monster is [[destroy]]ed
+
| Requiem              = Your Opponent's [[Monster Card|Monsters]] lose [[ATK|Power]] when this Monster is [[destroy]]ed
| Resurrect            = One random {{ #var: $target }} is shuffled from your [[Graveyard]] into your [[Main Deck|Deck]]
+
| Resist                = This [[Monster Card|Monster]] is unaffected by the effects of any other Cards on the field
| Sacrifice            = [[Destroy]] {{ #if: {{ #var: $all }}
+
| Resurrect            = One random {{ #var: $target }} from your [[Graveyard]] is shuffled into your [[Main Deck|Deck]]
 +
| Sacrifice            = [[Destroy]] {{ #if: {{ #var: $all }}{{ #switch: {{ #var: $target }} | [[Monster Card|Monster]] | [[Spell Card|Spell]] = | 1 }}
 
   | all your {{ #var: $target }}s
 
   | all your {{ #var: $target }}s
 
   | your {{ #var: $target }}
 
   | your {{ #var: $target }}
Line 126: Line 111:
 
| Self-Destruct        = [[Destroy]] at Round End
 
| Self-Destruct        = [[Destroy]] at Round End
 
| Shared Fate          = {{ #if: {{ #var: $all }}
 
| Shared Fate          = {{ #if: {{ #var: $all }}
   | When this card is [[destroy]]ed, all Opponent's [[Monster Card|Monsters]] are destroyed
+
   | When this card is [[destroy]]ed, all your Opponent's [[Monster Card|Monsters]] are also destroyed
   | When destroyed, your Opponent's [[Monster Card|Monster]] is also destroyed
+
   | When [[destroy]]ed, your Opponent's [[Monster Card|Monster]] is also destroyed
 +
  }}
 +
| Shock                = Your Opponent loses [[Life Points]] when your [[Monster Card|Monster]] [[attack]]s
 +
| Shockwave            = Once per Round, when this [[Monster Card|Monster]] gains [[ATK|Power]], your Opponent loses [[Life Points]]
 +
| Silence              = {{ #if: {{ #var: $all }}
 +
  | Your Opponent's {{ #var: $target }} cannot [[activate]] its effect
 +
  | All your Opponent's {{ #var: $target }}s cannot [[activate]] their effects
 
   }}
 
   }}
| Shock                = Your Opponent loses [[Life Points]] when your [[Monster Card|Monster]] attacks
 
| Shockwave            = Once per Round, when this card gains [[Power]], your opponent loses [[Life Points]]
 
 
| Sneak                = [[Destroy]] your Opponent's [[Monster Card|Monster]] before it [[attack]]s
 
| Sneak                = [[Destroy]] your Opponent's [[Monster Card|Monster]] before it [[attack]]s
 
| Sorrow                = You lose [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Sorrow                = You lose [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Spirit Protection    = When your [[Monster Card|Monster]] is [[destroy]]ed, all your other Monsters gain Immunity
 
| Spirit Protection    = When your [[Monster Card|Monster]] is [[destroy]]ed, all your other Monsters gain Immunity
| Timidity              = Loses [[Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play
+
| Timidity              = Loses [[ATK|Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play
| Promo | Special       =  
+
 
 +
| Fusion | Promo | Special =  
 
}}. {{ #if: {{ #var: $necro }}
 
}}. {{ #if: {{ #var: $necro }}
| This effect increases with each card in your [[Graveyard]].
+
| This effect increases with each Card in your [[Graveyard]].
 
}}
 
}}

Latest revision as of 21:53, 1 June 2014

.