Commit d911a7bc authored by Tachibana's avatar Tachibana

nmbd

parent ad8058a5
No preview for this file type
expansions/pics/16130005.jpg

123 KB | W: | H:

expansions/pics/16130005.jpg

148 KB | W: | H:

expansions/pics/16130005.jpg
expansions/pics/16130005.jpg
expansions/pics/16130005.jpg
expansions/pics/16130005.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -33,7 +33,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--spsummon
local tt=e:GetLabelObject():GetLabel()
if tt>1 then
if tt>0 then
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(m,1))
e4:SetCategory(CATEGORY_TOGRAVE)
......@@ -48,7 +48,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e4)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,4))
end
if tt>2 then
if tt>1 then
--tohand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,2))
......@@ -62,7 +62,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,5))
end
if tt>3 then
if tt>2 then
--Atk update
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
......@@ -88,7 +88,7 @@ function cm.cfilter(c,tp)
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.cfilter,nil,tp)
return g
return g:GetCount()>0
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -3,7 +3,6 @@ Duel.LoadScript("c16199990.lua")
local m,cm=rk.set(16130005,"BOW")
function cm.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--special summon rule
local e0=Effect.CreateEffect(c)
......@@ -25,6 +24,46 @@ function cm.initial_effect(c)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
--Gain effect
--remove
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(cm.condition1)
e2:SetTarget(cm.retg)
e2:SetOperation(cm.reop)
c:RegisterEffect(e2)
--Cannnot SpecialSummon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,2))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(cm.condition2)
e3:SetTarget(cm.cntg)
e3:SetOperation(cm.cnop)
c:RegisterEffect(e3)
--Hand To Deck
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(m,3))
e4:SetCategory(CATEGORY_TODECK)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(cm.condition3)
e4:SetTarget(cm.tdgtg)
e4:SetOperation(cm.tdgop)
c:RegisterEffect(e4)
--SpecialSummon Count
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetOperation(cm.op)
c:RegisterEffect(e5)
end
function cm.sprfilter(c,tp)
return c:IsAbleToGraveAsCost() and c:IsRace(RACE_ZOMBIE) and (c:IsControler(tp) or c:IsFaceup())
......@@ -46,7 +85,7 @@ function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,cm.sprfilter1,false,2,g:GetCount(),c,tp)
Duel.SendtoGrave(sg,REASON_COST)
Duel.SendtoGrave(sg,REASON_SYNCHRO)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -60,9 +99,93 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_GRAVE,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function cm.condition1(e,tp)
return Duel.GetFlagEffect(tp,m)>0
end
function cm.refilter(c)
return c:IsRace(RACE_ZOMBIE) and c:IsAbleToRemove()
end
function cm.retg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.refilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
end
function cm.reop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.refilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
if og:GetCount()>0 then
local tc=og:GetFirst()
if tc:IsLevelAbove(4) then
local e1_1=Effect.CreateEffect(e:GetHandler())
e1_1:SetType(EFFECT_TYPE_SINGLE)
e1_1:SetCode(EFFECT_CANNOT_TRIGGER)
e1_1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1_1,true)
end
end
end
end
function cm.condition2(e,tp)
return Duel.GetFlagEffect(tp,m)>1
end
function cm.cntg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function cm.cnop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(0,1)
e1:SetTarget(cm.splimit)
Duel.RegisterEffect(e1,tp)
end
function cm.splimit(e,c)
return c:IsLocation(LOCATION_HAND)
end
function cm.condition3(e,tp)
return Duel.GetFlagEffect(tp,m)>2
end
function cm.tdgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_HAND)
end
function cm.tdgop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetCondition(cm.tdcon)
e1:SetOperation(cm.tdop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>5
end
function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
local flag=0
while Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>5 and flag==0 do
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,REASON_RULE)
flag=0
else
flag=1
end
end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,m,0,0,1)
end
\ No newline at end of file
......@@ -93,6 +93,11 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local rg=g:SelectSubGroup(tp,aux.mzctcheck,false,1,1,tp)
aux.GCheckAdditional=nil
Duel.Remove(rg,POS_FACEUP,REASON_COST)
local e1_1=Effect.CreateEffect(e:GetHandler())
e1_1:SetType(EFFECT_TYPE_SINGLE)
e1_1:SetCode(EFFECT_CANNOT_TRIGGER)
e1_1:SetReset(RESET_EVENT+0x1fe0000)
rg:GetFirst():RegisterEffect(e1_1,true)
end
function cm.thfilter(c,e,tp)
return c:IsAbleToHand() and not c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsRace(RACE_ZOMBIE)
......
......@@ -42,6 +42,7 @@ function c50218139.initial_effect(c)
e5:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_LEAVE_FIELD)
e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCondition(c50218139.tkcon)
e5:SetTarget(c50218139.tktg)
e5:SetOperation(c50218139.tkop)
......
......@@ -42,6 +42,7 @@ function c50218140.initial_effect(c)
e5:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_LEAVE_FIELD)
e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCondition(c50218140.tkcon)
e5:SetTarget(c50218140.tktg)
e5:SetOperation(c50218140.tkop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment