Commit 111da695 authored by 未闻皂名's avatar 未闻皂名

2023/5/3 新增:KP13新卡,更新翻译

parent 9e3d596b
No preview for this file type
local m=120244003
local cm=_G["c"..m]
cm.name="银河舰既视龙"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Discard Deck
function cm.exfilter(c)
return c:IsType(TYPE_NORMAL) and c:IsLevelBelow(4) and c:IsAttribute(ATTRIBUTE_LIGHT)
and c:IsRace(RACE_GALAXY) and c:IsLocation(LOCATION_GRAVE)
end
function cm.thfilter(c)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_WARRIOR) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsLPAbove(1-tp,4000)
end
cm.cost=RD.CostSendSelfToGrave()
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.SendDeckTopToGraveAndExists(tp,1,cm.exfilter,1,nil) then
local tc=Duel.GetOperatedGroup():GetFirst()
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and RD.IsCanBeSpecialSummoned(tc,e,tp,POS_FACEUP)
and Duel.SelectYesNo(tp,aux.Stringid(m,1))
and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.BreakEffect()
Duel.Damage(1-tp,tc:GetBaseAttack(),REASON_EFFECT)
end
end
end
\ No newline at end of file
local m=120244004
local list={120222017,120225001}
local cm=_G["c"..m]
cm.name="推进飞龙"
cm.name="增速飞龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Damage
......
local m=120244005
local list={120222017,120225001,120244048,120244049}
local cm=_G["c"..m]
cm.name="DBF重龙"
cm.name="DBF重龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Set
......
local m=120244006
local list={120222025,120244008}
local cm=_G["c"..m]
cm.name="虚空噬骸兵·姬莉叶"
cm.name="虚空噬骸兵·垂怜鹰巨人"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--To Hand
......
local m=120244009
local list={120244012,120244053,120196050}
local cm=_G["c"..m]
cm.name="名蔷薇法师"
cm.name="名蔷薇法师"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--To Hand
......
local m=120244010
local list={120244053}
local cm=_G["c"..m]
cm.name="名蔷薇巫师"
cm.name="名蔷薇巫师"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon
......
local m=120244011
local list={120244012}
local cm=_G["c"..m]
cm.name="名蔷薇魔女"
cm.name="名蔷薇魔女"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon
......
local m=120244012
local cm=_G["c"..m]
cm.name="名蔷薇魔术师"
cm.name="名蔷薇魔术师"
function cm.initial_effect(c)
--Destroy
local e1=Effect.CreateEffect(c)
......
local m=120244014
local cm=_G["c"..m]
cm.name="贤帝家臣 泽"
cm.name="贤帝家臣 泽"
function cm.initial_effect(c)
--Set
local e1=Effect.CreateEffect(c)
......
local m=120244015
local cm=_G["c"..m]
cm.name="星帝家臣 赫"
cm.name="星帝家臣 赫"
function cm.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
local m=120244016
local cm=_G["c"..m]
cm.name="贤帝 威尔赫尔"
cm.name="贤帝 威"
function cm.initial_effect(c)
--Advance Flag
RushDuel.CreateAdvanceSummonFlag(c,20244016)
......
local m=120244017
local cm=_G["c"..m]
cm.name="星帝 艾斯特姆"
cm.name="星帝 艾斯特姆"
function cm.initial_effect(c)
--Advance Flag
RushDuel.CreateAdvanceSummonFlag(c,20244017)
......
local m=120244018
local cm=_G["c"..m]
cm.name="才贤帝 威尔赫尔"
cm.name="才贤帝 威"
function cm.initial_effect(c)
--Summon Procedure
RD.AddSummonProcedure(c,aux.Stringid(m,0),cm.sumcon,cm.sumop,SUMMON_TYPE_ADVANCE)
......
local m=120244019
local cm=_G["c"..m]
cm.name="煌星帝 艾斯特姆"
cm.name="煌星帝 艾斯特姆"
function cm.initial_effect(c)
--Summon Procedure
RD.AddSummonProcedure(c,aux.Stringid(m,0),cm.sumcon,cm.sumop,SUMMON_TYPE_ADVANCE)
......
local m=120244021
local list={120231024}
local cm=_G["c"..m]
cm.name="电子加工龙"
cm.name="电子处理机"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon Procedure
......
local m=120244022
local cm=_G["c"..m]
cm.name="星重演龙"
cm.name="替星龙"
function cm.initial_effect(c)
--Special Summon
local e1=Effect.CreateEffect(c)
......
local m=120244024
local cm=_G["c"..m]
cm.name="辫子阅读者"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Discard Deck
function cm.costfilter(c)
return ((c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER)) or c:IsType(TYPE_SPELL))
and c:IsAbleToGraveAsCost()
end
function cm.exfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER)
end
function cm.thfilter(c)
return c:IsType(TYPE_EQUIP) and c:IsAbleToHand()
end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.SendDeckTopToGraveAndExists(tp,3,cm.exfilter,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
RD.SendToHandAndExists(g,1-tp)
end)
end
end
\ No newline at end of file
local m=120244025
local cm=_G["c"..m]
cm.name="天空运输机 最大"
cm.name="空中传送机·最大式"
function cm.initial_effect(c)
--To Deck
local e1=Effect.CreateEffect(c)
......
local m=120244027
local cm=_G["c"..m]
cm.name="分离镜像炎精"
function cm.initial_effect(c)
--Copy Code
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Copy Code
function cm.costfilter(c)
return c:IsRace(RACE_PYRO) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c,code)
return c:IsLevelBelow(8) and not c:IsCode(code)
end
function cm.costcheck(g,e)
return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,g,e:GetHandler():GetCode())
end
cm.cost=RD.CostSendGraveSubToDeck(cm.costfilter,cm.costcheck,2,2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil,e:GetHandler():GetCode()) end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
local filter=RD.Filter(cm.filter,c:GetCode())
RD.SelectAndDoAction(aux.Stringid(m,1),aux.NecroValleyFilter(filter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
RD.AttachCardCode(e,c,g:GetFirst():GetCode(),RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
end)
end
end
\ No newline at end of file
local m=120244028
local cm=_G["c"..m]
cm.name="优雅金鸟"
cm.name="雅之金鸟"
function cm.initial_effect(c)
--Draw
local e1=Effect.CreateEffect(c)
......
local m=120244029
local cm=_G["c"..m]
cm.name="石膏斥候"
function cm.initial_effect(c)
--Damage Reduce
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CHANGE_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,0)
e1:SetCondition(cm.damcon)
e1:SetValue(cm.damval)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_NO_EFFECT_DAMAGE)
c:RegisterEffect(e2)
end
--Damage Reduce
function cm.damcon(e)
local ph=Duel.GetCurrentPhase()
local tp=e:GetHandlerPlayer()
return Duel.GetTurnPlayer()~=tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
end
function cm.damval(e,re,val,r,rp,rc)
if bit.band(r,REASON_EFFECT)~=0 then return 0 end
return val
end
\ No newline at end of file
local m=120244032
local cm=_G["c"..m]
cm.name="显现术师 多尔"
cm.name="显现术师 多尔特奥"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
......
local m=120244033
local cm=_G["c"..m]
cm.name="蓝玻璃针刺"
cm.name="附冰贯枪龙"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120244041
local list={120244012,120244011}
local cm=_G["c"..m]
cm.name="名流蔷薇大富豪魔术师"
cm.name="名蔷薇绝妙魔术师"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
......
local m=120244042
local list={120244012,120244011}
local cm=_G["c"..m]
cm.name="名流蔷薇奢华魔术师"
cm.name="名蔷薇豪华魔术师姐妹"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
......
local m=120244052
local cm=_G["c"..m]
cm.name="名媛魔术-优雅变化"
cm.name="克里斯马魔法-优雅变化"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120244053
local cm=_G["c"..m]
cm.name="名媛魔杖 死木"
cm.name="克里斯马魔杖 死亡魔杖"
function cm.initial_effect(c)
--Activate
RD.RegisterEquipEffect(c,nil,nil,cm.target)
......
local m=120244054
local list={120105001}
local cm=_G["c"..m]
cm.name="七魔导奇融合"
cm.name="七魔导奇融合"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
......
local m=120244056
local cm=_G["c"..m]
cm.name="帝王境界"
cm.name="帝之领域"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120244060
local cm=_G["c"..m]
cm.name="无人拟声盗贼"
cm.name="无人衬词演唱猫盗贼"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120244061
local cm=_G["c"..m]
cm.name="蔷薇连锁 营救"
cm.name="蔷薇锁链打捞"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120244064
local cm=_G["c"..m]
cm.name="相伴的思念"
cm.name="相伴的心意"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120244066
local cm=_G["c"..m]
cm.name="水稻梯田危机"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c,tp)
return c:GetSummonPlayer()==tp and c:IsSummonLocation(LOCATION_HAND+LOCATION_GRAVE)
end
function cm.filter(c)
return c:IsFaceup() and c:IsLevelBelow(12) and RD.IsCanChangePosition(c) and c:IsCanTurnSet()
end
function cm.check(g,atk)
return g:GetSum(Card.GetLevel)<=12
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,1-tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(cm.filter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectGroupAndDoAction(HINTMSG_SET,cm.filter,cm.check,tp,0,LOCATION_MZONE,1,2,nil,function(g)
RD.ChangePosition(g,POS_FACEDOWN_DEFENSE)
end)
end
\ No newline at end of file
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