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
 

 Help with Number 5: Dark Seer

View previous topic View next topic Go down 
AuthorMessage
Marc1




Posts : 43
Join date : 2013-08-03

Help with Number 5: Dark Seer Empty
PostSubject: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeWed Nov 27, 2013 7:14 pm

Here’s another one! For some reason I can only select 3 and it doesn’t sort.



 

Number 5: Dark Seer


Rank 5 Dark Psychic 2800/2200


2 Level 5 monsters


Once per turn: You can detach 1 Xyz Material from this card to look at the top 5 cards from your deck. Return them to the top of your deck in any order.



 

--Number 5: Dark Seer


function c1005000000.initial_effect(c)


--xyz summon


aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,5),2)


c:EnableReviveLimit()


--sortdecktop


local e1=Effect.CreateEffect(c)


e1:SetType(EFFECT_TYPE_IGNITION)


e1:SetRange(LOCATION_MZONE)


e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)


e1:SetCountLimit(1)


e1:SetCost(c1005000000.cost)


e1:SetTarget(c1005000000.target)


e1:SetOperation(c1005000000.operation)


c:RegisterEffect(e1)


end


function c1005000000.cost(e,tp,eg,ep,ev,re,r,rp,chk)


if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end


e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)


end


function c1005000000.target(e,tp,eg,ep,ev,re,r,rp,chk)


if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>2 end


end


function c1005000000.operation(e,tp,eg,ep,ev,re,r,rp)


Duel.SortDecktop(tp,tp,5)


end
Back to top Go down
VB99

VB99


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

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeWed Nov 27, 2013 7:55 pm

I suck at coding, but shouldn't 
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>2 end
be more like
Duel.SortDecktop(tp,tp,5)
?

MfG
VB99

P.S.: The arrangement was choosen like this so you can simply copy the line (if my guess was correct, that is).


Last edited by VB99 on Thu Nov 28, 2013 2:05 pm; edited 2 times in total
Back to top Go down
http://www.fanfiktion.de/u/VB99
outlaw1994

outlaw1994
Admin
Admin

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

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeWed Nov 27, 2013 11:30 pm

i see too problems here first it this
1005000000
id is too long must be 8 numbers max
and this line
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>2 end

should be
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>4 end
Back to top Go down
https://mackpro.forumotion.com
Marc1




Posts : 43
Join date : 2013-08-03

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeThu Nov 28, 2013 2:52 am

Thanks! I will try that out.

I have others that have 10 digits and they work fine. I had to go to 10 digits as Percy kept using the same series of numbers that I was. So I got tired of reprogramming them and tried this out.
Back to top Go down
Marc1




Posts : 43
Join date : 2013-08-03

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeThu Nov 28, 2013 9:07 pm

It didn't work. Still getting the same problem. I can only select 2 cards and it doesn't sort.
Back to top Go down
VB99

VB99


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

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeThu Nov 28, 2013 9:41 pm

What Is the second least effect good for?
Back to top Go down
http://www.fanfiktion.de/u/VB99
outlaw1994

outlaw1994
Admin
Admin

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

Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitimeFri Nov 29, 2013 12:39 am

i just tested the code to check and it works fine so idk how its playing up on your side
Back to top Go down
https://mackpro.forumotion.com
Sponsored content





Help with Number 5: Dark Seer Empty
PostSubject: Re: Help with Number 5: Dark Seer   Help with Number 5: Dark Seer Icon_minitime

Back to top Go down
 

Help with Number 5: Dark Seer

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

 Similar topics

-
» Anime number C69 and Number 69 request
» Help with Number 18: Grave Retriever
» Number c102 103 and c103
» Dark Heroes
» Help with Number 3: The Mad Fiend

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