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

 HELP! PLZ!

View previous topic View next topic Go down 
AuthorMessage
cane_63106

avatar


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

PostSubject: HELP! PLZ!    Fri Aug 23, 2013 6:40 am

I'm trying to get this card to have this effect:

Cannot be Normal Summoned/Set. Can only be Special Summoned when banished by turning 3 banished 'D.D. Dragons' face-down. This card's original ATK is the total level of the monsters x500. This card is unaffected by effects that target it. Once per turn you can banish 1 monster your opponent controls and do damage equal to the difference in the ATK of this and the banished monster (regardless of which is higher). If this card would be removed from the field, banish 1 'D.D. Dragon' in your graveyard instead.

I've started with the Special Summoning/ATK gain effect first by trying to tweak Montage Dragon's effect, but I keep getting this every time:



Should I just put this in the request to see if anyone wouldn't mind knocking this script off as a whole? This is what I've done so far and can't get it to be selected for some reason.

--32083000
function c32083000.initial_effect(c)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetOperation(c32083000.atkop)
c:RegisterEffect(e3)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32083000,1))
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_REMOVED)
e2:SetCondition(c32083000.spcon)
e2:SetOperation(c32083000.spop)
e2:SetLabelObject(e3)
c:RegisterEffect(e2)
end
function c32083000.filter(c)
return c:IsRace(RACE_DRAGON)and c:IsSetCard(0x7D53) and c:IsAbleToGraveAsCost()
end
function c32083000.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(c32083000.filter,c:GetControler(),LOCATION_HAND,0,3,e:GetHandler())
end
function c32083000.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c32083000.filter,tp,LOCATION_HAND,0,3,3,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
local sum=0
local tc=g:GetFirst()
while tc do
local lv=tc:GetLevel()
sum=sum+lv
tc=g:GetNext()
end
e:GetLabelObject():SetLabel(sum*500)
end
function c32083000.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
Back to top Go down
View user profile http:// https://www.youtube.com/user/cane63106/videos
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 3:35 am

i will try and code the card after i finish the ra card
Back to top Go down
View user profile http://mackpro.userboard.net
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 7:02 am

here the code for this part of the effect



Cannot be Normal Summoned/Set. Can only be Special Summoned when banished by turning 3 banished 'D.D. Dragons' face-down. This card's original ATK is the total level of the monsters x500. :
 
Back to top Go down
View user profile http://mackpro.userboard.net
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 8:25 am

Thanks a lot man. Was the to the grave and back out of play as cost a work around game mechanics?

_________________
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
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 8:42 am

yeah theres no code atm for flipping cards facedown in banished so instead i did a work around by sending them to the grave then banishing them again facedown
Back to top Go down
View user profile http://mackpro.userboard.net
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 9:05 am

great execution on that one seriously. same results regardless and it's still the same cost in the end.

_________________
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
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 9:31 am

lol yep
Back to top Go down
View user profile http://mackpro.userboard.net
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Sat Aug 24, 2013 9:44 am

the rest of the effect coming along easily? i'm hoping lol
Back to top Go down
View user profile http:// https://www.youtube.com/user/cane63106/videos
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Mon Aug 26, 2013 5:56 am

hey outlaw, can you help me to only target d.d. dragons in my graveyard?

--32083000
function c32083000.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetOperation(c32083000.atkop)
c:RegisterEffect(e3)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32083000,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_REMOVED)
e2:SetCondition(c32083000.spcon)
e2:SetOperation(c32083000.spop)
e2:SetLabelObject(e3)
c:RegisterEffect(e2)
--immune
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetValue(c32083000.efilter)
c:RegisterEffect(e4)
--destroy replace
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetRange(LOCATION_MZONE)
e5:SetValue(c32083000.rfilter)
e5:SetCode(EFFECT_DESTROY_REPLACE)
e5:SetTarget(c32083000.desreptg)
c:RegisterEffect(e5)
end
function c32083000.filter(c)
return c:IsRace(RACE_DRAGON) and c:IsSetCard(0x7D53) and c:IsFaceup()
end
function c32083000.spcon(e,c)
local c=e:GetHandler()
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(c32083000.filter,c:GetControler(),LOCATION_REMOVED,0,3,e:GetHandler())
end
function c32083000.spop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c32083000.filter,tp,LOCATION_REMOVED,0,3,3,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
Duel.Remove(g,POS_FACEDOWN,REASON_COST)
local sum=0
local tc=g:GetFirst()
while tc do
local lv=tc:GetLevel()
sum=sum+lv
tc=g:GetNext()
end
e:GetLabelObject():SetLabel(sum*500)
Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)
end
function c32083000.efilter(e,te)
return te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and te:IsActiveType(TYPE_TRAP) or te:IsActiveType(TYPE_SPELL) or te:IsActiveType(TYPE_MONSTER)
end
function c32083000.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
function c32083000.rfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x7D53) and c:IsAbleToRemove()
end
function c32083000.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,1,nil,RACE_DRAGON)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsRace,tp,LOCATION_GRAVE,0,1,1,nil,RACE_DRAGON)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
return true
end

_________________
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
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Mon Aug 26, 2013 6:02 am

try this


--32083000
function c32083000.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetOperation(c32083000.atkop)
c:RegisterEffect(e3)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32083000,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_REMOVED)
e2:SetCondition(c32083000.spcon)
e2:SetOperation(c32083000.spop)
e2:SetLabelObject(e3)
c:RegisterEffect(e2)
--immune
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetValue(c32083000.efilter)
c:RegisterEffect(e4)
--destroy replace
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetRange(LOCATION_MZONE)
e5:SetCode(EFFECT_DESTROY_REPLACE)
e5:SetTarget(c32083000.desreptg)
c:RegisterEffect(e5)
end
function c32083000.filter(c)
return c:IsRace(RACE_DRAGON) and c:IsSetCard(0x7D53) and c:IsFaceup()
end
function c32083000.spcon(e,c)
local c=e:GetHandler()
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(c32083000.filter,c:GetControler(),LOCATION_REMOVED,0,3,e:GetHandler())
end
function c32083000.spop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c32083000.filter,tp,LOCATION_REMOVED,0,3,3,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
Duel.Remove(g,POS_FACEDOWN,REASON_COST)
local sum=0
local tc=g:GetFirst()
while tc do
local lv=tc:GetLevel()
sum=sum+lv
tc=g:GetNext()
end
e:GetLabelObject():SetLabel(sum*500)
Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)
end
function c32083000.efilter(e,te)
return te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and te:IsActiveType(TYPE_TRAP) or te:IsActiveType(TYPE_SPELL) or te:IsActiveType(TYPE_MONSTER)
end
function c32083000.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
function c32083000.rfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x7D53) and c:IsAbleToRemove()
end
function c32083000.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c32083000.rfilter,tp,LOCATION_GRAVE,0,1,nil,nil)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c32083000.rfilter,tp,LOCATION_GRAVE,0,1,1,nil,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
return true
end
Back to top Go down
View user profile http://mackpro.userboard.net
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Mon Aug 26, 2013 9:17 pm

works perfectly! thanks again. i might bother a bit more on this one lol

_________________
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
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Wed Aug 28, 2013 3:35 am

I'm trying to finish this up with it's banish and do damage equal to the difference in the ATKs of the monsters. I snagged a bit from Counterforce and tried to connect it with its already working banishing effect. Where am I messing up? I keeps telling me about the:

local a1=Duel.GetHandler():GetAttack()
local a2=Duel.GetTarget():GetAttack()

are wrong, but i honestly don't know what to call them for this effect.

--32083000
function c32083000.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--atk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetOperation(c32083000.atkop)
c:RegisterEffect(e3)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32083000,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_REMOVED)
e2:SetCondition(c32083000.spcon)
e2:SetOperation(c32083000.spop)
e2:SetLabelObject(e3)
c:RegisterEffect(e2)
--disable effect
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_CHAIN_SOLVING)
e4:SetRange(LOCATION_MZONE)
e4:SetOperation(c32083000.disop)
c:RegisterEffect(e4)
--destroy replace
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetRange(LOCATION_MZONE)
e5:SetCode(EFFECT_DESTROY_REPLACE)
e5:SetTarget(c32083000.desreptg)
c:RegisterEffect(e5)
--banish+damage
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(32083000,1))
e6:SetCategory(CATEGORY_REMOVE)
e6:SetType(EFFECT_TYPE_IGNITION)
e6:SetProperty(EFFECT_FLAG_CARD_TARGET)
e6:SetRange(LOCATION_MZONE)
e6:SetCountLimit(1)
e6:SetTarget(c32083000.destg)
e6:SetOperation(c32083000.desop)
c:RegisterEffect(e6)
end
function c32083000.disop(e,tp,eg,ep,ev,re,r,rp)
if not re:GetHandler():IsType(TYPE_SPELL) and re:GetHandler():IsType(TYPE_TRAP) and re:GetHandler():IsType(TYPE_MONSTER) or rp==tp then return end
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
if g and g:IsContains(e:GetHandler()) then 
Duel.NegateEffect(ev)
end
end
function c32083000.filter(c)
return c:IsRace(RACE_DRAGON) and c:IsSetCard(0x7D53) and c:IsFaceup()
end
function c32083000.spcon(e,c)
local c=e:GetHandler()
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(c32083000.filter,c:GetControler(),LOCATION_REMOVED,0,3,e:GetHandler())
end
function c32083000.spop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c32083000.filter,tp,LOCATION_REMOVED,0,3,3,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
Duel.Remove(g,POS_FACEDOWN,REASON_COST)
local sum=0
local tc=g:GetFirst()
while tc do
local lv=tc:GetLevel()
sum=sum+lv
tc=g:GetNext()
end
e:GetLabelObject():SetLabel(sum*500)
Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)
end
function c32083000.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_BASE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
function c32083000.rfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x7D53) and c:IsAbleToRemove()
end
function c32083000.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c32083000.rfilter,tp,LOCATION_GRAVE,0,1,nil,nil)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c32083000.rfilter,tp,LOCATION_GRAVE,0,1,1,nil,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
return true
end
function c32083000.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToRemove() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
local a1=Duel.GetHandler():GetAttack()
local a2=Duel.GetTarget():GetAttack()
local dam=a1-a2
if dam<0 then dam=-dam end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,dam)
end
function c32083000.desop(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)
p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
end

_________________
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
outlaw1994

avatar
Admin
Admin

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

PostSubject: Re: HELP! PLZ!    Wed Aug 28, 2013 4:48 am

Change Duel. GetHandler() to e:GetHandler() in the var a1
Back to top Go down
View user profile http://mackpro.userboard.net
cane_63106

avatar


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

PostSubject: Re: HELP! PLZ!    Wed Aug 28, 2013 5:55 am

thank so much man! also figured that the other one should have been getfirsttarget. this beast is alive and kickin now. just a few more and this set is done and i can finally start on the pokemon

_________________
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
Sponsored content





PostSubject: Re: HELP! PLZ!    

Back to top Go down
 

HELP! PLZ!

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

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom Card Ruling and Bugs-