1- -- Rule of the day: Terradivide V3
2- -- At the start of the duel, each player places 1 Field Spell from their deck on the field
3- -- The non turn player has their field face-down until the End Phase
4- -- Field spells cannot leave the field by card effects (only by activating another field spell)
1+ -- Rule of the Day: Forbidden Acquisition
2+ -- At the start of each Draw Phase, each player is shown 3 random banned cards from the Worlds Forbidden/Limited list.
3+ -- They select one and apply the following, depending on what it is:
4+ -- Spell: Add it to their hand
5+ -- Trap: either add it to their hand OR set it, instead. It can be activated this turn.
6+ -- Monster: Add it to their hand (or to their Extra Deck, if it cannot be placed in the hand)
57local s ,id = GetID ()
68function s .initial_effect (c )
7- aux .GlobalCheck (s ,function ()
8- -- place field
9- local e1 = Effect .CreateEffect (c )
10- e1 :SetProperty (EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_DISABLE )
11- e1 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
12- e1 :SetCode (EVENT_STARTUP )
13- e1 :SetTarget (s .target )
14- e1 :SetOperation (s .activate )
15- Duel .RegisterEffect (e1 ,0 )
16- local e2 = e1 :Clone ()
17- Duel .RegisterEffect (e2 ,1 )
18- -- Cannot leave the field or be affected
19- local e3 = Effect .CreateEffect (c )
20- e3 :SetProperty (EFFECT_FLAG_IGNORE_IMMUNE + EFFECT_FLAG_SINGLE_RANGE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_SET_AVAILABLE )
21- e3 :SetType (EFFECT_TYPE_FIELD )
22- e3 :SetCode (EFFECT_INDESTRUCTABLE )
23- e3 :SetTargetRange (LOCATION_FZONE ,LOCATION_FZONE )
24- e3 :SetValue (1 )
25- Duel .RegisterEffect (e3 ,0 )
26- local e4 = e3 :Clone ()
27- e4 :SetCode (EFFECT_CANNOT_REMOVE )
28- Duel .RegisterEffect (e4 ,0 )
29- local e5 = e3 :Clone ()
30- e5 :SetCode (EFFECT_CANNOT_TO_GRAVE )
31- Duel .RegisterEffect (e5 ,0 )
32- local e6 = e3 :Clone ()
33- e6 :SetCode (EFFECT_CANNOT_TO_HAND )
34- Duel .RegisterEffect (e6 ,0 )
35- local e7 = e3 :Clone ()
36- e7 :SetCode (EFFECT_CANNOT_TO_DECK )
37- Duel .RegisterEffect (e7 ,0 )
38- local e8 = e3 :Clone ()
39- e8 :SetCode (EFFECT_CANNOT_BE_XYZ_MATERIAL )
40- Duel .RegisterEffect (e8 ,0 )
41- local ea = e3 :Clone ()
42- Duel .RegisterEffect (ea ,1 )
43- local eb = e4 :Clone ()
44- Duel .RegisterEffect (eb ,1 )
45- local ec = e5 :Clone ()
46- Duel .RegisterEffect (ec ,1 )
47- local ed = e6 :Clone ()
48- Duel .RegisterEffect (ed ,1 )
49- local ee = e7 :Clone ()
50- Duel .RegisterEffect (ee ,1 )
51- local ef = e8 :Clone ()
52- Duel .RegisterEffect (ef ,1 )
53- end )
9+ local e1 = Effect .CreateEffect (c )
10+ e1 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
11+ e1 :SetCode (EVENT_PREDRAW )
12+ e1 :SetCountLimit (1 )
13+ e1 :SetOperation (s .operation )
14+ Duel .RegisterEffect (e1 ,0 )
15+ local e2 = e1 :Clone ()
16+ Duel .RegisterEffect (e2 ,1 )
5417end
55- function s .filter (c ,tp )
56- return c :IsType (TYPE_FIELD ) and (c :IsAbleToHand () or c :GetActivateEffect ():IsActivatable (tp ,true ,true ))
57- end
58- function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
59- if chk == 0 then return Duel .IsExistingMatchingCard (s .filter ,tp ,LOCATION_DECK ,0 ,1 ,nil ,tp ) end
60- end
61- function s .activate (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
62- Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_TOFIELD )
63- local tc = Duel .SelectMatchingCard (tp ,s .filter ,tp ,LOCATION_DECK ,0 ,1 ,1 ,nil ,tp ):GetFirst ()
64- if Duel .IsTurnPlayer (tp ) then
65- Duel .MoveToField (tc ,tp ,tp ,LOCATION_FZONE ,POS_FACEUP ,true )
66- else
67- Duel .MoveToField (tc ,tp ,tp ,LOCATION_FZONE ,POS_FACEDOWN ,true )
68- local e1 = Effect .CreateEffect (e :GetHandler ())
69- e1 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
70- e1 :SetCode (EVENT_PHASE + PHASE_END )
71- e1 :SetCountLimit (1 )
72- e1 :SetReset (RESET_PHASE + PHASE_END )
73- e1 :SetCondition (s .flipcon )
74- e1 :SetOperation (s .flipop )
75- Duel .RegisterEffect (e1 ,tp )
18+
19+ local banned_cards = {
20+ 21044178 , -- Abyss Dweller
21+ 62320425 , -- Agido the Ancient Sentry
22+ 91869203 , -- Amazoness Archer
23+ 4280258 , -- Apollousa, Bow of the Goddess
24+ 4280259 , -- Apollousa, Bow of the Goddess
25+ 43262273 , -- Appointer of the Red Lotus
26+ 20292186 , -- Artifact Scythe
27+ 440556 , -- Bahamut Shark
28+ 84815190 , -- Baronne de Fleur
29+ 73356503 , -- Barrier Statue of the Stormwinds
30+ 27552504 , -- Beatrice, Lady of the Eternal
31+ 9929398 , -- Blackwing - Gofu the Vague Shadow
32+ 94689206 , -- Block Dragon
33+ 27548199 , -- Borreload Savage Dragon
34+ 1041278 , -- Branded Expulsion
35+ 69243953 , -- Butterfly Dagger - Elma
36+ 11384280 , -- Cannon Soldier
37+ 14702066 , -- Cannon Soldier MK-2
38+ 57953380 , -- Card of Safe Return
39+ 95727991 , -- Catapult Turtle
40+ 3040496 , -- Chaos Ruler, the Chaotic Magical Dragon
41+ 60682203 , -- Cold Wave
42+ 17375316 , -- Confiscation
43+ 50588353 , -- Crystron Halqifibrax
44+ 98095162 , -- Curious, the Lightsworn Dominion
45+ 69015963 , -- Cyber-Stein
46+ 15341821 , -- Dandylion
47+ 44763025 , -- Delinquent Duo
48+ 23557835 , -- Dimension Fusion
49+ 31423101 , -- Divine Sword - Phoenix Blade
50+ 8903700 , -- Djinn Releaser of Rituals
51+ 51858306 , -- Eclipse Wyvern
52+ 17412721 , -- Elder Entity Norden
53+ 55623480 , -- Fairy Tail - Snow
54+ 78706415 , -- Fiber Jar
55+ 93369354 , -- Fishborg Blaster
56+ 42703248 , -- Giant Trunade
57+ 55204071 , -- Gimmick Puppet Nightmare
58+ 79571449 , -- Graceful Charity
59+ 75732622 , -- Grinder Golem
60+ 59537380 , -- Guardragon Agarpain
61+ 86148577 , -- Guardragon Elpy
62+ 19613556 , -- Heavy Storm
63+ 24094258 , -- Heavymetalfoes Electrumite
64+ 62242678 , -- Hot Red Dragon Archfiend King Calamity
65+ 61740673 , -- Imperial Order
66+ 59934749 , -- Isolde, Two Tales of the Noble Knights
67+ 41855169 , -- Jowgen the Spiritualist
68+ 35059553 , -- Kaiser Colosseum
69+ 48626373 , -- Kashtira Arise-Heart
70+ 32909498 , -- Kashtira Fenrir
71+ 25926710 , -- Kelbek the Ancient Vanguard
72+ 11398059 , -- King of the Feral Imps
73+ 39064822 , -- Knightmare Goblin
74+ 65330383 , -- Knightmare Gryphon
75+ 3679218 , -- Knightmare Mermaid
76+ 28566710 , -- Last Turn
77+ 85602018 , -- Last Will
78+ 34086406 , -- Lavalval Chain
79+ 57421866 , -- Level Eater
80+ 17178486 , -- Life Equalizer
81+ 30342076 , -- Link Decoder
82+ 85243784 , -- Linkross
83+ 4423206 , -- M-X-Saber Invoker
84+ 32723153 , -- Magical Explosion
85+ 34206604 , -- Magical Scientist
86+ 34906152 , -- Mass Driver
87+ 23434538 , -- Maxx "C"
88+ 44097050 , -- Mecha Phantom Beast Auroradon
89+ 46411259 , -- Metamorphosis
90+ 96782886 , -- Mind Master
91+ 41482598 , -- Mirage of Nightmare
92+ 71818935 , -- Moon of the Closed Heaven
93+ 76375976 , -- Mystic Mine
94+ 54719828 , -- Number 16: Shock Master
95+ 10389142 , -- Number 42: Galaxy Tomahawk
96+ 35772782 , -- Number 67: Pair-a-Dice Smasher
97+ 63504681 , -- Number 86: Heroic Champion - Rhongomyniad
98+ 95474755 , -- Number 89: Diablosis the Mind Hacker
99+ 58820923 , -- Number 95: Galaxy-Eyes Dark Matter Dragon
100+ 52653092 , -- Number S0: Utopic ZEXAL
101+ 89023486 , -- Original Sinful Spoils - Snake-Eye
102+ 34945480 , -- Outer Entity Azathot
103+ 74191942 , -- Painful Choice
104+ 23558733 , -- Phoenixian Cluster Amaryllis
105+ 55144522 , -- Pot of Greed
106+ 25725326 , -- Prank-Kids Meow-Meow-Mu
107+ 70369116 , -- Predaplant Verte Anaconda
108+ 70828912 , -- Premature Burial
109+ 23002292 , -- Red Reboot
110+ 27174286 , -- Return from the Different Dimension
111+ 1357146 , -- Ronintoadin
112+ 93016201 , -- Royal Oppression
113+ 91258852 , -- SPYRAL Master Plan
114+ 57585212 , -- Self-Destruct Button
115+ 72330894 , -- Simorgh, Bird of Sovereignty
116+ 3280747 , -- Sixth Sense
117+ 63789924 , -- Smoke Grenade of the Thief
118+ 54447022 , -- Soul Charge
119+ 59859086 , -- Splash Mage
120+ 27381364 , -- Spright Elf
121+ 20663556 , -- Substitoad
122+ 23516703 , -- Summon Limit
123+ 33918636 , -- Superheavy Samurai Scarecrow
124+ 77679716 , -- Superheavy Samurai Soulbreaker Armor
125+ 43387895 , -- Supreme King Dragon Starving Venom
126+ 92731385 , -- Tearlaments Kitkallos
127+ 63101919 , -- Tempest Magician
128+ 42829885 , -- The Forceful Sentry
129+ 88071625 , -- The Tyrant Neptune
130+ 90809975 , -- Toadally Awesome
131+ 79875176 , -- Toon Cannon Soldier
132+ 22593417 , -- Topologic Gumblar Dragon
133+ 64697231 , -- Trap Dustshoot
134+ 88581108 , -- True King of All Calamities
135+ 80604091 , -- Ultimate Offering
136+ 80604092 , -- Ultimate Offering
137+ 83152482 , -- Union Carrier
138+ 5851097 , -- Vanity's Emptiness
139+ 44910027 , -- Victory Dragon
140+ 81122844 , -- Wind-Up Carrier Zenmaity
141+ 16923472 , -- Wind-up Hunter
142+ 85115440 , -- Zoodiac Broadbull
143+ 11110587 , -- That Grass Looks Greener
144+ 17375316 , -- Confiscation
145+ 19613556 , -- Heavy Storm
146+ 23557835 , -- Dimension Fusion
147+ 34906152 , -- Mass Driver
148+ 35059553 , -- Kaiser Colloseum
149+ 41482598 , -- Mirage of Nightmare
150+ 42703248 , -- Giant Trunade
151+ 42829885 , -- The Forceful Sentry
152+ 44763025 , -- Deliquent Duo
153+ 45986603 , -- Snatch Steal
154+ 31423101 , -- Divine Sword - Phoenix Blade
155+ 46411259 , -- Metamorphosis
156+ 55144522 , -- Pot of greed
157+ 57953380 , -- Card of Safe Return
158+ 60682203 , -- Cold Wave
159+ 67616300 , -- Chicken Game
160+ 69243953 , -- Butterfly Dagger - Elma
161+ 70828912 , -- Premature Burial
162+ 74191942 , -- Painful Choice
163+ 79571449 , -- Graceful Charity
164+ 85602018 , -- Last Will
165+ 54447022 , -- Soul Charge
166+ 63789924 , -- Smoke Grenade of the Thief
167+ 76375976 , -- Mystic Mine
168+ 46060017 , -- Zoodiac Barrage
169+ 59750328 , -- Card of Demise
170+ 24224830 , -- Called by the Grave
171+ 18144506 , -- Harpie's Feather Duster
172+ 93946239 , -- Into the Void
173+ 24940422 , -- Sekka’s Light
174+ 02295440 , -- One for One
175+ 14733538 , -- Draco Face-off
176+ 15854426 , -- Divine Wind of the Mist Valley
177+ 23701465 , -- Primal Seed
178+ 27970830 , -- Gateway of the Six
179+ 32807846 , -- Reinforcement of the Army
180+ 33782437 , -- One Day of Peace
181+ 52340444 , -- Sky Striker Mecha - Hornet Drones
182+ 24010609 , -- Sky Striker Mecha Modules - Multirole
183+ 58577036 , -- Reasoning
184+ 66957584 , -- Infernity Launcher
185+ 13035077 , -- Dragonic Diagram
186+ 71344451 , -- Slash Draw
187+ 75500286 , -- Gold Sarcophagus
188+ 70368879 , -- Upstart Goblin
189+ 72892473 , -- Card Destruction
190+ 73468603 , -- Set Rotation
191+ 73628505 , -- Terraforming
192+ 81439173 , -- Foolish Burial
193+ 83764718 , -- Monster Reborn
194+ 83764719 , -- Monster Reborn
195+ 91623717 , -- Chain Strike
196+ 93600443 , -- Mask Change 2
197+ 95308449 , -- Final Countdown
198+ 71650854 , -- Magical Mid-Breaker Field
199+ 1845204 , -- Instant Fusion
200+ 37520316 , -- Mind Control
201+ 01984618 , -- Nadir Servant
202+ 63166095 , -- Sky Striker Mobilize - Engage!
203+ 65681983 , -- Crossout Designator
204+ 43040603 , -- Monster Gate
205+ 52947044 , -- Fusion Destiny
206+ 36637374 , -- Branded Opening
207+ 77103950 , -- Primeval Planet Perlereino
208+ 15443125 , -- Spright Starter
209+ 28126717 , -- Floowandereeze and the Magnificent Map
210+ 46448938 , -- Spellbook of Judgment
211+ 04031928 , -- Change of Heart
212+ 71832012 , -- Prime Planet Paraisos
213+ 44362883 , -- Branded Fusion
214+ 48130397 , -- Super Polymerization
215+ 31434645 , -- Cursed Eldland
216+ 67723438 , -- Emergency Teleport
217+ 84211599 , -- Pot of Prosperity
218+ 57103969 , -- Fire Formation - Tenki
219+ 35261759 , -- Pot of Desires
220+ 14532163 , -- Lightning Storm
221+ 03285551 , -- Rite of Aramesir
222+ 35726888 , -- Foolish Burial Goods
223+ 12580477 , -- Raigeki
224+ 35371948 , -- Trickstar Light Stage
225+ }
226+ function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
227+ local cards = {}
228+ for i = 1 ,3 do
229+ local num = Duel .GetRandomNumber (1 ,# banned_cards )
230+ table.insert (cards ,banned_cards [num ])
231+ end
232+ local code = Duel .SelectCardsFromCodes (tp ,1 ,1 ,false ,false ,cards )
233+ local card = Duel .CreateToken (tp ,code )
234+ Duel .Hint (HINT_CARD ,1 - ep ,card :GetCode ())
235+ if card :IsSpell () or card :IsMonster () then
236+ Duel .SendtoHand (card ,tp ,REASON_RULE )
237+ elseif card :IsTrap () then
238+ if Duel .GetLocationCount (tp ,LOCATION_SZONE )> 0 then
239+ local f2 = Duel .SelectOption (tp ,1153 ,573 ) -- Add to hand/Set it to the field
240+ if f2 == 0 then
241+ Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_SET )
242+ Duel .MoveToField (card ,tp ,tp ,LOCATION_SZONE ,POS_FACEDOWN ,true )
243+ else
244+ Duel .SendtoHand (card ,tp ,REASON_RULE )
245+ end
246+ else
247+ Duel .SendtoHand (card ,tp ,REASON_RULE )
248+ end
76249 end
77250end
78- function s .flipcon (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
79- return Duel .IsExistingMatchingCard (Card .IsFacedown ,tp ,LOCATION_FZONE ,0 ,1 ,nil )
80- end
81- function s .flipop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
82- local g = Duel .GetMatchingGroup (Card .IsFacedown ,tp ,LOCATION_FZONE ,0 ,nil )
83- Duel .ChangePosition (g ,POS_FACEUP )
84- end
0 commit comments