| | Author | Message |
---|
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| | | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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 |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 7:52 pm | |
| |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: 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?? |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 8:07 pm | |
| nope i summon my monster effect not working |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: 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 |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 8:35 pm | |
| so whats the solution for this error? i cant find it |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 8:40 pm | |
| I modified the filter for the summon slightly. Maybe it works now? |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 8:47 pm | |
| |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: 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?? |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 8:56 pm | |
| the opponent monster had 3000 attack |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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) .... |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: 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) |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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 |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: 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 -__-' |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 9:22 pm | |
| now its ok working totally that is good for xyz summon * xd |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 9:25 pm | |
| so the e was the problem? O_o |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 9:37 pm | |
| |
| | | AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 9:47 pm | |
| Now I can only say one thing: LOL -__- Did you just leave the 'e' ?? |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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? |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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. |
| | | Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Cloud Strife? Tue Jun 10, 2014 11:00 pm | |
| can tell me the hamachi server? |
| | | VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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. |
| | | Sponsored content
| Subject: Re: Cloud Strife? | |
| |
| | | |
| 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 :: 1 Bot 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 |
|