Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
d51d0cb8
Commit
d51d0cb8
authored
Oct 04, 2019
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event update
parent
299af77c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
5 deletions
+56
-5
.gitignore
.gitignore
+0
-1
2pick/pick.lua
2pick/pick.lua
+4
-4
expansions/c30531525.lua
expansions/c30531525.lua
+26
-0
expansions/c89739383.lua
expansions/c89739383.lua
+26
-0
No files found.
.gitignore
View file @
d51d0cb8
# data files
# data files
/beta
/beta
/expansions
/specials
/specials
# build files
# build files
...
...
2pick/pick.lua
View file @
d51d0cb8
...
@@ -6,11 +6,11 @@ local extra={[0]={},[1]={}}
...
@@ -6,11 +6,11 @@ local extra={[0]={},[1]={}}
local
main_nonadv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_nonadv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_monster
=
{[
0
]
=
{},[
1
]
=
{}}
main_monster
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_spell
=
{[
0
]
=
{},[
1
]
=
{}}
main_spell
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_trap
=
{[
0
]
=
{},[
1
]
=
{}}
main_trap
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_plain
=
{[
0
]
=
{},[
1
]
=
{}}
main_plain
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_adv
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_new
=
{[
0
]
=
{},[
1
]
=
{}}
local
main_new
=
{[
0
]
=
{},[
1
]
=
{}}
...
...
expansions/c30531525.lua
0 → 100644
View file @
d51d0cb8
--Card A
function
c30531525
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c30531525
.
target
)
e1
:
SetOperation
(
c30531525
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c30531525
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c30531525
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
tc
=
g
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
if
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
~=
0
then
local
tg
=
Group
.
CreateGroup
()
local
mm_code
=
main_plain
[
0
][
math.random
(
#
main_plain
[
0
])]
tg
:
AddCard
(
Duel
.
CreateToken
(
tp
,
mm_code
))
local
mm2_code
=
main_adv
[
0
][
math.random
(
#
main_adv
[
0
])]
tg
:
AddCard
(
Duel
.
CreateToken
(
tp
,
mm2_code
))
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/c89739383.lua
0 → 100644
View file @
d51d0cb8
--Card B
function
c89739383
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c89739383
.
target
)
e1
:
SetOperation
(
c89739383
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c89739383
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c89739383
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
tc
=
g
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
if
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
~=
0
then
local
tg
=
Group
.
CreateGroup
()
local
mm_code
=
main_spell
[
0
][
math.random
(
#
main_spell
[
0
])]
tg
:
AddCard
(
Duel
.
CreateToken
(
tp
,
mm_code
))
local
mm2_code
=
main_trap
[
0
][
math.random
(
#
main_trap
[
0
])]
tg
:
AddCard
(
Duel
.
CreateToken
(
tp
,
mm2_code
))
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment