Tegardee
  • Tegardee
  • Advanced Member Topic Starter
2015-10-23T21:39:11Z
hey guys, how I do a script to negate a Special Summon by a card effect?
Kello515
2015-10-24T14:32:25Z
you can copy the effect of solemn warning and make it continuous or you can copy the effect of level 12 T.G that negates a special summon of a monster
MVPIII
2015-10-24T17:16:23Z
Solemn warning would negate the card effect that WOULD special summon a monster, not the monster already summoned by the card or effect, which is what he wants I believe (like negating a shaddoll fusion monster's summon, not negating shaddoll fusion itself).

As far as T.G. halberd, it's poorly worded so I'm not sure if he could negate any summon you see fit or if it has to be "inherent" summons only. I guess it's worth a try, I honestly have no idea ;s
Tegardee
  • Tegardee
  • Advanced Member Topic Starter
2015-10-24T20:40:15Z
all cards that negate a Summon, just only negate a summon by CONDITION.

and about Halberd, it not negate any Special Summon, just condition.

about "inherit" I will see this.
MVPIII
2015-10-24T21:46:02Z
Inherent = summons, specifically special summons, that do not use a chain (cyber dragon, grapha, xyz summons, synchro summons, pendulum summons... I think you get the point). Of which cards like KM overload, rai-oh and black horn of heaven can negate. There I just saved you a bunch of time.
Tegardee
  • Tegardee
  • Advanced Member Topic Starter
2015-10-24T23:14:20Z
so, it is possible to negate a Special Summon that use a chain? (instant fusion, shaddoll fusion, polymerization, etc) ?
MVPIII
2015-10-25T20:06:16Z
That's why I said I'm not sure [:wall:] . T.G. Halberd just says once per turn you can negate the summon of a monster and destroy it. It doesn't have that specific condition wording that cards I mentioned have (If/when your opponent would special summon a/exactly 1 monster(s)...". But checking out its script it looks the same as them so imagine no, T.G. Halberd won't help. Maybe copy something like koaki meiru overload's negate special summon effect, but maybe add this line to the condition

return bit.band(r,REASON_EFFECT)~=0

KM Overload's effect in the spoiler if you want it.

Tegardee
  • Tegardee
  • Advanced Member Topic Starter
2015-10-26T20:23:39Z
bit.band also don't works.

damn this broken my head. I just need to negate a summon by a card effect, but its seems like impossible.
Vertex
2015-10-26T22:25:30Z
Originally Posted by: Tegardee 

bit.band also don't works.

damn this broken my head. I just need to negate a summon by a card effect, but its seems like impossible.



I'm rather sure you need to negate the effect that does the summoning, since by the time the effect that summons the monster resolves, the summoning is already considered successful, this is exactly why you cannot use something like Black Horn of Heavens against something like Monster Reborn (the inherent/chain explanation is the simplified version, not actually why the ruling works), and the rules prevent cards from activation in the middle of the resolution of an effects.

Now all of this being said, I have attached my attempt at this script. It checks if the card was summoned by an effect, if it was and it has any effects that activate at that time, those effects are negated along with the effects of the card, then (regardless of negation), those cards are destroyed. It's not perfect, and will break in some edge cases (like Wild Heart), it doesn't count as negating the summon (so the monsters can be reborned, etc. later), but it should be hopefully close enough. Keep in mind, this script can miss the timing, this can be fixed by adding EFFECT_FLAG_DELAY, though keep in mind that in the effect that multiple summoning effects are chained together, this will only negate the last of them to resolve (lowest chain link number).
File Attachment(s):
c45000000.lua (3kb) downloaded 1 time(s).

You cannot view/download attachments. Try to login or register.
MVPIII
2015-10-27T01:17:39Z
Yeah I forgot to mention change EVENT_SPSUMMON to EVENT_SPSUMMON_SUCCESS from that previous script from overload and that should be it. Although now that vertex mentioned that wild edge bit and that it doesn't negate, I don't think it's what you want. Is there a way to keep it in the summon negation window? Or maybe have the effect make the summon "go back" to the summon negation timing?
Vertex
2015-10-27T03:36:52Z
Originally Posted by: MVPIII 

Yeah I forgot to mention change EVENT_SPSUMMON to EVENT_SPSUMMON_SUCCESS from that previous script from overload and that should be it. Although now that vertex mentioned that wild edge bit and that it doesn't negate, I don't think it's what you want. Is there a way to keep it in the summon negation window? Or maybe have the effect make the summon "go back" to the summon negation timing?



I don't think the program actually has that functionality, this link  contains a listing of all the functions supported by ygopro, if you can't find something like what you want to do either their or in constant.lua than it is unlikely that ygopro supports it.
Users browsing this topic