Commit e4750418 authored by mercury233's avatar mercury233

update new card & scripts

parent 9b6d7a78
#created by ... #created by ...
#main #main
100200191
101102000 101102000
101102081 101102081
101102082 101102082
......
pics/100270211.jpg

82.8 KB | W: | H:

pics/100270211.jpg

82.7 KB | W: | H:

pics/100270211.jpg
pics/100270211.jpg
pics/100270211.jpg
pics/100270211.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101102088.jpg

88.9 KB | W: | H:

pics/101102088.jpg

89.2 KB | W: | H:

pics/101102088.jpg
pics/101102088.jpg
pics/101102088.jpg
pics/101102088.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101102089.jpg

86 KB | W: | H:

pics/101102089.jpg

86.2 KB | W: | H:

pics/101102089.jpg
pics/101102089.jpg
pics/101102089.jpg
pics/101102089.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101103021.jpg

91.6 KB | W: | H:

pics/101103021.jpg

92.2 KB | W: | H:

pics/101103021.jpg
pics/101103021.jpg
pics/101103021.jpg
pics/101103021.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101103040.jpg

96.2 KB | W: | H:

pics/101103040.jpg

96.5 KB | W: | H:

pics/101103040.jpg
pics/101103040.jpg
pics/101103040.jpg
pics/101103040.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101103041.jpg

84.5 KB | W: | H:

pics/101103041.jpg

84.4 KB | W: | H:

pics/101103041.jpg
pics/101103041.jpg
pics/101103041.jpg
pics/101103041.jpg
  • 2-up
  • Swipe
  • Onion skin
--氷結界の随身
--
--LUA by Kohana Sonogami
function c100200191.initial_effect(c)
--Special Summon 1
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100200191,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,100200191)
e1:SetCost(c100200191.spcost1)
e1:SetTarget(c100200191.sptg1)
e1:SetOperation(c100200191.spop1)
c:RegisterEffect(e1)
--Special Summon 2
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100200191,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(aux.exccon)
e2:SetCountLimit(1,100200191+100)
e2:SetTarget(c100200191.sptg2)
e2:SetOperation(c100200191.spop2)
c:RegisterEffect(e2)
end
function c100200191.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c100200191.spfilter1(c,e,tp)
return c:IsSetCard(0x2f) and c:IsType(TYPE_MONSTER) and c:IsLevelAbove(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c100200191.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c100200191.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c100200191.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100200191.spfilter1,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
function c100200191.spfilter2(c)
return c:IsFaceup() and c:IsLevelAbove(3) and c:IsAttribute(ATTRIBUTE_WATER)
end
function c100200191.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c100200191.spfilter2(chkc) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(c100200191.spfilter2,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c100200191.spfilter2,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
function c100200191.spop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) or tc:GetLevel()<3 then return end
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(-2)
tc:RegisterEffect(e1)
if not tc:IsImmuneToEffect(e1) and c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_REDIRECT)
e2:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e2,true)
end
end
...@@ -39,7 +39,7 @@ function c101102095.tgfilter(c) ...@@ -39,7 +39,7 @@ function c101102095.tgfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and not c:IsDisabled() return c:IsType(TYPE_EFFECT) and c:IsFaceup() and not c:IsDisabled()
end end
function c101102095.tgfilter2(c) function c101102095.tgfilter2(c)
return c:IsSetCard(0x258) and c:IsAbleToRemove() return c:IsSetCard(0x258) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c101102095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101102095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return c101102095.tgfilter(chkc) and chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) end if chkc then return c101102095.tgfilter(chkc) and chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) end
...@@ -73,7 +73,6 @@ function c101102095.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,6 @@ function c101102095.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c101102095.drcon(e,tp,eg,ep,ev,re,r,rp) function c101102095.drcon(e,tp,eg,ep,ev,re,r,rp)
local ec=Duel.GetAttacker() local ec=Duel.GetAttacker()
local bc=ec:GetBattleTarget() local bc=ec:GetBattleTarget()
......
...@@ -53,6 +53,7 @@ end ...@@ -53,6 +53,7 @@ end
function c101103023.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101103023.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c101103023.spop(e,tp,eg,ep,ev,re,r,rp) function c101103023.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -60,6 +61,7 @@ function c101103023.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +61,7 @@ function c101103023.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.SelectYesNo(tp,aux.Stringid(101103023,2)) then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.SelectYesNo(tp,aux.Stringid(101103023,2)) then
Duel.BreakEffect()
local g=Group.FromCards(c) local g=Group.FromCards(c)
if tc:IsRelateToEffect(e) then g:AddCard(tc) end if tc:IsRelateToEffect(e) then g:AddCard(tc) end
g=g:Filter(Card.IsFaceup,nil) g=g:Filter(Card.IsFaceup,nil)
......
--スプリガンズ・シップ エクスブロウラー --スプリガンズ・シップ エクスブロウラー
--Scripted by mallu11 --Scripted by mallu11 & mercury233
function c101103046.initial_effect(c) function c101103046.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,8,2,nil,nil,99) aux.AddXyzProcedure(c,nil,8,2,nil,nil,99)
...@@ -28,80 +28,81 @@ function c101103046.initial_effect(c) ...@@ -28,80 +28,81 @@ function c101103046.initial_effect(c)
e2:SetTarget(c101103046.rmtg) e2:SetTarget(c101103046.rmtg)
e2:SetOperation(c101103046.rmop) e2:SetOperation(c101103046.rmop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end if Duel.SelectField==nil then
function c101103046.desfilter(c) function Duel.SelectField(tp,count,s,o,filter)
if c:IsLocation(LOCATION_SZONE) then --temp lua ver
return c:GetSequence()<5 --assume count is always 1, s is always 0
else local off=1
return true local ops={}
end local opval={}
end if o&LOCATION_MZONE>0 then
--str2 to str6 is Spell&Trap Zone(from right to left) for i=0,4 do
--str7 to str13 is Monster Zone(from right to left) if 1<<(i+16)&filter==0 then
function c101103046.seqfilter(c,i,chk) ops[off]=aux.Stringid(101103046,i+2)
local seq=c:GetSequence() opval[off-1]=i
if i==11 then off=off+1
return (seq==5 or (chk and seq==1)) and c:IsLocation(LOCATION_MZONE) end
elseif i==12 then
return (seq==6 or (chk and seq==3)) and c:IsLocation(LOCATION_MZONE)
else
local loc
local j
if i<6 then
loc=LOCATION_MZONE
j=0
else
loc=LOCATION_SZONE
j=5
end end
if c:IsLocation(loc) then end
return seq==i-j-1 if o&LOCATION_SZONE>0 then
else for i=5,9 do
if i==7 then if 1<<(i+4+16)&filter==0 then
return seq==i-j or seq==i-j-1 or seq==i-j-2 or seq==5 ops[off]=aux.Stringid(101103046,i+2)
elseif i==9 then opval[off-1]=i+4
return seq==i-j or seq==i-j-1 or seq==i-j-2 or seq==6 off=off+1
else
return (seq==i-j or seq==i-j-1 or seq==i-j-2) and seq<5
end end
end end
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sel=Duel.SelectOption(tp,table.unpack(ops))
return 1<<(opval[sel]+16)
end
end
end
function c101103046.desfilter(c)
return not c:IsLocation(LOCATION_SZONE) or c:GetSequence()<5
end
function c101103046.seqfilter(c,seq)
local loc=LOCATION_MZONE
if seq>8 then
loc=LOCATION_SZONE
seq=seq-8
end
if seq>=5 and seq<=7 then return false end
local cseq=c:GetSequence()
local cloc=c:GetLocation()
if cloc==LOCATION_SZONE and cseq>=5 then return false end
if cloc==LOCATION_MZONE and cseq>=5 and loc==LOCATION_MZONE
and (seq==1 and cseq==5 or seq==3 and cseq==6) then return true end
return cseq==seq or cloc==loc and math.abs(cseq-seq)==1
end end
function c101103046.seqtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101103046.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and Duel.IsExistingMatchingCard(c101103046.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT)
local b={} and Duel.IsExistingMatchingCard(c101103046.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end
for i=1,12 do local filter=0
b[i]=Duel.IsExistingMatchingCard(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,1,nil,i) for i=0,16 do
end if not Duel.IsExistingMatchingCard(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,1,nil,i) then
local off=0 filter=filter|1<<(i+16)
local ops={}
local opval={}
off=1
for i=1,12 do
if b[i] then
ops[off]=aux.Stringid(101103046,i+1)
opval[off-1]=i
off=off+1
end end
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local op=Duel.SelectOption(tp,table.unpack(ops)) local flag=Duel.SelectField(tp,1,0,LOCATION_ONFIELD,filter)
e:SetLabel(opval[op]) local seq=math.log(flag>>16,2)
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(101103046,opval[op]+1)) e:SetLabel(seq)
local g=Duel.GetMatchingGroup(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,nil,opval[op],true) local g=Duel.GetMatchingGroup(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,nil,seq)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c101103046.seqop(e,tp,eg,ep,ev,re,r,rp) function c101103046.seqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local i=e:GetLabel()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local ct=Duel.GetMatchingGroupCount(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,nil,i,true) local seq=e:GetLabel()
local ct=Duel.GetMatchingGroupCount(c101103046.seqfilter,tp,0,LOCATION_ONFIELD,nil,seq)
if ct<=0 or not c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) then return end if ct<=0 or not c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) then return end
local count=c:RemoveOverlayCard(tp,1,ct,REASON_EFFECT) local count=c:RemoveOverlayCard(tp,1,ct,REASON_EFFECT)
if count<=0 then return end if count<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c101103046.seqfilter,tp,0,LOCATION_ONFIELD,count,count,nil,i,true) local g=Duel.SelectMatchingCard(tp,c101103046.seqfilter,tp,0,LOCATION_ONFIELD,count,count,nil,seq)
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
......
--スプリガンズ・ブラスト! --スプリガンズ・ブラスト!
--Scripted by mallu11 --Scripted by mallu11 & mercury233
function c101103069.initial_effect(c) function c101103069.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -13,6 +13,36 @@ function c101103069.initial_effect(c) ...@@ -13,6 +13,36 @@ function c101103069.initial_effect(c)
e1:SetTarget(c101103069.target) e1:SetTarget(c101103069.target)
e1:SetOperation(c101103069.activate) e1:SetOperation(c101103069.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if Duel.SelectField==nil then
function Duel.SelectField(tp,count,s,o,filter)
--temp lua ver
--assume count is always 1, s is always 0
local off=1
local ops={}
local opval={}
if o&LOCATION_MZONE>0 then
for i=0,4 do
if 1<<(i+16)&filter==0 then
ops[off]=aux.Stringid(101103046,i+2)
opval[off-1]=i
off=off+1
end
end
end
if o&LOCATION_SZONE>0 then
for i=5,9 do
if 1<<(i+4+16)&filter==0 then
ops[off]=aux.Stringid(101103046,i+2)
opval[off-1]=i+4
off=off+1
end
end
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sel=Duel.SelectOption(tp,table.unpack(ops))
return 1<<(opval[sel]+16)
end
end
end end
function c101103069.confilter(c) function c101103069.confilter(c)
return c:IsFaceup() and c:IsSetCard(0x257) return c:IsFaceup() and c:IsSetCard(0x257)
...@@ -23,37 +53,21 @@ end ...@@ -23,37 +53,21 @@ end
function c101103069.cfilter(c) function c101103069.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,68468459) return c:IsFaceup() and c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,68468459)
end end
function c101103069.disfilter(c) function c101103069.fdfilter(c,i)
return c:IsFaceup() and c:GetSequence()<5 return c:IsFacedown() and c:GetSequence()==i
end end
function c101103069.target(e,tp,eg,ep,ev,re,r,rp,chk) function c101103069.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101103069.disfilter,tp,0,LOCATION_MZONE,1,nil) or Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)>0 end local fdzone=0
local ct=1 for i=0,4 do
if Duel.IsExistingMatchingCard(c101103069.cfilter,tp,LOCATION_MZONE,0,1,nil) then ct=2 end if Duel.IsExistingMatchingCard(c101103069.fdfilter,tp,0,LOCATION_MZONE,1,nil,i) then
local min=0 fdzone=fdzone|1<<i
if Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)<=0 then min=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,c101103069.disfilter,tp,0,LOCATION_MZONE,min,ct,nil)
ct=ct-#g
local dis=0
if ct>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)>0 then
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(101103069,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLEZONE)
dis=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,0)|dis
elseif #g==0 then
if ct==2 and Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)>1 and Duel.SelectYesNo(tp,aux.Stringid(101103069,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLEZONE)
dis=Duel.SelectDisableField(tp,2,0,LOCATION_MZONE,0)|dis
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLEZONE)
dis=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,0)|dis
end
end end
end end
local tc=g:GetFirst() if chk==0 then return ~fdzone&0x1f>0 end
while tc do local dis=Duel.SelectField(tp,1,0,LOCATION_MZONE,(fdzone|0x60)<<16)
dis=(2^tc:GetSequence())*0x10000|dis if Duel.IsExistingMatchingCard(c101103069.cfilter,tp,LOCATION_MZONE,0,1,nil) and ~(fdzone|(dis>>16))&0x1f>0
tc=g:GetNext() and Duel.SelectYesNo(tp,aux.Stringid(101103069,0)) then
dis=dis|Duel.SelectField(tp,1,0,LOCATION_MZONE,(fdzone|(dis>>16)|0x60)<<16)
end end
e:SetLabel(dis) e:SetLabel(dis)
Duel.Hint(HINT_ZONE,tp,dis) Duel.Hint(HINT_ZONE,tp,dis)
......
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