|
| Author | Message |
---|
TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: XYZ floater? Sat Nov 01, 2014 6:30 am | |
| I tried a code previously (like de-synchro and twin photon lizard) but to no avail. The effect I'm trying to create is "When this card in your possession is destroyed by your opponent's card (either by battle, or by card effect) and sent to your graveyard: special summon the Xyz materials used for this card's Xyz summon. Their effects are negated"
I'm pretty sure de-synchro wouldn't work since the materials would be attached and not in the graveyard (most of the time) at the time of the xyz monster being destroyed. |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: XYZ floater? Sun Nov 02, 2014 7:09 pm | |
| Maybe the script of New Order 12 can help you, as it let special summon the materials. You just have to use another condition and the 'negate-effect-operation'. I hope it at least °.0 |
| | | TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: XYZ floater? Mon Nov 03, 2014 3:20 am | |
| That combination wouldn't work, (game mechanics wouldn't allow it and sadly I don't yet quite know how to script anything that can break the rules) but maybe an "If this card would be destroyed by battle or by card effect, you can special summon all xyz materials attached to this card, then banish this card" or maybe send it back to the extra deck, I haven't decided.
What I was really interested in was, in a way, "tracking" what cards were used for its xyz summon, so even if they were detached, you could still special summon the detached monster(s) from the graveyard (or wherever they end up), rather than requiring them to remain as materials for the effect. |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: XYZ floater? Wed Nov 05, 2014 8:17 pm | |
| Oh sorry missread the effect -__-' I'm not sure, but if you have the condition function of De-Synchro there is bit.band(c:GetReason(),0x80008)~=0x80008
The Hex Number contains the reason for that the material was used here: 0x80000 --> after the constant files 'Reason Synchro' 0x8 --> 'Reason Material' <=> 0x80008 --> Reason Material for a Synchro Summon
Maybe if you change the Number to '0x200008' (Reason Material for a Xyz Summon) you can get the materials. Like before it's just a assumption ^^' |
| | | TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: XYZ floater? Thu Nov 06, 2014 1:24 am | |
| OK thanks ^^. I'll try it |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: XYZ floater? Wed Nov 12, 2014 9:05 pm | |
| Just want to ask whether the card works with the 0x80008 or did you find a solution?? |
| | | TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: XYZ floater? Fri Nov 14, 2014 4:53 am | |
| I haven't made the card I was gonna give the effect to so I added it onto an existing card. Anyways, no it didn't trigger at all - code:
- Code:
-
--material summon local e3=Effect.CreateEffect(c) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e3:SetCode(EVENT_TO_GRAVE) e3:SetCondition(c60000119.matcon) e3:SetTarget(c60000119.mattg) e3:SetOperation(c60000119.matop) c:RegisterEffect(e3) end function c60000119.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and rp~=tp end function c60000119.mgfilter(c,e,tp,fusc) return not c:IsControler(tp) or not c:IsLocation(LOCATION_GRAVE) or bit.band(c:GetReason(),0x200008)~=0x200008 or c:GetReasonCard()~=xyz or not c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsHasEffect(EFFECT_NECRO_VALLEY) end function c60000119.mattg(e,tp,eg,ep,ev,re,r,rp,chk) local g=e:GetHandler():GetMaterial() if chk==0 then return g:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)+1>=g:GetCount() and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and not g:IsExists(c60000119.mgfilter,1,nil,e,tp,e:GetHandler()) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) end function c60000119.matop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() if Duel.GetLocationCount(tp,LOCATION_MZONE)>=g:GetCount() and not g:IsExists(c60000119.mgfilter,1,nil,e,tp,e:GetHandler()) then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end
|
| | | cane_63106
Member Title : D.D. Dragon Kaiser Posts : 454 Join date : 2013-07-23 Location : St. Louis, MO
| Subject: Re: XYZ floater? Fri Nov 14, 2014 9:48 am | |
| Maybe mixing up Xyz Encore and Ascension Sky Dragon's scripts would help |
| | | TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: XYZ floater? Sat Nov 15, 2014 2:55 am | |
| Well to be fair, I didn't really playtest that previous script since it's not what I want (I want the materials to be able to be SS from anywhere, not just the gy). I'll detach both materials and then have it destroyed and it should trigger, and later I'll worry about the locations and negating their effects. If it doesn't though I'll see about xyz encore (already tried ascension as well) |
| | | Sponsored content
| Subject: Re: XYZ floater? | |
| |
| | | |
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there are 4 users online :: 0 Registered, 0 Hidden and 4 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 |
|