| | Author | Message |
---|
cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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 |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: Re: HELP! PLZ! Sat Aug 24, 2013 3:35 am | |
| i will try and code the card after i finish the ra card |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: 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. :
--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) 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
|
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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? |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: 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 |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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. |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: Re: HELP! PLZ! Sat Aug 24, 2013 9:31 am | |
| |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: HELP! PLZ! Sat Aug 24, 2013 9:44 am | |
| the rest of the effect coming along easily? i'm hoping lol |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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 |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: 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 |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: HELP! PLZ! Mon Aug 26, 2013 9:17 pm | |
| works perfectly! thanks again. i might bother a bit more on this one lol |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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 |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: Re: HELP! PLZ! Wed Aug 28, 2013 4:48 am | |
| Change Duel. GetHandler() to e:GetHandler() in the var a1 |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: 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 |
| | | Sponsored content
| Subject: Re: HELP! PLZ! | |
| |
| | | |
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest None Most users ever online was 270 on Sun Apr 11, 2021 4:35 pm |
Latest topics | » Goodbye allMon Aug 08, 2016 7:53 pm by Zenas» [PLEASE READ] [VERY IMPORTANT] MACKPRO REVIVALMon Aug 08, 2016 7:47 pm by Zenas» D.D. Dragons vs KozmosSun Jul 10, 2016 11:02 pm by cane_63106» Where's everyone?!Sat May 28, 2016 2:58 am by cane_63106» Mech Archetype (crappy it be, maybe you guys would like it)Sun May 15, 2016 1:11 pm by barti02» My Assassin ArchetypeSun May 15, 2016 1:10 pm by barti02» SO I have a "NEW ARCHETYPE THE "WolfPack"Sun May 15, 2016 12:35 pm by barti02» Fusion monster doesn't appear in extra deck? Sat Apr 30, 2016 9:02 pm by Marc1» Mackpro update 10/6/2015Sat Apr 02, 2016 6:36 pm by Hulkty» Bionicle Cards AKA Japanese Children's Cardgames on Swedish Toy RobotsSun Mar 06, 2016 9:37 am by Utso |
|