Commit ae12e52d authored by Yuno1000's avatar Yuno1000 Committed by GitHub

Add New Rush Scripts

Echoing Whispers
Wurm Ex-Cavator the Heavy Mequestrian Wyrm
Wurm Ex-Cavator the Heavy Mequestrian Wyrm [L]
Wurm Ex-Cavator the Heavy Mequestrian Wyrm [R]
Build Dragon the Mythic Sword Dragon
Steeltek Deity Mirror Innovator
parent 25da9a08
--拡がるささやき
--Echoing Whispers
--Scripted by Yuno
function c120150052.initial_effect(c)
--Shuffle into deck
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_MSET)
e1:SetCondition(c120150052.condition)
e1:SetTarget(c120150052.target)
e1:SetOperation(c120150052.operation)
c:RegisterEffect(e1)
end
--Requirement
function c120150052.filter1(c)
return c:IsSummonPlayer(1-tp) and c:IsPreviousLocation(LOCATION_HAND)
end
function c120150052.condition(e, tp, eg, ep, ev, re, r, rp)
return eg:IsExists(c120150052.filter1, 1, nil, tp)
end
--Effect
function c120150052.filter2(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end
function c120150052.target(e, tp, eg, ep, ev, re, r, rp, chk)
if chk==0 then return Duel.IsExistingMatchingCard(c120150052.filter2, tp, LOCATION_GRAVE, LOCATION_GRAVE, 1, nil) end
Duel.SetOperationInfo(0, CATEGORY_TODECK, nil, 1, tp, LOCATION_GRAVE)
end
function c120150052.operation(e, tp, eg, ep, ev, re, r, rp)
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp, c120150052.filter2, tp, LOCATION_GRAVE, LOCATION_GRAVE, 1, 5, nil)
if g:GetCount()>0 then
Duel.SendtoDeck(g, nil, 2, REASON_EFFECT)
end
end
\ No newline at end of file
--幻竜重騎ウォームExカベーター
--Wurm Ex-Cavator the Heavy Mequestrian Wyrm
--Scripted by Yuno
function c120155201.initial_effect(c)
aux.AddCodeList(c, 120155202, 120155203)
--Maximum Summon
RushDuel.AddMaximumProcedure(c, 3500, 120155202, 120155203)
--Cannot be destroyed by traps
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(RushDuel.IsMaximumMode)
e1:SetValue(c120155201.efilter)
c:RegisterEffect(e1)
end
--Cannot be destroyed by traps
function c120155201.efilter(e, re, rp)
return rp==1-e:GetHandlerPlayer() and re:IsActiveType(TYPE_TRAP)
end
\ No newline at end of file
--幻竜重騎ウォームExカベーター[L]
--Wurm Ex-Cavator the Heavy Mequestrian Wyrm [L]
--Scripted by Yuno
function c150155202.initial_effect(c)
--Gain ATK
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(RushDuel.IsMaximumMode)
e1:SetValue(c150155202.value)
c:RegisterEffect(e1)
end
function c150155202.value(e, c)
return Duel.GetFieldGroupCount(c:GetControler(), LOCATION_HAND, 0)*300
end
\ No newline at end of file
--幻竜重騎ウォームExカベーター[R]
--Wurm Ex-Cavator the Heavy Mequestrian Wyrm [R]
--Scripted by Yuno
function c150155203.initial_effect(c)
--Gain ATK
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(150155203, 0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(RushDuel.IsMaximumMode)
e1:SetCost(c150155203.cost)
e1:SetTarget(c150155203.target)
e1:SetOperation(c150155203.operation)
c:RegisterEffect(e1)
end
--Requirement
function c150155203.cost(e, tp, eg, ep, ev, re, r, rp, chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeckAsCost, tp, LOCATION_GRAVE, 0, 1, nil) end
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp, Card.IsAbleToDeckAsCost, tp, LOCATION_GRAVE, 0, 1, 1, nil)
Duel.SendtoDeck(g, nil, 1, REASON_COST)
end
--Effect
function c150155203.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c150155203.target(e, tp, eg, ep, ev, re, r, rp, chk)
if chk==0 then return Duel.IsExistingMatchingCard(c150155203.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, nil)
and Duel.IsPlayerCanDraw(tp, 1) end
Duel.SetOperationInfo(0, CATEGORY_DESTROY, nil, 1, 0, 0)
Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 1, tp, 1)
end
function c150155203.operation(e, tp, eg, ep, ev, re, r, rp)
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp, c150155203.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, 1, nil)
local sg=g:GetFirst()
if Duel.Destroy(sg, REASON_EFFECT)~=0 and Duel.Draw(tp, 1, REASON_EFFECT)~=0 then
if sg:IsType(TYPE_SPELL+TYPE_FIELD) and Duel.SelectYesNo(tp, aux.Stringid(150155203, 0)) then
Duel.Draw(tp, 1, REASON_EFFECT)
end
end
end
\ No newline at end of file
--幻刃竜ビルド・ドラゴン
--Build Dragon the Mythic Sword Dragon
--Scripted by Yuno
function c120155204.initial_effect(c)
--Special Summon a Normal Wyrm from GY
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c120155204.condition)
e1:SetTarget(c120155204.target)
e1:SetOperation(c120155204.operation)
c:RegisterEffect(e1)
end
--Requirement
function c120155204.condition(e, tp, eg, ep, ev, re, r, rp)
return Duel.IsExistingMatchingCard(Card.IsFaceup, tp, LOCATION_FZONE, LOCATION_FZONE, 1, nil)
end
--Effect
function c120155204.filter(c, e, tp)
return c:IsRace(RACE_WYRM) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
function c120155204.target(e, tp, eg, ep, ev, re, r, rp, chk)
if chk==0 then return Duel.GetLocationCount(tp, LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c120155204.filter, tp, LOCATION_GRAVE, 0, 1, nil, e, tp) end
Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, nil, 1, tp, LOCATION_GRAVE)
end
function c120155204.operation(e, tp, eg, ep, ev, re, r, rp)
if Duel.GetLocationCount(tp, LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp, c120155204.filter, tp, LOCATION_GRAVE, 0, 1, 1, nil, e, tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g, 0, tp, tp, false, false, POS_FACEUP)
end
end
\ No newline at end of file
--鋼機神ミラーイノベイター
--Steeltek Deity Mirror Innovator
--Scripted by Yuno
function c120155205.initial_effect(c)
--Gain ATK and shuffle into deck
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c120155205.target)
e1:SetOperation(c120155205.operation)
c:RegisterEffect(e1)
end
--Effect
function c120155205.filter(c, race)
return c:IsType(TYPE_MONSTER) and c:IsRace(race) and c:IsAbleToDeck()
end
function c120155205.target(e, tp, eg, ep, ev, re, r, rp, chk)
local race=e:GetHandler():GetRace()
if chk==0 then return Duel.IsExistingMatchingCard(c120155205.filter, tp, LOCATION_GRAVE, 0, 1, nil, race) end
Duel.SetOperationInfo(0, CATEGORY_TODECK, nil, 1, tp, LOCATION_GRAVE)
end
function c120155205.operation(e, tp, eg, ep, ev, re, r, rp)
local c=e:GetHandler()
local race=e:GetHandler():GetRace()
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp, c120155205.filter, tp, LOCATION_GRAVE, 0, 1, 3, nil, race)
if c:IsFaceup() and c:IsRelateToEffect(e) then
local level=g:GetSum(Card.GetLevel)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(level*100)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
Duel.BreakEffect()
local prcon=Duel.SendtoDeck(g, nil, 2, REASON_EFFECT)
if prcon==1 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PIERCE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
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