Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load common script in single mode #2631

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salix5
Copy link
Collaborator

@salix5 salix5 commented Dec 8, 2024

載入單人模式腳本之前
先載入./single/common.lua

@purerosefallen
@mercury233
@Wind2009-Louse
@fallenstardust

@purerosefallen
Copy link
Collaborator

Why not do the same on card scripts

@yybbwc
Copy link

yybbwc commented Dec 18, 2024

Why not do the same on card scripts

这个功能不是给玩DIY卡的人用,而是给玩残局的人用。

这种残局里基本没有(可能有被K社改效果之前的卡)DIY卡,所以这类通用函数不能放在DIY卡卡片脚本中。

@yybbwc
Copy link

yybbwc commented Dec 18, 2024

如果有了这个功能,那么某些残局玩家就可以把在各个残局中添加的自定义函数汇集到一处,而不用在每个残局脚本中自带(例如印卡残局需要用到的印卡函数)。(一_一囧 一点点小方便)

如果没有这个功能,那么残局脚本就需要自带自定义函数。随之而来的好处是,各个残局脚本都是完备的,而不会因为缺少依赖函数而不能运行。(一_一囧 更好的稳定性)

在我的视角看来,大体是这样。

@yybbwc
Copy link

yybbwc commented Dec 18, 2024

Why not do the same on card scripts

我又想了一下,you are right。你的说法更有可行性……

不好意思,我基本不用DIY卡,之前没意识到……

我测了一下,可行,只是不能获取到游戏规则设置了,无大碍。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants