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 | .
 

 My first scripted card

View previous topic View next topic Go down 
AuthorMessage
Sebek

avatar


Member Title : Sebek
Posts : 9
Join date : 2013-10-02

PostSubject: My first scripted card   Sat Jul 19, 2014 10:17 am

Hi all here is my first scripted card:


effect:

1 Tuner + 1 or more non-Tuner monsters
When this card is Special Summoned, you can Special Summon as many "Hikoki Tokens" (Dragon-Type/DARK/Level 3/ATK 1000/DEF 500) as possible. You can Tribute 1 Token you control to target 1 card on the field; Banish that target. This card cannot attack during the turn you activated this effect.



and the token




here is the code:

--Hikoki no Ryu
function c73522031.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73522031,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetTarget(c73522031.sptg)
e1:SetOperation(c73522031.spop)
c:RegisterEffect(e1)
--banish
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCost(c73522031.rmcost)
e2:SetTarget(c73522031.rmtg)
e2:SetOperation(c73522031.rmop)
c:RegisterEffect(e2)
end
function c73522031.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,73522032,0,0x4011,1000,500,3,RACE_DRAGON,ATTRIBUTE_DARK) end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,ft,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,ft,0,0)
end
function c73522031.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,73522032,0,0x4011,1000,500,3,RACE_DRAGON,ATTRIBUTE_DARK) then return end
local g=Group.CreateGroup()
for i=1,ft do
local token=Duel.CreateToken(tp,73522032)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
g:AddCard(token)
    end
end
function c73522031.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0
and Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_TOKEN) end
local g=Duel.SelectReleaseGroup(tp,Card.IsType,1,1,nil,TYPE_TOKEN)
Duel.Release(g,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1)
end
function c73522031.filter(c)
return c:IsAbleToRemove()
end
function c73522031.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c73522031.filter(chkc) end
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>1
and Duel.IsExistingTarget(c73522031.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local g=Duel.SelectTarget(tp,c73522031.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function c73522031.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end


hope you like it D:
Back to top Go down
View user profile
urielkama




Member Title : Stupid Broken Nerd and Bleach fan °_°
Posts : 11
Join date : 2014-05-06

PostSubject: Re: My first scripted card   Sat Jul 19, 2014 11:31 am

a suitable strong card i like it Smile.
Back to top Go down
View user profile
Sebek

avatar


Member Title : Sebek
Posts : 9
Join date : 2013-10-02

PostSubject: Re: My first scripted card   Sat Jul 19, 2014 12:29 pm

Thanks! : D
Back to top Go down
View user profile
TGAP-Trixie

avatar


Member Title : Trixie does not even...
Posts : 273
Join date : 2014-04-17

PostSubject: Re: My first scripted card   Mon Jul 28, 2014 6:52 am

Must... not... mention... draccossack... similarities... Razz
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: My first scripted card   Mon Jul 28, 2014 12:21 pm

Cool card, reminds me of Phantom Skyblaster Very Happy

_________________
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Sponsored content





PostSubject: Re: My first scripted card   

Back to top Go down
 

My first scripted card

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

 Similar topics

-
» New Payment Method - Credit/Debit Card
» [Card Review Article] Card Sneak-a-Peek: Herald of Perfection
» Card Ruling at Diamond Dude?
» Yugioh card game
» Virtual Birthday Card for Gerry via gerardbutler.net

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