Commit 6ff11234 authored by 未闻皂名's avatar 未闻皂名

2023/7/1 新增:地机械新卡,更新翻译

parent 5de83681
Pipeline #22528 passed with stages
in 6 minutes and 41 seconds
No preview for this file type
local m=120249008
local list={120213010}
local cm=_G["c"..m]
cm.name="接合科技英雄"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Tribute
RD.CreateAdvanceCheck(c,cm.tricheck,1,20249008)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Tribute
function cm.tricheck(c)
return c:IsCode(list[1])
end
--Atk Up
function cm.thfilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return RD.IsSummonTurn(c) and c:GetFlagEffect(20249008)~=0
end
cm.cost=RD.CostSendDeckTopToGrave(1)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachAtkDef(e,c,1500,0,RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
Duel.BreakEffect()
RD.SendToHandAndExists(g,1-tp)
end)
end
end
\ No newline at end of file
local m=120249011
local list={120249049}
local cm=_G["c"..m]
cm.name="水溶精 溶化"
cm.name="水溶精 熔灵"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--To Hand
......
local m=120249012
local list={120249049}
local cm=_G["c"..m]
cm.name="电导精 闪电"
cm.name="电导精 电灵"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--To Hand
......
local m=120249013
local cm=_G["c"..m]
cm.name="火燃精 加热"
cm.name="火燃精 热灵"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
......
local m=120249015
local cm=_G["c"..m]
cm.name="火轰岚凰 火山化学化凤凰[L]"
cm.name="火轰岚凰 化学火山化凤凰[L]"
function cm.initial_effect(c)
--Destroy (Normal)
local e1=Effect.CreateEffect(c)
......
local m=120249016
local list={120249015,120249017}
local cm=_G["c"..m]
cm.name="火轰岚凰 火山化学化凤凰"
cm.name="火轰岚凰 化学火山化凤凰"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Maximum Summon
......
local m=120249017
local cm=_G["c"..m]
cm.name="火轰岚凰 火山化学化凤凰[R]"
cm.name="火轰岚凰 化学火山化凤凰[R]"
function cm.initial_effect(c)
--Destroy (Normal)
local e1=Effect.CreateEffect(c)
......
local m=120249023
local cm=_G["c"..m]
cm.name="深渊杀戮者·利维骑士"
cm.name="深渊杀戮者·利维骑士"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120249036
local cm=_G["c"..m]
cm.name="钢铁兵 鞅论倍赌兵"
function cm.initial_effect(c)
--Coin
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_COIN+CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
cm.toss_coin=true
--Coin
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COIN,nil,0,tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local res=Duel.TossCoin(tp,1)
if res==1 then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
g:ForEach(function(tc)
RD.AttachAtkDef(e,tc,500,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
else
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil,function(g)
RD.AttachAtkDef(e,g:GetFirst(),-800,-800,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
end
\ No newline at end of file
local m=120249043
local list={120213010,120249008}
local cm=_G["c"..m]
cm.name="接合科技斗士"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[1])
--To Hand / Special Summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--To Hand
function cm.filter(c,e,tp)
return c:IsLevel(7) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_MACHINE)
and ((Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP))
or c:IsAbleToHand())
end
function cm.thfilter(c)
return c:IsCode(list[1]) and c:IsAbleToHand()
end
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,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local filter=RD.Filter(cm.filter,e,tp)
RD.SelectAndDoAction(aux.Stringid(m,1),aux.NecroValleyFilter(filter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
local tc=g:GetFirst()
local th=tc:IsAbleToHand()
local sp=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and RD.IsCanBeSpecialSummoned(tc,e,tp,POS_FACEUP)
local op=0
local success=false
if th and sp then op=Duel.SelectOption(tp,1190,1152)
elseif th then op=0
else op=1 end
if op==0 then
success=RD.SendToHandAndExists(tc,1-tp)
else
success=Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0
end
if success and tc:IsCode(list[2]) then
RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
RD.SendToHandAndExists(g,1-tp)
end)
end
end)
end
\ No newline at end of file
local m=120249048
local cm=_G["c"..m]
cm.name="火山化合物"
cm.name="化学火山化化合物"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120249049
local cm=_G["c"..m]
cm.name="化学化结构力"
cm.name="化学化结构力"
function cm.initial_effect(c)
--Activate
RD.RegisterEquipEffect(c,nil,nil,cm.target)
......
local m=120249057
local list={120238005}
local cm=_G["c"..m]
cm.name="传说强袭"
cm.name="传说的一击"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
......
local m=120249058
local cm=_G["c"..m]
cm.name="接合科技点火"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(cm.condition)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.exfilter(c)
return c:IsFaceup() and c:IsLevelAbove(7) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_MACHINE)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.GetAttackTarget()
return Duel.GetAttacker():IsControler(1-tp)
and c and c:IsControler(tp) and c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_MACHINE)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
local c=Duel.GetAttackTarget()
if c and c:IsRelateToBattle() and c:IsFaceup() then
RD.AttachBattleIndes(e,c,1,nil,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
if tc and tc:IsRelateToBattle()
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.Destroy(tc,REASON_EFFECT)
end
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