Commit 2bfd0c7f authored by mercury233's avatar mercury233

update constants

parent 4cdcd2b8
...@@ -23,7 +23,7 @@ function c1006081.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -23,7 +23,7 @@ function c1006081.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c1006081.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c1006081.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
local op=0 local op=0
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if g:GetFirst():GetLevel()==1 then if g:GetFirst():GetLevel()==1 then
op=Duel.SelectOption(tp,aux.Stringid(1006081,1)) op=Duel.SelectOption(tp,aux.Stringid(1006081,1))
else else
......
...@@ -29,7 +29,7 @@ function c10352095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c10352095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute()) local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:GetLabelObject():SetLabel(rc) e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc) e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
......
...@@ -30,7 +30,7 @@ function c10406322.initial_effect(c) ...@@ -30,7 +30,7 @@ function c10406322.initial_effect(c)
end end
function c10406322.target(e,tp,eg,ep,ev,re,r,rp,chk) function c10406322.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c10406322.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c10406322.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c10406322.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c10406322.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -16,7 +16,7 @@ function c10809984.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c10809984.drcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c10809984.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c10809984.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c10809984.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c10809984.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c10809984.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c10809984.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -12,7 +12,7 @@ function c1525329.initial_effect(c) ...@@ -12,7 +12,7 @@ function c1525329.initial_effect(c)
end end
function c1525329.armtg(e,tp,eg,ep,ev,re,r,rp,chk) function c1525329.armtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -18,7 +18,7 @@ function c15595052.ancop(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c15595052.ancop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=Duel.GetMatchingGroupCount(Card.IsCode,tp,LOCATION_GRAVE,0,nil,15595052) local ct=Duel.GetMatchingGroupCount(Card.IsCode,tp,LOCATION_GRAVE,0,nil,15595052)
if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,ct,0xffff) local att=Duel.AnnounceAttribute(tp,ct,0xffff)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,att) e:GetHandler():SetHint(CHINT_ATTRIBUTE,att)
--destroy --destroy
......
...@@ -13,7 +13,7 @@ end ...@@ -13,7 +13,7 @@ end
function c15800838.target(e,tp,eg,ep,ev,re,r,rp,chk) function c15800838.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c15800838.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c15800838.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c15800838.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c15800838.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -29,7 +29,7 @@ function c16725505.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c16725505.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if lv~=i then t[p]=i p=p+1 end if lv~=i then t[p]=i p=p+1 end
end end
t[p]=nil t[p]=nil
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t))) e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t)))
end end
function c16725505.op(e,tp,eg,ep,ev,re,r,rp) function c16725505.op(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -52,11 +52,11 @@ function c18631392.anctg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,11 +52,11 @@ function c18631392.anctg(e,tp,eg,ep,ev,re,r,rp,chk)
return g:FilterCount(Card.IsAbleToHand,nil)>0 return g:FilterCount(Card.IsAbleToHand,nil)>0
end end
c18631392.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c18631392.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac1=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter)) local ac1=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter))
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac2=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter)) local ac2=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter))
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac3=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter)) local ac3=Duel.AnnounceCardFilter(tp,table.unpack(c18631392.announce_filter))
e:SetOperation(c18631392.retop(ac1,ac2,ac3)) e:SetOperation(c18631392.retop(ac1,ac2,ac3))
end end
......
...@@ -41,7 +41,7 @@ function c19462747.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -41,7 +41,7 @@ function c19462747.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c19462747.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,c19462747.filter,tp,LOCATION_MZONE,0,1,1,nil)
local op=0 local op=0
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if g:GetFirst():GetLevel()==1 then if g:GetFirst():GetLevel()==1 then
op=Duel.SelectOption(tp,aux.Stringid(19462747,1)) op=Duel.SelectOption(tp,aux.Stringid(19462747,1))
else else
......
...@@ -26,7 +26,7 @@ function c19808608.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,7 +26,7 @@ function c19808608.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if lv~=i then t[p]=i p=p+1 end if lv~=i then t[p]=i p=p+1 end
end end
t[p]=nil t[p]=nil
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t))) e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t)))
end end
function c19808608.lvop(e,tp,eg,ep,ev,re,r,rp) function c19808608.lvop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -16,7 +16,7 @@ function c20127343.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -16,7 +16,7 @@ function c20127343.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local att=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute()) local att=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:SetLabel(att) e:SetLabel(att)
end end
......
...@@ -59,7 +59,7 @@ function c20579538.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,7 +59,7 @@ function c20579538.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local t={} local t={}
local i=1 local i=1
for i=1,8 do t[i]=i end for i=1,8 do t[i]=i end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,table.unpack(t)) local lv=Duel.AnnounceNumber(tp,table.unpack(t))
e:SetLabel(lv) e:SetLabel(lv)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......
...@@ -47,11 +47,11 @@ function c22198672.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,11 +47,11 @@ function c22198672.seqop(e,tp,eg,ep,ev,re,r,rp)
local s=0 local s=0
if tc:IsControler(tp) then if tc:IsControler(tp) then
local flag=bit.bxor(zone,0xff) local flag=bit.bxor(zone,0xff)
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)
else else
local flag=bit.bxor(zone,0xff)*0x10000 local flag=bit.bxor(zone,0xff)*0x10000
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
s=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,flag)/0x10000 s=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,flag)/0x10000
end end
local nseq=0 local nseq=0
......
...@@ -50,7 +50,7 @@ function c22657402.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -50,7 +50,7 @@ function c22657402.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
for i=5,8 do for i=5,8 do
if lv1~=i and lv2~=i then t[p]=i p=p+1 end if lv1~=i and lv2~=i then t[p]=i p=p+1 end
end end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,table.unpack(t)) local lv=Duel.AnnounceNumber(tp,table.unpack(t))
e:SetLabel(lv) e:SetLabel(lv)
end end
......
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function c22796548.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22796548.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1)
and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c22796548.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c22796548.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c22796548.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c22796548.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -18,7 +18,7 @@ function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
and (Duel.IsExistingMatchingCard(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) and (Duel.IsExistingMatchingCard(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil)
or Duel.IsExistingMatchingCard(c24413299.desfilter,tp,0,LOCATION_ONFIELD,1,nil)) end or Duel.IsExistingMatchingCard(c24413299.desfilter,tp,0,LOCATION_ONFIELD,1,nil)) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c24413299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c24413299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c24413299.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c24413299.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -42,7 +42,7 @@ function c25484449.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c25484449.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c25484449.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c25484449.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
local op=Duel.SelectOption(tp,aux.Stringid(25484449,2),aux.Stringid(25484449,3)) local op=Duel.SelectOption(tp,aux.Stringid(25484449,2),aux.Stringid(25484449,3))
e:SetLabel(op) e:SetLabel(op)
end end
......
...@@ -18,7 +18,7 @@ function c26099457.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -18,7 +18,7 @@ function c26099457.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c26099457.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c26099457.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c26099457.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c26099457.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,1,2,3) local lv=Duel.AnnounceNumber(tp,1,2,3)
e:SetLabel(lv) e:SetLabel(lv)
end end
......
...@@ -16,7 +16,7 @@ function c26495087.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c26495087.tgcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c26495087.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c26495087.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,555) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
local op=Duel.SelectOption(tp,70,71,72) local op=Duel.SelectOption(tp,70,71,72)
e:SetLabel(op) e:SetLabel(op)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_DECK)
......
...@@ -18,7 +18,7 @@ function c27340877.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -18,7 +18,7 @@ function c27340877.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c27340877.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c27340877.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
Duel.SelectTarget(tp,c27340877.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c27340877.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,1-tp,562) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(1-tp,2,0xffffff) local rc=Duel.AnnounceAttribute(1-tp,2,0xffffff)
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -73,7 +73,7 @@ function c27769400.desfilter(c,att) ...@@ -73,7 +73,7 @@ function c27769400.desfilter(c,att)
end end
function c27769400.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c27769400.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceAttribute(tp,1,0xff) local rc=Duel.AnnounceAttribute(tp,1,0xff)
Duel.SetTargetParam(rc) Duel.SetTargetParam(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc) e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
......
...@@ -97,7 +97,7 @@ function c28776350.actg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -97,7 +97,7 @@ function c28776350.actg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetDecktopGroup(tp,ct) local g=Duel.GetDecktopGroup(tp,ct)
return g:FilterCount(Card.IsAbleToHand,nil)>0 return g:FilterCount(Card.IsAbleToHand,nil)>0
end end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c28776350.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c28776350.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c28776350.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c28776350.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -12,7 +12,7 @@ function c29417188.initial_effect(c) ...@@ -12,7 +12,7 @@ function c29417188.initial_effect(c)
end end
function c29417188.target(e,tp,eg,ep,ev,re,r,rp,chk) function c29417188.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac=Duel.AnnounceCard(tp) local ac=Duel.AnnounceCard(tp)
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD) Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD)
......
...@@ -28,7 +28,7 @@ function c296499.initial_effect(c) ...@@ -28,7 +28,7 @@ function c296499.initial_effect(c)
end end
function c296499.target(e,tp,eg,ep,ev,re,r,rp,chk) function c296499.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
e:GetHandler():SetHint(CHINT_RACE,rc) e:GetHandler():SetHint(CHINT_RACE,rc)
......
...@@ -14,10 +14,10 @@ function c30334522.initial_effect(c) ...@@ -14,10 +14,10 @@ function c30334522.initial_effect(c)
end end
function c30334522.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30334522.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)~=0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)~=0 end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local at=Duel.AnnounceAttribute(tp,1,0xffff) local at=Duel.AnnounceAttribute(tp,1,0xffff)
Duel.SetTargetParam(at) Duel.SetTargetParam(at)
end end
......
...@@ -25,7 +25,7 @@ function c30494314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -25,7 +25,7 @@ function c30494314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c30494314.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c30494314.filter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c30494314.operation(e,tp,eg,ep,ev,re,r,rp) function c30494314.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,532) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DEATTACHFROM)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT) local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end if sg:GetCount()==0 then return end
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT) sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
......
...@@ -32,7 +32,7 @@ function c31826057.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -32,7 +32,7 @@ function c31826057.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c31826057.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c31826057.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c31826057.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c31826057.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL-g:GetFirst():GetRace()) local rc=Duel.AnnounceRace(tp,1,RACE_ALL-g:GetFirst():GetRace())
e:SetLabel(rc) e:SetLabel(rc)
end end
...@@ -41,7 +41,7 @@ function c31826057.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -41,7 +41,7 @@ function c31826057.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c31826057.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c31826057.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c31826057.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,c31826057.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL-g:GetFirst():GetRace()) local rc=Duel.AnnounceRace(tp,1,RACE_ALL-g:GetFirst():GetRace())
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -43,7 +43,7 @@ function c32588805.setfilter2(c,typ) ...@@ -43,7 +43,7 @@ function c32588805.setfilter2(c,typ)
end end
function c32588805.setop(e,tp,eg,ep,ev,re,r,rp) function c32588805.setop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,1-tp,555) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
local op=Duel.SelectOption(1-tp,71,72) local op=Duel.SelectOption(1-tp,71,72)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=nil local g=nil
......
...@@ -12,7 +12,7 @@ end ...@@ -12,7 +12,7 @@ end
function c33423043.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33423043.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND,0,1,e:GetHandler()) end and Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c33423043.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c33423043.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c33423043.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c33423043.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -55,7 +55,7 @@ function c3752422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -55,7 +55,7 @@ function c3752422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
for i=1,p do for i=1,p do
t[i]=i t[i]=i
end end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t))) e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t)))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c3752422.filter,tp,LOCATION_MZONE,0,1,1,c) Duel.SelectTarget(tp,c3752422.filter,tp,LOCATION_MZONE,0,1,1,c)
......
...@@ -36,7 +36,7 @@ function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c3784434.seqop(e,tp,eg,ep,ev,re,r,rp)
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end
flag=bit.bxor(flag,0xff) flag=bit.bxor(flag,0xff)
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)
local nseq=0 local nseq=0
if s==1 then nseq=0 if s==1 then nseq=0
......
...@@ -26,7 +26,7 @@ function c38723936.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c38723936.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:GetSequence()<last:GetSequence() then last=tc end if tc:GetSequence()<last:GetSequence() then last=tc end
tc=g:GetNext() tc=g:GetNext()
end end
Duel.Hint(HINT_SELECTMSG,1-tp,564) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_CODE)
local ac=Duel.AnnounceCard(1-tp,TYPE_MONSTER) local ac=Duel.AnnounceCard(1-tp,TYPE_MONSTER)
if ac~=last:GetCode() then if ac~=last:GetCode() then
Duel.SpecialSummon(last,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(last,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -44,7 +44,7 @@ function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c39188539.seqop(e,tp,eg,ep,ev,re,r,rp)
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end
flag=bit.bxor(flag,0xff) flag=bit.bxor(flag,0xff)
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)
local nseq=0 local nseq=0
if s==1 then nseq=0 if s==1 then nseq=0
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk) function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil)
or Duel.IsPlayerCanSpecialSummon(tp) end or Duel.IsPlayerCanSpecialSummon(tp) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c39238953.announce_filter={TYPE_MONSTER,OPCODE_ISTYPE,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT,OPCODE_AND} c39238953.announce_filter={TYPE_MONSTER,OPCODE_ISTYPE,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT,OPCODE_AND}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c39238953.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c39238953.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
...@@ -28,7 +28,7 @@ function c39238953.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c39238953.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_DECK) local g=Duel.GetFieldGroup(tp,0,LOCATION_DECK)
if g:GetCount()<1 then return end if g:GetCount()<1 then return end
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.Hint(HINT_SELECTMSG,1-tp,526) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_CONFIRM)
local sg=g:FilterSelect(1-tp,Card.IsCode,1,1,nil,ac) local sg=g:FilterSelect(1-tp,Card.IsCode,1,1,nil,ac)
local tc=sg:GetFirst() local tc=sg:GetFirst()
if tc then if tc then
...@@ -38,13 +38,13 @@ function c39238953.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,13 +38,13 @@ function c39238953.activate(e,tp,eg,ep,ev,re,r,rp)
and tc:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_ATTACK,tp) and tc:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_ATTACK,tp)
local sel=0 local sel=0
if b1 and b2 then if b1 and b2 then
Duel.Hint(HINT_SELECTMSG,1-tp,555) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,0),aux.Stringid(39238953,1))+1 sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,0),aux.Stringid(39238953,1))+1
elseif b1 then elseif b1 then
Duel.Hint(HINT_SELECTMSG,1-tp,555) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,0))+1 sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,0))+1
elseif b2 then elseif b2 then
Duel.Hint(HINT_SELECTMSG,1-tp,555) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,1))+2 sel=Duel.SelectOption(1-tp,aux.Stringid(39238953,1))+2
end end
if sel==1 then if sel==1 then
......
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
function c39913299.target(e,tp,eg,ep,ev,re,r,rp,chk) function c39913299.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1)
and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c39913299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c39913299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c39913299.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c39913299.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -12,7 +12,7 @@ end ...@@ -12,7 +12,7 @@ end
function c40410110.attop(e,tp,eg,ep,ev,re,r,rp) function c40410110.attop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local catt=c:GetAttribute() local catt=c:GetAttribute()
local att=Duel.AnnounceAttribute(tp,1,0xffff - catt) local att=Duel.AnnounceAttribute(tp,1,0xffff - catt)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -49,7 +49,7 @@ function c40607210.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c40607210.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c40607210.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c40607210.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,555) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
local op=Duel.SelectOption(tp,70,71,72) local op=Duel.SelectOption(tp,70,71,72)
e:SetLabel(op) e:SetLabel(op)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_DECK)
......
...@@ -29,7 +29,7 @@ function c40817915.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c40817915.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and Duel.IsExistingTarget(c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
and Duel.IsExistingMatchingCard(c40817915.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c40817915.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
end end
Duel.Hint(HINT_SELECTMSG,tp,532) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DEATTACHFROM)
local g=Duel.SelectTarget(tp,c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -40,7 +40,7 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -40,7 +40,7 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c)
end end
function c42155488.dectg(e,tp,eg,ep,ev,re,r,rp,chk) function c42155488.dectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -62,7 +62,7 @@ function c42291297.eptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,7 +62,7 @@ function c42291297.eptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local c=e:GetHandler() local c=e:GetHandler()
local op=0 local op=0
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if aux.disfilter1(c) then op=Duel.SelectOption(tp,aux.Stringid(42291297,1),aux.Stringid(42291297,2)) if aux.disfilter1(c) then op=Duel.SelectOption(tp,aux.Stringid(42291297,1),aux.Stringid(42291297,2))
else op=Duel.SelectOption(tp,aux.Stringid(42291297,1)) end else op=Duel.SelectOption(tp,aux.Stringid(42291297,1)) end
if op==0 then if op==0 then
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c43359262.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43359262.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(1-tp) and c43359262.filter(chkc,e:GetHandler()) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(1-tp) and c43359262.filter(chkc,e:GetHandler()) end
if chk==0 then return Duel.IsExistingTarget(c43359262.filter,tp,0,LOCATION_SZONE,1,nil,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(c43359262.filter,tp,0,LOCATION_SZONE,1,nil,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,515) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN)
Duel.SelectTarget(tp,c43359262.filter,tp,0,LOCATION_SZONE,1,1,nil,e:GetHandler()) Duel.SelectTarget(tp,c43359262.filter,tp,0,LOCATION_SZONE,1,1,nil,e:GetHandler())
end end
function c43359262.operation(e,tp,eg,ep,ev,re,r,rp) function c43359262.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -23,7 +23,7 @@ function c43711255.bantg(e,c) ...@@ -23,7 +23,7 @@ function c43711255.bantg(e,c)
end end
function c43711255.target(e,tp,eg,ep,ev,re,r,rp,chk) function c43711255.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac=Duel.AnnounceCard(tp) local ac=Duel.AnnounceCard(tp)
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD) Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD)
......
...@@ -38,7 +38,7 @@ function c47766694.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c47766694.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsSSetable,dp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsSSetable,dp,LOCATION_HAND,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(dp,aux.Stringid(47766694,0)) then if g:GetCount()>0 and Duel.SelectYesNo(dp,aux.Stringid(47766694,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,510) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=g:Select(dp,1,1,nil) local sg=g:Select(dp,1,1,nil)
Duel.SSet(dp,sg:GetFirst()) Duel.SSet(dp,sg:GetFirst())
end end
......
...@@ -21,7 +21,7 @@ function c48422921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -21,7 +21,7 @@ function c48422921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local val=0xff local val=0xff
local reg=g:GetFirst():GetFlagEffectLabel(48422921) local reg=g:GetFirst():GetFlagEffectLabel(48422921)
if reg then val=val-reg end if reg then val=val-reg end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,val) local att=Duel.AnnounceAttribute(tp,1,val)
e:SetLabel(att) e:SetLabel(att)
end end
......
...@@ -37,7 +37,7 @@ function c50074392.filter(c) ...@@ -37,7 +37,7 @@ function c50074392.filter(c)
end end
function c50074392.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c50074392.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50074392.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c50074392.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,3,4,5) local lv=Duel.AnnounceNumber(tp,3,4,5)
e:SetLabel(lv) e:SetLabel(lv)
end end
......
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
function c50078320.operation(e,tp,eg,ep,ev,re,r,rp) function c50078320.operation(e,tp,eg,ep,ev,re,r,rp)
local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_ANNOUNCE) local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_ANNOUNCE)
local ac=0 local ac=0
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
if bit.band(cv,ANNOUNCE_CARD)~=0 then if bit.band(cv,ANNOUNCE_CARD)~=0 then
ac=Duel.AnnounceCard(tp,cv) ac=Duel.AnnounceCard(tp,cv)
else else
......
...@@ -28,7 +28,7 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(rac) e:SetLabel(rac)
return rac~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return rac~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local crac=Duel.AnnounceRace(tp,1,e:GetLabel()) local crac=Duel.AnnounceRace(tp,1,e:GetLabel())
local att=0 local att=0
local catt=1 local catt=1
...@@ -38,7 +38,7 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
catt=catt*2 catt=catt*2
end end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
catt=Duel.AnnounceAttribute(tp,1,att) catt=Duel.AnnounceAttribute(tp,1,att)
e:SetLabel(crac) e:SetLabel(crac)
Duel.SetTargetParam(catt) Duel.SetTargetParam(catt)
......
...@@ -19,7 +19,7 @@ function c56769674.initial_effect(c) ...@@ -19,7 +19,7 @@ function c56769674.initial_effect(c)
end end
function c56769674.target(e,tp,eg,ep,ev,re,r,rp,chk) function c56769674.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,0xffff)
e:GetLabelObject():SetLabel(rc) e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc) e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
......
...@@ -96,7 +96,7 @@ function c5795980.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,7 +96,7 @@ function c5795980.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,0xffff)
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -15,7 +15,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,7 +15,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c58577036.operation(e,tp,eg,ep,ev,re,r,rp) function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
Duel.Hint(HINT_SELECTMSG,1-tp,567) Duel.Hint(HINT_SELECTMSG,1-tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12) local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12)
local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil)
local dcount=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local dcount=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
......
...@@ -19,7 +19,7 @@ function c59644958.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c59644958.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end
end end
function c59644958.operation(e,tp,eg,ep,ev,re,r,rp) function c59644958.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,532) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DEATTACHFROM)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT) local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end if sg:GetCount()==0 then return end
Duel.HintSelection(sg) Duel.HintSelection(sg)
......
...@@ -37,7 +37,7 @@ function c60226558.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,7 +37,7 @@ function c60226558.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c60226558.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c60226558.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,c60226558.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c60226558.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute()) local att=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:SetLabel(att) e:SetLabel(att)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
......
...@@ -37,9 +37,9 @@ function c60866277.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,9 +37,9 @@ function c60866277.operation(e,tp,eg,ep,ev,re,r,rp)
tc=sg:GetNext() tc=sg:GetNext()
end end
if bit.band(att,att-1)==0 then return end if bit.band(att,att-1)==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att1=Duel.AnnounceAttribute(tp,2,att) local att1=Duel.AnnounceAttribute(tp,2,att)
Duel.Hint(HINT_SELECTMSG,1-tp,562) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE)
local att2=Duel.AnnounceAttribute(1-tp,1,att1) local att2=Duel.AnnounceAttribute(1-tp,1,att1)
local g=Duel.GetMatchingGroup(c60866277.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,att2) local g=Duel.GetMatchingGroup(c60866277.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,att2)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
......
...@@ -40,7 +40,7 @@ function c63394872.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c63394872.seqop(e,tp,eg,ep,ev,re,r,rp)
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end
flag=bit.bxor(flag,0xff) flag=bit.bxor(flag,0xff)
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)
local nseq=0 local nseq=0
if s==1 then nseq=0 if s==1 then nseq=0
......
...@@ -37,7 +37,7 @@ function c64689404.ractg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function c64689404.ractg(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
end end
local prc=e:GetLabelObject():GetLabel() local prc=e:GetLabelObject():GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL-prc) local rc=Duel.AnnounceRace(tp,1,RACE_ALL-prc)
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -35,7 +35,7 @@ function c65743242.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c65743242.activate(e,tp,eg,ep,ev,re,r,rp)
return return
end end
end end
Duel.Hint(HINT_SELECTMSG,tp,549) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTACKTARGET)
local g=ag:Select(tp,1,1,at) local g=ag:Select(tp,1,1,at)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
......
...@@ -20,7 +20,7 @@ function c67556500.lvcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c67556500.lvcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c67556500.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67556500.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,1,2,3) local lv=Duel.AnnounceNumber(tp,1,2,3)
e:SetLabel(lv) e:SetLabel(lv)
end end
......
...@@ -12,7 +12,7 @@ function c69176131.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -12,7 +12,7 @@ function c69176131.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end
end end
function c69176131.activate(e,tp,eg,ep,ev,re,r,rp) function c69176131.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,532) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DEATTACHFROM)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT) local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end if sg:GetCount()==0 then return end
Duel.HintSelection(sg) Duel.HintSelection(sg)
......
...@@ -18,7 +18,7 @@ function c69296555.initial_effect(c) ...@@ -18,7 +18,7 @@ function c69296555.initial_effect(c)
end end
function c69296555.target(e,tp,eg,ep,ev,re,r,rp,chk) function c69296555.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:GetLabelObject():SetLabel(rc) e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_RACE,rc) e:GetHandler():SetHint(CHINT_RACE,rc)
......
...@@ -57,7 +57,7 @@ function c70456282.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -57,7 +57,7 @@ function c70456282.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if lv~=i then t[p]=i p=p+1 end if lv~=i then t[p]=i p=p+1 end
end end
t[p]=nil t[p]=nil
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t))) e:SetLabel(Duel.AnnounceNumber(tp,table.unpack(t)))
end end
function c70456282.lvop(e,tp,eg,ep,ev,re,r,rp) function c70456282.lvop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -13,7 +13,7 @@ function c72403299.initial_effect(c) ...@@ -13,7 +13,7 @@ function c72403299.initial_effect(c)
end end
function c72403299.target(e,tp,eg,ep,ev,re,r,rp,chk) function c72403299.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c72403299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT} c72403299.announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
local ac=Duel.AnnounceCardFilter(tp,table.unpack(c72403299.announce_filter)) local ac=Duel.AnnounceCardFilter(tp,table.unpack(c72403299.announce_filter))
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
......
...@@ -11,7 +11,7 @@ end ...@@ -11,7 +11,7 @@ end
function c7405310.target(e,tp,eg,ep,ev,re,r,rp,chk) function c7405310.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)~=0 if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)~=0
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,1,nil) end and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,1,2,3,4,5,6,7,8,9,10,11,12) local lv=Duel.AnnounceNumber(tp,1,2,3,4,5,6,7,8,9,10,11,12)
e:SetLabel(lv) e:SetLabel(lv)
end end
......
...@@ -18,7 +18,7 @@ function c74701381.initial_effect(c) ...@@ -18,7 +18,7 @@ function c74701381.initial_effect(c)
end end
function c74701381.target(e,tp,eg,ep,ev,re,r,rp,chk) function c74701381.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:GetLabelObject():SetLabel(rc) e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_RACE,rc) e:GetHandler():SetHint(CHINT_RACE,rc)
......
...@@ -33,7 +33,7 @@ function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c76573247.seqop(e,tp,eg,ep,ev,re,r,rp)
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=bit.replace(flag,0x1,seq-1) end
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=bit.replace(flag,0x1,seq+1) end
flag=bit.bxor(flag,0xff) flag=bit.bxor(flag,0xff)
Duel.Hint(HINT_SELECTMSG,tp,571) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag) local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)
local nseq=0 local nseq=0
if s==1 then nseq=0 if s==1 then nseq=0
......
...@@ -11,7 +11,7 @@ function c78053598.initial_effect(c) ...@@ -11,7 +11,7 @@ function c78053598.initial_effect(c)
end end
function c78053598.target(e,tp,eg,ep,ev,re,r,rp,chk) function c78053598.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
c78053598.announce_filter={TYPE_MONSTER,OPCODE_ISTYPE,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT,OPCODE_AND} c78053598.announce_filter={TYPE_MONSTER,OPCODE_ISTYPE,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT,OPCODE_AND}
local code=Duel.AnnounceCardFilter(tp,table.unpack(c78053598.announce_filter)) local code=Duel.AnnounceCardFilter(tp,table.unpack(c78053598.announce_filter))
Duel.SetTargetParam(code) Duel.SetTargetParam(code)
......
...@@ -10,7 +10,7 @@ end ...@@ -10,7 +10,7 @@ end
function c8323633.operation(e,tp,eg,ep,ev,re,r,rp) function c8323633.operation(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
Duel.Hint(HINT_SELECTMSG,tp,564) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE)
local ac=Duel.AnnounceCard(tp,TYPE_MONSTER) local ac=Duel.AnnounceCard(tp,TYPE_MONSTER)
c:SetHint(CHINT_CARD,ac) c:SetHint(CHINT_CARD,ac)
--remove --remove
......
...@@ -13,7 +13,7 @@ function c84677654.cfilter(c) ...@@ -13,7 +13,7 @@ function c84677654.cfilter(c)
end end
function c84677654.target(e,tp,eg,ep,ev,re,r,rp,chk) function c84677654.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c84677654.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c84677654.cfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,567) Duel.Hint(HINT_SELECTMSG,tp,HINGMSG_LVRANK)
local lv=Duel.AnnounceNumber(tp,1,2,3,4,5,6,7,8,9,10,11,12) local lv=Duel.AnnounceNumber(tp,1,2,3,4,5,6,7,8,9,10,11,12)
Duel.SetTargetParam(lv) Duel.SetTargetParam(lv)
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,PLAYER_ALL,2) Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,PLAYER_ALL,2)
......
...@@ -13,7 +13,7 @@ function c85839825.initial_effect(c) ...@@ -13,7 +13,7 @@ function c85839825.initial_effect(c)
end end
function c85839825.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c85839825.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_COST) end
Duel.Hint(HINT_SELECTMSG,tp,532) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DEATTACHFROM)
local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,0,1,1,nil,tp,1,REASON_COST) local sg=Duel.SelectMatchingCard(tp,Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,0,1,1,nil,tp,1,REASON_COST)
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_COST) sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
......
...@@ -28,7 +28,7 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(rac) e:SetLabel(rac)
return rac~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return rac~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local crac=Duel.AnnounceRace(tp,1,e:GetLabel()) local crac=Duel.AnnounceRace(tp,1,e:GetLabel())
local att=0 local att=0
local catt=1 local catt=1
...@@ -38,7 +38,7 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
catt=catt*2 catt=catt*2
end end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
catt=Duel.AnnounceAttribute(tp,1,att) catt=Duel.AnnounceAttribute(tp,1,att)
e:SetLabel(crac) e:SetLabel(crac)
Duel.SetTargetParam(catt) Duel.SetTargetParam(catt)
......
...@@ -30,7 +30,7 @@ function c88581108.atcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c88581108.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c88581108.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c88581108.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,0xffff)
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -16,9 +16,9 @@ function c89801755.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,9 +16,9 @@ function c89801755.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c89801755.target(e,tp,eg,ep,ev,re,r,rp,chk) function c89801755.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,0xff) local att=Duel.AnnounceAttribute(tp,1,0xff)
Duel.Hint(HINT_SELECTMSG,tp,563) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(att) e:SetLabel(att)
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
......
...@@ -32,7 +32,7 @@ function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -32,7 +32,7 @@ function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c94331452.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c94331452.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c94331452.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c94331452.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute()) local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:SetLabel(rc) e:SetLabel(rc)
end end
...@@ -41,7 +41,7 @@ function c94331452.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -41,7 +41,7 @@ function c94331452.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c94331452.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c94331452.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c94331452.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,c94331452.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,562) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute()) local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:SetLabel(rc) e:SetLabel(rc)
end end
......
...@@ -29,7 +29,7 @@ function c9780364.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c9780364.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(c9780364.filter,tp,0,LOCATION_MZONE,nil,e) local g=Duel.GetMatchingGroup(c9780364.filter,tp,0,LOCATION_MZONE,nil,e)
local cg=Duel.GetMatchingGroup(c9780364.filter2,tp,0,LOCATION_MZONE,nil) local cg=Duel.GetMatchingGroup(c9780364.filter2,tp,0,LOCATION_MZONE,nil)
local sel=0 local sel=0
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if cg:GetCount()==0 then if cg:GetCount()==0 then
sel=Duel.SelectOption(tp,aux.Stringid(9780364,0)) sel=Duel.SelectOption(tp,aux.Stringid(9780364,0))
else sel=Duel.SelectOption(tp,aux.Stringid(9780364,0),aux.Stringid(9780364,1)) end else sel=Duel.SelectOption(tp,aux.Stringid(9780364,0),aux.Stringid(9780364,1)) end
......
...@@ -48,7 +48,7 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -48,7 +48,7 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return b1 or b2 return b1 or b2
end end
local sel=0 local sel=0
Duel.Hint(HINT_SELECTMSG,tp,550) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
if b1 and b2 then if b1 and b2 then
sel=Duel.SelectOption(tp,aux.Stringid(98045062,0),aux.Stringid(98045062,1)) sel=Duel.SelectOption(tp,aux.Stringid(98045062,0),aux.Stringid(98045062,1))
elseif b1 then elseif b1 then
......
...@@ -687,6 +687,8 @@ HINTMSG_TOFIELD =527 --请选择要放置到场上的卡 ...@@ -687,6 +687,8 @@ HINTMSG_TOFIELD =527 --请选择要放置到场上的卡
HINTMSG_POSCHANGE =528 --请选择要改变表示形式的怪兽 HINTMSG_POSCHANGE =528 --请选择要改变表示形式的怪兽
HINTMSG_SELF =529 --请选择自己的卡 HINTMSG_SELF =529 --请选择自己的卡
HINTMSG_OPPO =530 --请选择对方的卡 HINTMSG_OPPO =530 --请选择对方的卡
HINTMSG_TRIBUTE =531 --请选择上级召唤用需要解放的怪兽
HINTMSG_DEATTACHFROM =532 --请选择要取除超量素材的怪兽
HINTMSG_ATTACKTARGET =549 --请选择攻击的对象 HINTMSG_ATTACKTARGET =549 --请选择攻击的对象
HINTMSG_EFFECT =550 --请选择要发动的效果 HINTMSG_EFFECT =550 --请选择要发动的效果
HINTMSG_TARGET =551 --请选择效果的对象 HINTMSG_TARGET =551 --请选择效果的对象
...@@ -694,6 +696,7 @@ HINTMSG_COIN =552 --请选择硬币的正反面 ...@@ -694,6 +696,7 @@ HINTMSG_COIN =552 --请选择硬币的正反面
HINTMSG_DICE =553 --请选择骰子的结果 HINTMSG_DICE =553 --请选择骰子的结果
HINTMSG_CARDTYPE =554 --请选择一个种类 HINTMSG_CARDTYPE =554 --请选择一个种类
HINTMSG_OPTION =555 --请选择一个选项 HINTMSG_OPTION =555 --请选择一个选项
HINTMSG_RESOLVEEFFECT =556 --请选择要发动/处理的效果
HINTMSG_SELECT =560 --请选择 HINTMSG_SELECT =560 --请选择
HINTMSG_POSITION =561 --请选择表示形式 HINTMSG_POSITION =561 --请选择表示形式
HINTMSG_ATTRIBUTE =562 --请选择要宣言的属性 HINTMSG_ATTRIBUTE =562 --请选择要宣言的属性
...@@ -701,6 +704,10 @@ HINTMSG_RACE =563 --请选择要宣言的种族 ...@@ -701,6 +704,10 @@ HINTMSG_RACE =563 --请选择要宣言的种族
HINTMSG_CODE =564 --请宣言一个卡名 HINTMSG_CODE =564 --请宣言一个卡名
HINGMSG_NUMBER =565 --请选择一个数字 HINGMSG_NUMBER =565 --请选择一个数字
HINGMSG_LVRANK =567 --请宣言一个等级 HINGMSG_LVRANK =567 --请宣言一个等级
HINTMSG_RESOLVECARD =568 --请选择要处理效果的卡
HINTMSG_ZONE =569 --请选择[%ls]的位置
HINTMSG_DISABLEZONE =570 --请选择要变成不能使用的卡片区域
HINTMSG_TOZONE =571 --请选择要移动到的位置
--Select --请选择 --Select --请选择
SELECT_HEADS =60 --正面 SELECT_HEADS =60 --正面
SELECT_TAILS =61 --反面 SELECT_TAILS =61 --反面
......
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