Jinzo the Machine Menace
- Card ID:
120257028 - Format: Rush Duel
- Script:
Rush/Scripts/c120257028.lua
Stats
| Field | Value |
|---|---|
| Type | 0x21 |
| ATK | 2400 |
| DEF | 1500 |
| Level/Rank/Link | 0x7 |
| Race | 0x20 |
| Attribute | 0x20 |
| Category | 0x40001 |
Card Text
text
If a player has a Trap Card in their Graveyard, you can Special Summon this card from your hand face-up to your field.
[REQUIREMENT]
Send this face-up card from your field to the Graveyard.
[EFFECT]
Special Summon 1 "Jinzo" from your Graveyard face-up to your field. Then, you can look at all face-down cards in your opponent's Spell & Trap Zone. Destroy all Trap Cards among them.Detected API Calls
Auxiliary.NecroValleyFilterAuxiliary.StringidCard.GetControlerCard.GetSequenceCard.IsFacedownCard.IsTypeCard.RegisterEffectDuel.ConfirmCardsDuel.DestroyDuel.GetLocationCountDuel.GetMZoneCountDuel.GetMatchingGroupDuel.IsExistingMatchingCardDuel.SelectYesNoDuel.SetOperationInfoEffect.CreateEffectEffect.GetHandlerEffect.SetCategoryEffect.SetCostEffect.SetDescriptionEffect.SetOperationEffect.SetRangeEffect.SetTargetEffect.SetTypeGroup.FilterGroup.GetCountRushDuel.AddCodeListRushDuel.AddHandSpecialSummonProcedureRushDuel.CostSendSelfToGraveRushDuel.IsCanBeSpecialSummonedRushDuel.IsLegendCodeRushDuel.SelectAndSpecialSummon
Script
lua
local cm,m=GetID()
local list={120155000}
cm.name="威胁的人造人-念力震慑者"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon Procedure
RD.AddHandSpecialSummonProcedure(c,aux.Stringid(m,0),cm.spcon)
--Special Summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON+CATEGORY_DESTROY)
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
--Special Summon Procedure
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,TYPE_TRAP)
end
--Special Summon
function cm.spfilter(c,e,tp)
return RD.IsLegendCode(c,list[1]) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP)
end
function cm.exfilter(c)
return c:IsFacedown() and c:GetSequence()<5
end
cm.cost=RD.CostSendSelfToGrave()
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.SelectAndSpecialSummon(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)~=0 then
local g=Duel.GetMatchingGroup(cm.exfilter,tp,0,LOCATION_SZONE,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.ConfirmCards(tp,g)
local sg=g:Filter(Card.IsType,nil,TYPE_TRAP)
if sg:GetCount()>0 then
Duel.Destroy(sg,REASON_EFFECT)
end
end
end
end