Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
95e77491
Commit
95e77491
authored
Sep 25, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
931c05a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
c18486927.lua
c18486927.lua
+1
-8
constant.lua
constant.lua
+14
-0
No files found.
c18486927.lua
View file @
95e77491
--古代の歯車機械
--Name change is temporary, needs a proper announce function
function
c18486927
.
initial_effect
(
c
)
--declare card
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -62,13 +61,7 @@ function c18486927.actcon(e)
end
function
c18486927
.
nametg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
--Gadget Order: Green, Red, Yellow, Gold, Silver, Soldier, Hauler, Arms, Driver
local
nt
=
{
aux
.
Stringid
(
18486927
,
1
),
aux
.
Stringid
(
18486927
,
2
),
aux
.
Stringid
(
18486927
,
3
),
aux
.
Stringid
(
18486927
,
4
),
aux
.
Stringid
(
18486927
,
5
),
aux
.
Stringid
(
18486927
,
6
),
aux
.
Stringid
(
18486927
,
7
),
aux
.
Stringid
(
18486927
,
8
),
aux
.
Stringid
(
18486927
,
9
)}
local
ct
=
{
41172955
,
86445415
,
13839120
,
55010259
,
29021114
,
86281779
,
28002611
,
47985614
,
54497620
}
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
564
)
local
opt
=
Duel
.
SelectOption
(
tp
,
nt
[
1
],
nt
[
2
],
nt
[
3
],
nt
[
4
],
nt
[
5
],
nt
[
6
],
nt
[
7
],
nt
[
8
],
nt
[
9
])
+
1
local
ac
=
ct
[
opt
]
local
ac
=
Duel
.
AnnounceCardFilter
(
tp
,
0x51
,
OPCODE_ISSETCARD
,
18486927
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
end
...
...
constant.lua
View file @
95e77491
...
...
@@ -611,6 +611,20 @@ CHINT_RACE =3
CHINT_ATTRIBUTE
=
4
CHINT_NUMBER
=
5
CHINT_DESC
=
6
--Opcode
OPCODE_ADD
=
0x40000000
OPCODE_SUB
=
0x40000001
OPCODE_MUL
=
0x40000002
OPCODE_DIV
=
0x40000003
OPCODE_AND
=
0x40000004
OPCODE_OR
=
0x40000005
OPCODE_NEG
=
0x40000006
OPCODE_NOT
=
0x40000007
OPCODE_ISCODE
=
0x40000100
OPCODE_ISSETCARD
=
0x40000101
OPCODE_ISTYPE
=
0x40000102
OPCODE_ISRACE
=
0x40000103
OPCODE_ISATTRIBUTE
=
0x40000104
--Hint Message --提示消息,显示在窗口的上面
HINTMSG_RELEASE
=
500
--请选择要解放的卡
HINTMSG_DISCARD
=
501
--请选择要丢弃的手牌
...
...
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