Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion official/c11677278.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--ミミグル・アーマー
--Mimighoul Armor
--scripted by Hatter
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion official/c13204145.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--ミミグル・メーカー
--Mimighoul Maker
--Scripted by Hatter
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion official/c16955631.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--ジャイアント・ミミグル
--Giant Mimighoul
--Scripted by the Razgriz
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion official/c19338434.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--ミミグル・フォーク
--Mimighoul Fork
--scripted by Naim
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion official/c22916418.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--超人伝-マントマン
--Mantman the Ultrahuman
--scripted by pyrQ
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion official/c23920796.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--ミミグル・ケルベロス
--Mimighoul Cerberus
--Scripted by Hatter
local s,id=GetID()
Expand Down
16 changes: 7 additions & 9 deletions official/c25140659.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
--Danger! Response Team
--未界域調査報告
--Danger! Response Team
local s,id=GetID()
function s.initial_effect(c)
--Activate
--Return 1 "Danger!" monster you control and 1 monster on the field the the hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
Expand All @@ -12,10 +13,10 @@ function s.initial_effect(c)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
--to deck and draw
--Place this card on the bottom of the Deck, then draw 1 card
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,{id,1})
Expand All @@ -27,18 +28,15 @@ end
s.listed_series={SET_DANGER}
function s.filter1(c,tp)
return c:IsFaceup() and c:IsSetCard(SET_DANGER) and c:IsAbleToHand()
and Duel.IsExistingTarget(s.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,c)
end
function s.filter2(c)
return c:IsAbleToHand()
and Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,1,c)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(s.filter1,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g1=Duel.SelectTarget(tp,s.filter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g2=Duel.SelectTarget(tp,s.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,g1:GetFirst())
local g2=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,g1:GetFirst())
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g1,2,0,0)
end
Expand Down
19 changes: 10 additions & 9 deletions official/c2834264.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--Beetrooper Armor Horn
--騎甲虫アームド・ホーン
--Beetrooper Armor Horn
local s,id=GetID()
function s.initial_effect(c)
--link summon
c:EnableReviveLimit()
Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsRace,RACE_INSECT),2,2)
--cannot special summon
--Link Summon procedure: 2 Insect monsters
c:EnableReviveLimit()
--You cannot Special Summon monsters, except Insect monsters
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
Expand All @@ -14,17 +14,19 @@ function s.initial_effect(c)
e1:SetTargetRange(1,0)
e1:SetTarget(s.sumlimit)
c:RegisterEffect(e1)
--normal summon
--Immediately after this effect resolves, Normal Summon 1 Insect monster
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id)
e2:SetTarget(s.nstg)
e2:SetOperation(s.nsop)
c:RegisterEffect(e2)
--special summon
--Special Summon this card from the GY
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE)
Expand All @@ -46,8 +48,7 @@ function s.nstg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.nsop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(tp,s.nsfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
local tc=Duel.SelectMatchingCard(tp,s.nsfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,nil):GetFirst()
if tc then
Duel.Summon(tp,tc,true,nil)
end
Expand All @@ -69,7 +70,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
--Banish it when it leaves the field
local e1=Effect.CreateEffect(c)
e1:SetDescription(3300)
Expand Down
2 changes: 1 addition & 1 deletion official/c29265962.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--Japanese name
--同姓同名同盟罷業
--The League of Uniform Nomenclature Strikes
--scripted by Naim
local s,id=GetID()
Expand Down
16 changes: 9 additions & 7 deletions official/c30163008.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
--Ra'ten, the Heavenly General
--羅天神将
--Ra'ten, the Heavenly General
local s,id=GetID()
function s.initial_effect(c)
c:EnableReviveLimit()
--Link Summon procedure: 2+ monsters with the same Type
Link.AddProcedure(c,nil,2,99,s.lcheck)
--special Summon
--Special Summon 1 Level 4 or lower monster with the same Type as a targeted monster from your hand to your zone this card points to
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
Expand All @@ -15,8 +17,9 @@ function s.initial_effect(c)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
--destroy
--Destroy 1 card your opponent controls
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
Expand Down Expand Up @@ -54,8 +57,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local zone=e:GetHandler():GetLinkedZone(tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter2,tp,LOCATION_HAND,0,1,1,nil,e,tp,tg:GetRace(),zone)
local tc=g:GetFirst()
local tc=Duel.SelectMatchingCard(tp,s.spfilter2,tp,LOCATION_HAND,0,1,1,nil,e,tp,tg:GetRace(),zone):GetFirst()
if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP,zone)
end
Expand All @@ -65,11 +67,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
end
function s.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
15 changes: 9 additions & 6 deletions official/c33971095.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
--Vendread Nightmare
--ヴェンデット・ナイトメア
--Vendread Nightmare
local s,id=GetID()
function s.initial_effect(c)
--activate
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--increase lv
--Increase the level of 1 face-up monster you control by the number of monsters Tributed
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_LVCHANGE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
Expand All @@ -18,8 +19,9 @@ function s.initial_effect(c)
e2:SetTarget(s.lvtg)
e2:SetOperation(s.lvop)
c:RegisterEffect(e2)
--increase atk
--You attacking "Vendread" Ritual Monster gains 1000 ATK
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BATTLE_DESTROYING)
Expand All @@ -46,8 +48,9 @@ end
function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.lvfilter(chkc) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,s.lvfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_APPLYTO)
local g=Duel.SelectTarget(tp,s.lvfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_LVCHANGE,g,1,tp,e:GetLabel())
end
function s.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand Down
3 changes: 1 addition & 2 deletions official/c34479658.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function s.initial_effect(c)
e2:SetValue(s.valcheck)
c:RegisterEffect(e2)
e2:SetLabelObject(e1)
e2:SetLabelObject(e1)
--Add to hand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,2))
Expand All @@ -36,7 +35,7 @@ function s.initial_effect(c)
e3:SetOperation(s.thop)
c:RegisterEffect(e3)
end
s.listed_names={34479659}
s.listed_names={34479659} --"Alligator Token"
function s.otfilter(c)
return c:IsRace(RACE_REPTILE)
end
Expand Down
5 changes: 3 additions & 2 deletions official/c34559295.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
--Iron Draw
--アイアンドロー
--Iron Draw
local s,id=GetID()
function s.initial_effect(c)
--Activate
--Draw 2 cards
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
Expand Down
22 changes: 10 additions & 12 deletions official/c3779493.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
--Night's End Administrator
--ナイトエンド・アドミニストレーター
--Night's End Administrator
local s,id=GetID()
function s.initial_effect(c)
--synchro summon
Synchro.AddProcedure(c,aux.FilterSummonCode(36107810),1,1,Synchro.NonTuner(nil),1,99)
c:EnableReviveLimit()
--Banish a card when another monster is summoned
--Synchro Summon procedure: "Night's End Sorcerer" + 1+ non-Tuner monsters
Synchro.AddProcedure(c,aux.FilterSummonCode(36107810),1,1,Synchro.NonTuner(nil),1,99)
--Banish 1 card in your opponent's GY
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,1))
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
Expand All @@ -17,9 +17,9 @@ function s.initial_effect(c)
e1:SetTarget(s.rmvtg)
e1:SetOperation(s.rmvop)
c:RegisterEffect(e1)
--special summon
--Special Summon 1 Level 4 or lower Spellcaster monster in your GY
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,3))
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_DESTROYED)
Expand All @@ -30,8 +30,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
s.material={36107810}
s.listed_names={36107810}
--banish when itself or a spellcaster is summoned
s.listed_names={36107810} --"Night's End Sorcerer"
function s.cfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:IsControler(tp)
end
Expand All @@ -51,11 +50,10 @@ function s.rmvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.rmvop(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end
--summon a spellcaster from gy
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (rp==1-tp and c:IsReason(REASON_EFFECT) and c:IsPreviousControler(tp)
Expand All @@ -70,7 +68,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
Expand Down
6 changes: 3 additions & 3 deletions official/c39581190.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--Subterror Nemesis Archer
--サブテラーの射手
--Subterror Nemesis Archer
local s,id=GetID()
function s.initial_effect(c)
--to deck
--Shuffle an opponent's face-down Defense Position monster into the Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_TODECK)
Expand All @@ -13,7 +13,7 @@ function s.initial_effect(c)
e1:SetTarget(s.tdtg)
e1:SetOperation(s.tdop)
c:RegisterEffect(e1)
--spsummon
--Special Summon 1 "Subterror" monster from your Deck
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
Expand Down
6 changes: 3 additions & 3 deletions official/c40240595.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--Cocoon of Evolution
--進化の繭
--Cocoon of Evolution
--fixed by Larry126
local s,id=GetID()
function s.initial_effect(c)
--equip
--Equip this card to 1 "Petit Moth" you control
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_IGNITION)
Expand Down Expand Up @@ -31,7 +31,7 @@ function s.initial_effect(c)
e3:SetOperation(s.checkop2)
c:RegisterEffect(e3)
end
s.listed_names={58192742,id}
s.listed_names={58192742,id} --"Petit Moth"
function s.checkcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetCardTarget()
return Duel.IsTurnPlayer(tp) and g and g:IsExists(Card.IsCode,1,nil,58192742)
Expand Down
Loading