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