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
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 My first scripted card

View previous topic View next topic Go down 
AuthorMessage
Sebek

Sebek


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

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

Hi all here is my first scripted card:
My first scripted card Sblb3r

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
My first scripted card 2ykaqsx



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
urielkama




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

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

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

Sebek


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

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

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

TGAP-Trixie


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

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

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

VB99


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

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

Cool card, reminds me of Phantom Skyblaster Very Happy
Back to top Go down
http://www.fanfiktion.de/u/VB99
Sponsored content





My first scripted card Empty
PostSubject: Re: My first scripted card   My first scripted card Icon_minitime

Back to top Go down
 

My first scripted card

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

 Similar topics

-
» If Konami ever decided to build an archetype around an old card(s), which card(s) would you want it to be?
» Is this card OP?
» A 'lil stupid card I came up with...
» Card scripts
» Help with a card effect

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