Advertisement
Noobyhead99

kwmwYGOProScript

Oct 21st, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. -- Kanye West Milk Warrior
  2. function c19550163.initial_effect(c)
  3.     -- Xyz Summon
  4.     aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,1),2)
  5.     c:EnableReviveLimit()
  6.     -- Once per turn: You can detach 1 Xyz material from this card, inflict 10,000 points of damage to your opponent for every card in their hand.
  7.     local e1 = Effect.CreateEffect(c)
  8.     e1:SetDescription(aux.Stringid(19550163,0))
  9.     e1:SetType(EFFECT_TYPE_IGNITION)
  10.     e1:SetCountLimit(1)
  11.     e1:SetCategory(CATEGORY_DAMAGE)
  12.     e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  13.     e1:SetTarget(c46130346.damtg)
  14.     e1:SetOperation(c46130346.damop)
  15.     c:RegisterEffect(e1)
  16.     -- This card cannot be targeted or destroyed by card effects, or be destroyed by battle.
  17.     local e2 = Effect.CreateEffect(c)
  18.     e2:SetType(EFFECT_TYPE_SINGLE)
  19.     e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
  20.     e2:SetValue(1)
  21.     c:RegisterEffect(e2)
  22. end
  23. function c19550163.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
  24.     if chk == 0 then
  25.         return true
  26.     end
  27.     Duel.SetTargetPlayer(1-tp)
  28.     Duel.SetTargetParam(500)
  29.     Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
  30. end
  31. function c19550163.damop(e,tp,eg,ep,ev,re,r,rp)
  32.     local p, d = Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
  33.     Duel.Damage(p,d,REASON_EFFECT)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement