Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
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
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
mercury233
DataEditorX
Commits
f47942a1
Commit
f47942a1
authored
Aug 15, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d9e6af23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
DataEditorX/data/_functions.txt
DataEditorX/data/_functions.txt
+10
-10
No files found.
DataEditorX/data/_functions.txt
View file @
f47942a1
...
...
@@ -664,7 +664,7 @@ RESET_CARD 重置卡片的效果 reset_code为效果owner的卡号
检查是否可以以tuner作为调整,场上的卡[或mg]为同调素材对c进行同调召唤手续
如果tuner是nil,此函数与Card.IsSpecialSummonable作用相同
●bool Card.IsXyzSummonable(Card c, Group mg|nil[,
min=0,
max=0])
●bool Card.IsXyzSummonable(Card c, Group mg|nil[,
int min=0, int
max=0])
检查是否可以在场上的卡[或mg][中选出 min-max 个XYZ素材]对c进行XYZ召唤手续
如果mg为nil,此函数与 c:IsSpecialSummonable(SUMMON_TYPE_XYZ)作用相同
...
...
@@ -672,7 +672,7 @@ RESET_CARD 重置卡片的效果 reset_code为效果owner的卡号
检查c是否可以进行通常召唤(不包含通常召唤的set),ignore_count=true则不检查召唤次数限制
e~=nil则检查c是否可以以效果e进行通常召唤,min表示至少需要的祭品数(用于区分妥协召唤与上级召唤),zone 表示必须要召唤到的区域
●bool Card.IsMSetable(Card, bool ignore_count, Effect e|nil[, int min=0, int zone=0x1f])
●bool Card.IsMSetable(Card
c
, bool ignore_count, Effect e|nil[, int min=0, int zone=0x1f])
检查c是否可进行通常召唤的set,ignore_count=true则不检查召唤次数限制
e~=nil则检查c是否可以以效果e进行通常召唤的set,min表示至少需要的祭品数(用于区分妥协召唤set与上级召唤set),zone 表示必须要放置到的区域
...
...
@@ -736,7 +736,7 @@ e~=nil则检查c是否可以以效果e进行通常召唤的set,min表示至少
●bool Card.IsReleasableByEffect(Card c)
检查c是否可以被效果解放
●bool Card.IsDiscardable(Card[, int reason=REASON_COST])
●bool Card.IsDiscardable(Card
c
[, int reason=REASON_COST])
检查c是否可以以reason原因丢弃
注:此函数仅用于检测,
以REASON_DISCARD作为原因把一张手卡送墓并不会导致那张卡不能丢弃
...
...
@@ -986,7 +986,7 @@ CARDDATA_LINK_MARKER 12
●bool Card.IsOriginalCodeRule(Card c,int code)
检查c是否在规则上当做code使用
●bool Card.IsLinkSummonable(Card c, Group mg|nil[,
min=0,
max=0])
●bool Card.IsLinkSummonable(Card c, Group mg|nil[,
int min=0, int
max=0])
检查是否可以在场上的卡[或mg][中选出 min-max 个连接素材]对c进行连接召唤手续
如果mg为nil,此函数与 c:IsSpecialSummonable(SUMMON_TYPE_LINK)作用相同
...
...
@@ -1358,7 +1358,7 @@ end
●Group Group.__bxor(Group|Card target1, Group|Card target2)
新建一个卡片组,将 target1 和 target2 中不同的卡(就是只存在于 target1 或者 target2 里的卡)全部添加到 这个卡片组里,最后返回这个卡片组,targe1,target2 本身不会有任何变化
●Group Group.SelectSubGroup(
g,tp,f,cancelable,min,max,
...)
●Group Group.SelectSubGroup(
Group g, int tp, function f, bool cancelable, int min, int max,
...)
让玩家从g里选择多张不同的卡,直到满足条件为止。
每次选卡,都会把已经选中的卡以f(sg,...)的形式传给f。
如果返回true,则表示选卡结束,此函数返回选好的Group。
...
...
@@ -1409,7 +1409,7 @@ cancelable如果为true,则玩家可以中途放弃,停止选卡。此时此
●int Duel.GetFlagEffectLabel(int player, int code)
返回玩家player的种类为code的标识效果的Label,没有此效果则返回nil
●int Duel.Destroy(Card|Group targets, int reason[
,
int dest = LOCATION_GRAVE])
●int Duel.Destroy(Card|Group targets, int reason[
,
int dest = LOCATION_GRAVE])
以reason原因破坏targets去dest,返回值是实际被破坏的数量
如果reason包含REASON_RULE,则破坏事件将不会检查卡片是否免疫效果,
不会触发代破效果并且无视“不能破坏”
...
...
@@ -1452,7 +1452,7 @@ Duel.ChangePosition, Duel.SpecialSummon, Duel.DiscardDeck
●void Duel.SynchroSummon(int player, Card c, Card tuner|nil[, Group mg|nil])
让玩家player以tuner作为调整,场上的卡[或mg]为素材,对c进行同调召唤手续
●void Duel.XyzSummon(int player, Card c, Group mg|nil[,
min=0,
max=0])
●void Duel.XyzSummon(int player, Card c, Group mg|nil[,
int min=0, int
max=0])
让玩家player用场上的卡[或mg][选min-max个素材]对c进行XYZ召唤手续
mg非空且min为0则直接把mg全部作为XYZ素材
...
...
@@ -2261,7 +2261,7 @@ ACTIVITY_CHAIN =7 --发动效果
●int Duel.GetMasterRule()
返回当前决斗规则(大师规则X)。
●int,int,.. Duel.ReadCard(int|Card target, int type, int type2, ..)
●int,int,.. Duel.ReadCard(int|Card target, int type, int type2, ..
.
)
返回卡片target(或是卡号为target的卡)的type的信息。
type可以是以下之一:
CARDDATA_CODE 1
...
...
@@ -2588,7 +2588,7 @@ code 为仪式怪兽卡号,素材的等级之和必须等于仪式怪兽的等
code1,code2 为仪式怪兽卡号,素材的等级之和必须等于仪式怪兽的等级
等价于:aux.AddRitualProcEqual2(c,aux.FilterBoolFunction(Card.IsCode,code1,code2)) ,并添加 fit_monster={code1,code2}
●void aux.EnablePendulumAttribute(Card c[, active_effect=true])
●void aux.EnablePendulumAttribute(Card c[,
bool
active_effect=true])
为灵摆怪兽c添加灵摆怪兽属性(灵摆召唤,灵摆卡的发动)
active_effect=false则不注册灵摆卡“卡的发动”的效果
...
...
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