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

 Dimensional Hole & Dimensional Reborn Help

View previous topic View next topic Go down 
AuthorMessage
Marc1




Posts : 43
Join date : 2013-08-03

PostSubject: Dimensional Hole & Dimensional Reborn Help   Sat Aug 03, 2013 7:55 pm

I tried coding these two cards but for some reason they are not working. Any clue where I went wrong?


Code:
--Dimensional Hole
function c3040.initial_effect(c)
    --Activate
    local e1=Effect.CreateEffect(c)
    e1:SetCategory(CATEGORY_Remove)
    e1:SetType(EFFECT_TYPE_ACTIVATE)
    e1:SetCode(EVENT_FREE_CHAIN)
    e1:SetTarget(c3040.target)
    e1:SetOperation(c3040.activate)
    c:RegisterEffect(e1)
end

function c3040.target(e,tp,eg,ep,ev,re,r,rp,chk)
    if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
    local sg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
    Duel.SetOperationInfo(0,CATEGORY_Remove,sg,sg:GetCount(),0,0)
end

function c3040.activate(e,tp,eg,ep,ev,re,r,rp)
    local sg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
    Duel.Remove(sg,REASON_EFFECT)
end






Code:
--Dimensional Reborn
function c3042.initial_effect(c)
    --Activate
    local e1=Effect.CreateEffect(c)
    e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
    e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
    e1:SetType(EFFECT_TYPE_ACTIVATE)
    e1:SetCode(EVENT_FREE_CHAIN)
    e1:SetTarget(c3042.target)
    e1:SetOperation(c3042.activate)
    c:RegisterEffect(e1)
end

function c3042.filter(c,e,tp)
    return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end

function c3042.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
    if chkc then return chkc:IsLocation(LOCATION_REMOVE) and c3042.filter(chkc,e,tp) end
    if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
        and Duel.IsExistingTarget(c3042.filter,tp,LOCATION_REMOVE,LOCATION_REMOVE,1,nil,e,tp) end
    Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
   local g=Duel.SelectTarget(tp,c3042.filter,tp,LOCATION_REMOVE,LOCATION_REMOVE,1,1,nil,e,tp)
    Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end

function c3042.activate(e,tp,eg,ep,ev,re,r,rp)
    local tc=Duel.GetFirstTarget()
    if tc:IsRelateToEffect(e) then
        Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
    end
end


 
Back to top Go down
View user profile
outlaw1994

avatar
Admin
Admin

Member Title : Red-Eyes Lord
Posts : 797
Join date : 2013-07-09
Age : 23
Location : bundaberg qld australia

PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   Sun Aug 04, 2013 2:06 am

can you say what the effects are thanks
Back to top Go down
View user profile http://mackpro.userboard.net
Marc1




Posts : 43
Join date : 2013-08-03

PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   Sun Aug 04, 2013 3:47 am

Sorry about that.

Dimensional Hole

Banish all monsters on the field.

Dimensional Reborn

Special summon 1 banished monster to your side of the field.
Back to top Go down
View user profile
cane_63106

avatar


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

PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   Mon Aug 05, 2013 3:39 am

I have a card here: http://mackpro.userboard.net/t20-few-of-my-dd-cards called D.D. Abyss with that exact effect. You can either get that or just copy the script.

_________________
Now...you will feel my wrath and know your place! I activate DIMENSIONAL END!!!

Custom Card Duels
Back to top Go down
View user profile http:// https://www.youtube.com/user/cane63106/videos
jackmoonward

avatar
Admin
Admin

Posts : 75
Join date : 2013-08-03
Age : 20
Location : Classified

PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   Mon Aug 05, 2013 4:37 am

The problem with Dimension Hole is this:
Duel.Remove(sg,REASON_EFFECT)
You need to tell it if you are banishing face-up or facedown.
So like this instead;
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)

Your problem with Dimension Reborn is this:
local g=Duel.SelectTarget(tp,c3042.filter,tp,LOCATION_REMOVE,LOCATION_REMOVE,1,1,nil,e,tp)

The location you want is LOCATION_REMOVED not LOCATION_REMOVE

~Jack

_________________
Jackpro! The only YGOPro anime mod with Alchemy Beasts, Armor monsters, Valkyries, and more! Download at www.tehmadhouse.tk

My YouTube: www.youtube.com/user/jackmoonward
Back to top Go down
View user profile http://www.tehmadhouse.tk
Marc1




Posts : 43
Join date : 2013-08-03

PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   Mon Aug 05, 2013 2:51 pm

They work now. Thank you!
Back to top Go down
View user profile
Sponsored content





PostSubject: Re: Dimensional Hole & Dimensional Reborn Help   

Back to top Go down
 

Dimensional Hole & Dimensional Reborn Help

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

 Similar topics

-
» Dimensional Glads
» Immortal Dimensional Eatos
» [Deck Review Article] Gladiator Beasts
» Eatos, Guardian of Chaos
» Gemini Spark and Thunder King Rai-Oh

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