Commit 4482e31b authored by nanahira's avatar nanahira

changes for MSG_HINT

parent 8bb74a78
......@@ -103,7 +103,7 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(m,0))
Duel.Hint(21,0,aux.Stringid(m,0))
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -587,7 +587,7 @@ function Cirn9.opcon(e)
return Duel.GetTurnCount() == 1
end
function Cirn9.opop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(20100060,3))
Duel.Hint(21,0,aux.Stringid(20100060,3))
end
function Cirn9.ap1(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -645,7 +645,7 @@ end
function Cirn9.RevueBgm(tp)
local fc=Duel.GetFieldCard(tp,LOCATION_SZONE,5)
local fcode=fc:GetOriginalCode()
Duel.Hint(11,0,aux.Stringid(fcode,0))
Duel.Hint(21,0,aux.Stringid(fcode,0))
end
function Cirn9.GetLine(c)
if c:IsLocation(LOCATION_FZONE) then return 99 end
......@@ -801,4 +801,4 @@ function Cirn9.acop(e,tp,eg,ep,ev,re,r,rp)
for i=1,ev do
Duel.RegisterFlagEffect(tp,20100052,RESET_PHASE+PHASE_END,0,1)
end
end
\ No newline at end of file
end
......@@ -113,7 +113,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if not Cirn9.Climax(e,tp,eg,ep,ev,re,r,rp) then return end
Duel.Hint(11,0,aux.Stringid(m,3))
Duel.Hint(21,0,aux.Stringid(m,3))
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
local tid=Duel.GetTurnCount()
......@@ -127,4 +127,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
g:RemoveCard(sg:GetFirst())
end
Duel.SpecialSummonComplete()
end
\ No newline at end of file
end
......@@ -97,7 +97,7 @@ function cm.cltg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.clop(e,tp,eg,ep,ev,re,r,rp)
if not Cirn9.Climax(e,tp,eg,ep,ev,re,r,rp) then return end
Duel.Hint(11,0,aux.Stringid(m,3))
Duel.Hint(21,0,aux.Stringid(m,3))
local tc=e:GetHandler()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
--local g=Duel.GetMatchingGroup(cm.atkfi lter,tp,LOCATION_MZONE,0,tc)
......
......@@ -43,11 +43,11 @@ function c65072000.op(e,tp,eg,ep,ev,re,r,rp)
local tc=g1:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
elseif m==1 and b2 then
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_EFFECT+REASON_DISCARD,e:GetHandler())
local g2=Duel.SelectMatchingCard(tp,c65072000.fil2,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(g2,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g2)
end
end
\ No newline at end of file
end
......@@ -60,7 +60,7 @@ function c65072001.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -111,4 +111,4 @@ function c65072001.operation(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.ChangeTargetCard(ev,Group.FromCards(tc))
end
end
\ No newline at end of file
end
......@@ -14,7 +14,7 @@ end
function c65072002.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(11,0,aux.Stringid(65072002,0))
Duel.Hint(21,0,aux.Stringid(65072002,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -81,4 +81,4 @@ function c65072002.efop(e,tp,eg,ep,ev,re,r,rp)
local cid=tc:CopyEffect(code,RESET_EVENT+RESETS_STANDARD)
tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,1))
end
end
\ No newline at end of file
end
......@@ -58,7 +58,7 @@ function c65072003.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -60,7 +60,7 @@ function c65072004.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -102,4 +102,3 @@ end
function c65072004.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetOwnerPlayer()
end
......@@ -14,7 +14,7 @@ end
function c65072005.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(11,0,aux.Stringid(65072005,0))
Duel.Hint(21,0,aux.Stringid(65072005,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -83,6 +83,6 @@ function c65072005.tfop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.SelectMatchingCard(tp,c65072005.tffilter,tp,LOCATION_DECK,0,1,1,nil,tp):GetFirst()
if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(tc:GetCode(),0))
Duel.Hint(21,0,aux.Stringid(tc:GetCode(),0))
end
end
......@@ -61,7 +61,7 @@ function c65072006.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -17,7 +17,7 @@ function c65072007.filter(c)
end
function c65072007.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65072007.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(11,0,aux.Stringid(65072007,0))
Duel.Hint(21,0,aux.Stringid(65072007,0))
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65072007.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -60,7 +60,7 @@ function c65072008.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -99,4 +99,3 @@ function c65072008.operation(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext()
end
end
......@@ -60,7 +60,7 @@ function c65072009.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -93,5 +93,3 @@ function c65072009.sop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
end
......@@ -14,7 +14,7 @@ end
function c65072010.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.Hint(11,0,aux.Stringid(65072010,0))
Duel.Hint(21,0,aux.Stringid(65072010,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......
......@@ -60,7 +60,7 @@ function c65072011.cop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local code=tc:GetCode()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.Hint(11,0,aux.Stringid(code,0))
Duel.Hint(21,0,aux.Stringid(code,0))
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......
......@@ -14,7 +14,7 @@ end
function c65072012.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsCode(65071999) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65071999) end
Duel.Hint(11,0,aux.Stringid(65072012,0))
Duel.Hint(21,0,aux.Stringid(65072012,0))
local g=Duel.SelectTarget(tp,Card.IsCode,tp,LOCATION_MZONE,0,1,1,nil,65071999)
end
function c65072012.op(e,tp,eg,ep,ev,re,r,rp)
......@@ -74,4 +74,4 @@ function c65072012.operation(e,tp,eg,ep,ev,re,r,rp)
token:RegisterEffect(e5,true)
end
end
end
\ No newline at end of file
end
......@@ -20,7 +20,7 @@ end
function c65072013.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsCode(65071999) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65071999) end
Duel.Hint(11,0,aux.Stringid(65072013,0))
Duel.Hint(21,0,aux.Stringid(65072013,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsCode,tp,LOCATION_MZONE,0,1,1,nil,65071999)
end
......@@ -46,4 +46,3 @@ function c65072013.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e5)
end
end
......@@ -19,7 +19,7 @@ function c65072014.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c65072014.desfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler())
and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(11,0,aux.Stringid(65072014,0))
Duel.Hint(21,0,aux.Stringid(65072014,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c65072014.desfilter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......@@ -51,4 +51,4 @@ function c65072014.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.Destroy(g,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -32,7 +32,7 @@ function c65072017.initial_effect(c)
end
function c65072017.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072017,0))
Duel.Hint(21,0,aux.Stringid(65072017,0))
end
function c65072017.val(e,c)
local tp=e:GetHandlerPlayer()
......@@ -89,4 +89,4 @@ end
function c65072017.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
\ No newline at end of file
end
......@@ -32,7 +32,7 @@ function c65072018.initial_effect(c)
end
function c65072018.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072018,0))
Duel.Hint(21,0,aux.Stringid(65072018,0))
end
function c65072018.discon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler()
......
......@@ -20,7 +20,7 @@ end
function c65072019.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) and Duel.IsExistingMatchingCard(c65072019.tgfil,tp,LOCATION_FZONE,0,1,nil) end
Duel.Hint(11,0,aux.Stringid(65072019,0))
Duel.Hint(21,0,aux.Stringid(65072019,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -35,4 +35,4 @@ function c65072019.activate(e,tp,eg,ep,ev,re,r,rp)
if i==num or not Duel.SelectYesNo(tp,aux.Stringid(65072019,2)) then break end
end
Duel.SpecialSummonComplete()
end
\ No newline at end of file
end
......@@ -17,7 +17,7 @@ end
function c65072020.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,65071999,0,0x4011,2100,2100,6,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP) and Duel.IsExistingMatchingCard(c65072020.tgfil,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(11,0,aux.Stringid(65072020,0))
Duel.Hint(21,0,aux.Stringid(65072020,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -50,4 +50,4 @@ function c65072020.activate(e,tp,eg,ep,ev,re,r,rp)
end
function c65072020.splimit(e,c)
return not c:IsCode(65071999)
end
\ No newline at end of file
end
......@@ -32,7 +32,7 @@ function c65072021.initial_effect(c)
end
function c65072021.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072021,0))
Duel.Hint(21,0,aux.Stringid(65072021,0))
end
function c65072021.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
......@@ -101,4 +101,3 @@ function c65072021.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
......@@ -31,7 +31,7 @@ function c65072022.initial_effect(c)
end
function c65072022.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072022,0))
Duel.Hint(21,0,aux.Stringid(65072022,0))
end
function c65072022.discon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and e:GetHandler():IsRelateToBattle()
......
......@@ -32,7 +32,7 @@ function c65072023.filter(c)
end
function c65072023.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072023,0))
Duel.Hint(21,0,aux.Stringid(65072023,0))
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,e:GetLabel(),tp,LOCATION_DECK)
end
function c65072023.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -32,7 +32,7 @@ function c65072025.initial_effect(c)
end
function c65072025.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072025,0))
Duel.Hint(21,0,aux.Stringid(65072025,0))
end
function c65072025.val(e,te)
return te:GetOwner()==e:GetHandler()
......
......@@ -28,7 +28,7 @@ function c65072027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c65072027.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072027,0))
Duel.Hint(21,0,aux.Stringid(65072027,0))
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
......@@ -58,4 +58,4 @@ function c65072027.activate(e,tp,eg,ep,ev,re,r,rp)
end
function c65072027.splimit(e,c)
return not c:IsCode(65071999)
end
\ No newline at end of file
end
......@@ -32,7 +32,7 @@ function c65072028.initial_effect(c)
end
function c65072028.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072028,0))
Duel.Hint(21,0,aux.Stringid(65072028,0))
end
function c65072028.distg(e,c)
local ec=e:GetHandler()
......
......@@ -32,7 +32,7 @@ function c65072029.initial_effect(c)
end
function c65072029.music(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(65072029,0))
Duel.Hint(21,0,aux.Stringid(65072029,0))
end
function c65072029.val(e,te)
return te:GetOwnerPlayer()==e:GetHandlerPlayer() and te:GetOwner()~=e:GetOwner()
......@@ -88,4 +88,3 @@ function c65072029.tgop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
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