a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | .
 

 D.D. Dragon - Avalon

View previous topic View next topic Go down 
AuthorMessage
cane_63106

avatar


Member Title : D.D. Dragon Kaiser
Posts : 454
Join date : 2013-07-23
Location : St. Louis, MO

PostSubject: D.D. Dragon - Avalon   Sun Aug 11, 2013 4:36 pm



--32083003
function c32083003.initial_effect(c)
--spsummon proc
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c32083003.hspcon)
e1:SetOperation(c32083003.hspop)
c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32083003,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE)
e2:SetTarget(c32083003.sptg)
e2:SetOperation(c32083003.spop)
c:RegisterEffect(e2)
end
function c32083003.spfilter(c)
return c:IsFaceup() and c:IsRace(RACE_DRAGON)and c:IsSetCard(0x7D53) and c:IsAbleToRemoveAsCost()
end
function c32083003.hspcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c32083003.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function c32083003.hspop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c32083003.spfilter,c:GetControler(),LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_COST)
end
function c32083003.filter(c,e,tp)
return c:IsRace(RACE_DRAGON)and c:IsSetCard(0x7D53) and c:GetCode()~=32083003
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c32083003.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c32083003.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_REMOVED)
end
function c32083003.spop(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,c32083003.filter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
Back to top Go down
View user profile http:// https://www.youtube.com/user/cane63106/videos
 

D.D. Dragon - Avalon

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» power tool dragon deck(rate and fix)
» Black rose dragon and Beast of the pharaoh.
» Plant Red Nova Dragon Deck
» Aster Phoenix - Dragon Deck
» New from Dragon/CyberHobby

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom Cards-