Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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-scripts-888
Commits
aaad2787
Commit
aaad2787
authored
May 17, 2025
by
wind2009
Committed by
GitHub
May 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use aux.RegisterMergedDelayedEvent_ToSingleCard (#2935)
parent
57a9c0ab
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
c3685372.lua
c3685372.lua
+2
-2
c43502497.lua
c43502497.lua
+2
-2
c47710198.lua
c47710198.lua
+2
-1
c57288708.lua
c57288708.lua
+2
-1
c72705654.lua
c72705654.lua
+2
-2
No files found.
c3685372.lua
View file @
aaad2787
...
@@ -27,11 +27,12 @@ function s.initial_effect(c)
...
@@ -27,11 +27,12 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_SPSUMMON_SUCCESS
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_CUSTOM
+
id
)
e3
:
SetCode
(
custom_code
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
id
+
2
*
o
)
e3
:
SetCountLimit
(
1
,
id
+
2
*
o
)
...
@@ -39,7 +40,6 @@ function s.initial_effect(c)
...
@@ -39,7 +40,6 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
destg
)
e3
:
SetTarget
(
s
.
destg
)
e3
:
SetOperation
(
s
.
desop
)
e3
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_SPSUMMON_SUCCESS
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x83
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x83
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
c43502497.lua
View file @
aaad2787
...
@@ -3,12 +3,12 @@ local s,id,o=GetID()
...
@@ -3,12 +3,12 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--to extra
--to extra
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_DESTROYED
)
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_DESTROYED
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_CUSTOM
+
id
)
e1
:
SetCode
(
custom_code
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
...
...
c47710198.lua
View file @
aaad2787
...
@@ -17,13 +17,14 @@ function c47710198.initial_effect(c)
...
@@ -17,13 +17,14 @@ function c47710198.initial_effect(c)
e1
:
SetOperation
(
c47710198
.
drop
)
e1
:
SetOperation
(
c47710198
.
drop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--remove monster
--remove monster
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
47710198
,
EVENT_SPSUMMON_SUCCESS
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
47710198
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
47710198
,
1
))
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DAMAGE
)
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
custom_code
)
e2
:
SetCountLimit
(
1
,
47710199
)
e2
:
SetCountLimit
(
1
,
47710199
)
e2
:
SetTarget
(
c47710198
.
remtg1
)
e2
:
SetTarget
(
c47710198
.
remtg1
)
e2
:
SetOperation
(
c47710198
.
remop1
)
e2
:
SetOperation
(
c47710198
.
remop1
)
...
...
c57288708.lua
View file @
aaad2787
--星遺物-『星杯』
--星遺物-『星杯』
function
c57288708
.
initial_effect
(
c
)
function
c57288708
.
initial_effect
(
c
)
--send to grave
--send to grave
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
57288708
,
EVENT_SPSUMMON_SUCCESS
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
57288708
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
57288708
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
custom_code
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c57288708
.
tgcon
)
e1
:
SetCondition
(
c57288708
.
tgcon
)
...
...
c72705654.lua
View file @
aaad2787
...
@@ -26,10 +26,11 @@ function s.initial_effect(c)
...
@@ -26,10 +26,11 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop2
)
e2
:
SetOperation
(
s
.
spop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
--
local
custom_code
=
aux
.
RegisterMergedDelayedEvent_ToSingleCard
(
c
,
id
,
EVENT_SPSUMMON_SUCCESS
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_CUSTOM
+
id
)
e3
:
SetCode
(
custom_code
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e3
:
SetRange
(
LOCATION_GRAVE
+
LOCATION_HAND
)
e3
:
SetRange
(
LOCATION_GRAVE
+
LOCATION_HAND
)
e3
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e3
:
SetCountLimit
(
1
,
id
+
o
*
2
)
...
@@ -38,7 +39,6 @@ function s.initial_effect(c)
...
@@ -38,7 +39,6 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
mattg
)
e3
:
SetTarget
(
s
.
mattg
)
e3
:
SetOperation
(
s
.
matop
)
e3
:
SetOperation
(
s
.
matop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_SPSUMMON_SUCCESS
)
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_DRAW
)
...
...
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