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

 Cloud Strife?

View previous topic View next topic Go down 
AuthorMessage
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Cloud Strife?   Tue Jun 10, 2014 4:26 pm

hi iam new guy here i dont know if you accept cards from other animes but anyway lets give it a try Smile 


When this card is normal summoned you can destroy one monster your opponents controls 1800 or more attack,then you can special summon one light or dark monster from your deck.(max attack 1800,min attack 1000).
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 6:39 pm

function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(XXXXXXXX,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(cXXXXXXXX.target)
e1:SetOperation(cXXXXXXXX.operation)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCondition(cXXXXXXXX.descon)
e2:SetTarget(cXXXXXXXX.destg)
e2:SetOperation(cXXXXXXXX.desop)
c:RegisterEffect(e2)
function cXXXXXXXX.descon(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)>0
end
function cXXXXXXXX.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsDestructable() and chkc:IsAttackAbove(1800) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function cXXXXXXXX.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
function cXXXXXXXX.filter(c,e,tp)
return c:IsAttackBelow(1800) and c:IsAttackAbove(1000) and c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_LIGHT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cXXXXXXXX.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cXXXXXXXX.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function cXXXXXXXX.operation(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,cXXXXXXXX.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end

Like this I'd guess. It chains the destruction to the summon, so that the destruction effect goes off first.


Last edited by VB99 on Tue Jun 10, 2014 8:39 pm; edited 2 times in total
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 7:49 pm

there is an error "string to close" something like that. i replace the cXXXXXXXX with my id
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 7:52 pm

yes, do that^^

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

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:00 pm

why did write in your function 'destg function' 'IsAttackAbove(1500)' although the card to destroy should have at least 1800 atk??

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:07 pm

nope i summon my monster effect not working
Back to top Go down
View user profile
AoO

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:15 pm

please always write, whether you get an error or not; it helps a lot ;D

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:35 pm

so whats the solution for this error? Smile i cant find it
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:40 pm

I modified the filter for the summon slightly. Maybe it works now?

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

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:47 pm

still not working
Back to top Go down
View user profile
AoO

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:51 pm

May I ask you how much attack the warrior type monster your opponent controlls has when you summon your card??

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:56 pm

the opponent monster had 3000 attack
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 8:58 pm

I think the error is here: c:IsAttackBelow(1800) and c:IsAttackAbove(1000) and c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_LIGHT)

Maybe it works if we take out the and c:IsAttackAbove(1000) ....

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

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:06 pm

still not working :O
iam not lying *
script error string "./script/c95482878.lua]:50: 'end' (to close function at line 1) near <eof>
spript error "callcardfunction (c95482878. initial effect_):attempt to call an error function
Back to top Go down
View user profile
AoO

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:13 pm

we belive that you are not lying^^
Can you post again what you have for a script right know??
(Just copy paste the script as text)

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:14 pm

function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(XXXXXXXX,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(cXXXXXXXX.target)
e1:SetOperation(cXXXXXXXX.operation)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCondition(cXXXXXXXX.descon)
e2:SetTarget(cXXXXXXXX.destg)
e2:SetOperation(cXXXXXXXX.desop)
c:RegisterEffect(e2)
end
function cXXXXXXXX.descon(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)>0
end
function cXXXXXXXX.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsDestructable() and chkc:IsAttackAbove(1800) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function cXXXXXXXX.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
function cXXXXXXXX.filter(c,e,tp)
return c:IsAttackBelow(1800) and c:IsAttackAbove(1000) and c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_LIGHT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cXXXXXXXX.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cXXXXXXXX.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function cXXXXXXXX.operation(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,cXXXXXXXX.filter,tp,LOCATION_DECK,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://www.fanfiktion.de/u/VB99
AoO

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:18 pm

Are you sure that you only need in the function descon an 'e' in brackets??
Sorry that I can't check it myself but my pc is a little screwed up atm -__-'

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:22 pm

now its ok working totally
that is good for xyz summon * xd
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:25 pm

so the e was the problem? O_o

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

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:37 pm

dunno
Back to top Go down
View user profile
AoO

avatar


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 9:47 pm

Now I can only say one thing: LOL -__-
Did you just leave the 'e' ??

_________________

Keep going, keep experiencing, keep learning AND: NEVER STOP!! >.<

Yugioh Custom Cards/ Decks/ Duels: https://www.youtube.com/channel/UCPil2ljKCm4HBhNT7wcNl-Q
Back to top Go down
View user profile
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 10:27 pm

two questios off-topic how i can play against other players and these cards we make are they are gonna be on the server? Smile
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 10:44 pm

As soon as the servr is up, yes. Until then you'll need to resort on Hamachi.

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

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 11:00 pm

can tell me the hamachi server? Razz
Back to top Go down
View user profile
VB99

avatar


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

PostSubject: Re: Cloud Strife?   Tue Jun 10, 2014 11:20 pm

I doubt we even have a server. I think we do player to player connection.

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





PostSubject: Re: Cloud Strife?   

Back to top Go down
 

Cloud Strife?

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

 Similar topics

-
» cloud strife sprites
» Thanks ANIME SPRITER7.4
» The BEANO: Is this the beginning of the end?
» Cork shapes
» Clouds that Shoot Quasar!?

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