| | Author | Message |
---|
jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: My name is Jack Sat Aug 03, 2013 11:08 am | |
| Hello. My name is Jack. I have been scripting cards for YGOPro and my own anime cards project called Jackpro for almost a year now. I am self taught in the art of scripting (if you can call it that) and I have done cards as far as the Alchemy Beasts as used in GX, the Armor monsters as used by Valon in the Orichalcos season of Yugioh, the Valkyrie cards used by Zigfried in Season 5 of the Yugioh and Leon's Fairy Tale cards including Golden Castle of Stromberg from the same season. Lately I have done the Magnet Warriors and Fossil support cards from GX and I am currently working on the Darkness cards from Season 4 of GX. So thats my work in a nutshell.
... I might eventually update this post if I ever figure out something else witty to say.
~Jack |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: Re: My name is Jack Sun Aug 04, 2013 2:10 am | |
| welcome jack glad to see you join |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Sun Aug 04, 2013 6:01 pm | |
| hey jack. nice to see you've made it this way
a question to anyone that's made their own or have used any of the seal of orichalcos field spells: any version out there have the 'use your s/t zone as monster zones as well' effect? if not, could either of you script that? or can it not be done like flipping something face-down in the graveyard? |
| | | outlaw1994
Admin
Member Title : Red-Eyes Lord Posts : 797 Join date : 2013-07-09 Age : 29 Location : bundaberg qld australia
| Subject: Re: My name is Jack Mon Aug 05, 2013 2:59 am | |
| It can be done but the monsters in s/t zone cant attack |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Mon Aug 05, 2013 3:35 am | |
| good enough really lol. every time I've seen people use that effect, the ones in the back are usually kytora to absorb damage or pretty much anything they wouldn't attack with anyway. could you synchro/fusion/xyz with the ones back there as well? |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Mon Aug 05, 2013 4:16 am | |
| As fusion material.. yes I believe so but not so much Synchro and Xyz unless they can be considered monsters in the backrow. Actually now that I think about it I think thats possible, going to go test that now.
~Jack |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Mon Aug 05, 2013 4:32 am | |
| Ok I tested that theory and it turns out that cards can't have levels in the S/T zone even if you change then to monster types. Sorry about that.
~Jack |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Tue Aug 06, 2013 1:59 am | |
| damn, i like how you guys can run scripts like that lol. thanks for testing it regardless. I'm don't think i'll ever use the Orichalcos cards, period but was wondering how close you could get it to the anime effect. and what's availible is close enough. ever check out the 'special summon this monster if your opponent declares a direct attack and banish the attacking monster' effect i put up on the ygopro forums? I can't get that for anything! I've been knocking off alot of other cards left and right though. it really does get easier as you mow through em |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Tue Aug 06, 2013 7:22 am | |
| Eh. With a bit of practice it's easy.The closest I can get it is the ability to shift monsters to the empty zone behind it but of course without levels and stats and then vice versa shift.
Also what do you have so far for your card's script?
~Jack |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Tue Aug 06, 2013 8:27 am | |
| --32083013 function c32083013.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(32083013,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c32083013.spcon) e1:SetTarget(c32083013.sptg) e1:SetOperation(c32083013.spop) c:RegisterEffect(e1) end function c32083013.spcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() return at:GetControler()~=tp and Duel.GetAttackTarget()==nil end function c32083013.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) end function c32083013.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end
with this, I can special summon it when my opponent declares a direct attack, but any time i try to add in a banishing effect, it screws up everything. |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Tue Aug 06, 2013 8:42 am | |
| Ok I solved your issue. You were trying to make 2 things happen at once, the SS and the Banishment. You have to tell lua one thing at a time to do. Try this script and tell me if you notice what I changed:
--32083013 function c32083013.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(32083013,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c32083013.spcon) e1:SetTarget(c32083013.sptg) e1:SetOperation(c32083013.spop) c:RegisterEffect(e1) end function c32083013.spcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() return at:GetControler()~=tp and Duel.GetAttackTarget()==nil end function c32083013.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) end function c32083013.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c and Duel.SpecialSummonStep(c,0,tp,tp,true,true,POS_FACEUP) then Duel.Remove(Duel.GetAttacker(),POS_FACEUP,REASON_EFFECT) end end |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Tue Aug 06, 2013 9:02 am | |
|
Last edited by cane_63106 on Tue Aug 06, 2013 9:05 am; edited 1 time in total |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Tue Aug 06, 2013 9:04 am | |
| i think i see it: before: if c:IsRelateToEffect(e) then after: if c and Duel.SpecialSummonStep(c,0,tp,tp,true,true,POS_FACEUP) then
so the (IsRelateToEffect) part is optional? I see 'how' you're telling it to get the attacker and remove it too.
works exactly like i wanted it to. once again, thanks so much! |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Tue Aug 06, 2013 9:06 am | |
| The if BLAH:IsRelateToEffect(e) is just a check to make sure what ever BLAH is that it is part of the effect.. but it is kinda contradictory because the GetHandler() (the card handling the effect) is always part of the effect. So in a way sometimes it is optional and other times it is not.
Hope you enjoy your card. Do you need help with any other effect?
~Jack |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Tue Aug 06, 2013 9:43 am | |
| Enjoying it greatly right now. IRL that was always a great surprise card for my opponent. I'm almost done with it, but it's effect was only supposed to go off when it's fusion summoned. but after special summoning it again through a spell card or even decoy dragon, it goes off again. also, how would i go about adding to the 5 dragons that are needed, that they have different names? this takes any 5, which i kinda like, but with how this effect goes off with the deck, i want to make it a lil harder to get out. e1:SetCode(EVENT_SPSUMMON_SUCCESS) needs to be different, i'm thinking. spsummon to fsummon or something? I'm messing with it right now, but the game is being hard about the situation being right to see if it'll go off again. also, here is the entire d.d. dragon archetype. i've been knocking them off one by one as I learn more, but if there are any you wouldn't mind taking a shot at, by all means, please do lol --32083016 function c32083016.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x7D53),5,true) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetOperation(c32083016.tgop) c:RegisterEffect(e1) end function c32083016.filter(c) return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_DRAGON)and c:IsSetCard(0x7D53) end function c32083016.tgop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(c32083016.filter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,nil) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) end |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Tue Aug 06, 2013 3:11 pm | |
| As for your first issue, I would recommend looking at cards that go off when Fusion Summoned (Electrum, Chimeratech Overdragon, Ignition Beast Volcannon). e1:SetCode(EVENT_SPSUMMON_SUCCESS) is right you just need this condition in it:
function cX.condition(e,tp,eg,ep,ev,re,r,rp) return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION end
Different names? Try something like this:
function cX.filter(c) return c:IsRace(RACE_DRAGON) end function cX.condition(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(cX.filter,tp,LOCATION_GRAVE,0,nil) local ct=g:GetClassCount(Card.GetCode) return ct>4 end |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Wed Aug 07, 2013 11:42 pm | |
| Thanks for helping clear up the effect going off each time. I'm stuck on the 5 different d.d. dragons as fusion materials though. Should I change LOCATION_GRAVE to something else or just take it out completely? I've placed that code in, modified as much as i could and nothing. |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Wed Aug 07, 2013 11:49 pm | |
| Um. Can I get the current revision of your script?
~Jack |
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: My name is Jack Thu Aug 08, 2013 1:21 am | |
| no prob
--32083016 function c32083016.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x7D53),5,true) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c32083016.condition) e1:SetOperation(c32083016.tgop) c:RegisterEffect(e1) end function c32083016.filter(c) return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_DRAGON)and c:IsSetCard(0x7D53) end function c32083016.condition(e,tp,eg,ep,ev,re,r,rp) return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION end function c32083016.tgop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(c32083016.filter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,nil) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) end |
| | | jackmoonward
Admin
Posts : 75 Join date : 2013-08-03 Age : 26 Location : Classified
| Subject: Re: My name is Jack Thu Aug 08, 2013 2:49 am | |
| Ok I've made it so you can only fuse this thing with 5 "D.D" monsters, also I fixed what your last effect appears to be banishing 5 of them.
--32083016 function c32083016.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,c32083016.ffilter,5,true) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c32083016.condition) e1:SetOperation(c32083016.tgop) c:RegisterEffect(e1) end function c32083016.ffilter(c) return c:IsSetCard(0x7D53) end function c32083016.filter(c) return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() and c:IsRace(RACE_DRAGON) and c:IsSetCard(0x7D53) end function c32083016.condition(e,tp,eg,ep,ev,re,r,rp) return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION end function c32083016.tgop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,c32083016.filter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,5,5,nil) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end |
| | | Sponsored content
| Subject: Re: My name is Jack | |
| |
| | | |
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests 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 |
|