游戏王残局简化版

Check-in [1301c8be40]
Login

Check-in [1301c8be40]

Overview
Comment:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1301c8be40284da95de026bbbddd63beeb1b34d68c959df7529fb464baca1999
User & Date: 顽雨沉风 on 2024-02-13 14:43:55
Other Links: manifest | tags
Context
2024-02-13
14:53
check-in: d1652d7fa4 user: 顽雨沉风 tags: trunk
14:43
check-in: 1301c8be40 user: 顽雨沉风 tags: trunk
14:33
check-in: 7c676b0c70 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [7ef62fe443] to [aea28404f7].

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43







44
45
46
47
48
49
50

51
52
53
54
55
56
57
local cache_4
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9
local _
fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
Debug.ReloadFieldBegin = function(u1, u2)
  str["不洗牌"] = u1 & DUEL_PSEUDO_SHUFFLE
  str["无BP"] = u1 & DUEL_ATTACK_FIRST_TURN
  str["无AI"] = u1 & DUEL_SIMPLE_AI
  str["规则表"] = {
    [3] = "大师3 ",
    [4] = "新大师 ",
    [5] = "大师2020 ",
  }







  if u2 then
    str["规则"] = str["规则表"][u2]
  else
    str["规则"] = str["规则表"][5]
  end
  fun["Debug.ReloadFieldBegin"](u1, u2)
end

function s["开局洗卡抽卡"](u1)
  local h1, h2
  s["开局洗卡抽卡之数"] = u1
  --~ 效果
  h1 = Effect.GlobalEffect()
  h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  h1:SetCode(EVENT_ADJUST)







|
|
|
<
<
|
|
|
|

>
>
>
>
>
>
>
|
|
|
|
|
|
|
>







27
28
29
30
31
32
33
34
35
36


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
local cache_4
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9
local _
do
  local h1
  --~ 则对


  h1 = {
  [3] = "大师3 "
  , [4] = "新大师 "
  , [5] = "大师2020 "
  }
  s["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
  --~ 模
  --~ 则数
  function _G.Debug.ReloadFieldBegin(u1, u2)
    s["洗牌"] = u1 & DUEL_PSEUDO_SHUFFLE
    s["战阶"] = u1 & DUEL_ATTACK_FIRST_TURN
    s["机智"] = u1 & DUEL_SIMPLE_AI
    if u2 then
      s["则"] = h1[u2]
    else
      s["则"] = h1[5]
      end
    s["Debug.ReloadFieldBegin"](u1, u2)
    end
  end
function s["开局洗卡抽卡"](u1)
  local h1, h2
  s["开局洗卡抽卡之数"] = u1
  --~ 效果
  h1 = Effect.GlobalEffect()
  h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  h1:SetCode(EVENT_ADJUST)
153
154
155
156
157
158
159

160

161
162
163
164

165
166
167
168
169
170
171
local cache_4
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9
local _

fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd

Debug.ReloadFieldEnd = function(u1)
  fun["Debug.ReloadFieldEnd"]()
  if u1 then
    s["开局洗卡抽卡"](u1)

    end
  end
fun["二_印卡"] = function(u1, u2, u3)
  u3 = u3 or u2
  Debug.ShowHint(
    "点击对方额外卡组可以进行印卡。\n手卡只能印 "
      .. u2







>
|
>
|
|
|
|
>







159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
local cache_4
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9
local _
do
  s["Debug.ReloadFieldEnd"] = _G.Debug.ReloadFieldEnd
  --~ 开局洗卡抽卡之数
  function _G.Debug.ReloadFieldEnd(u1)
    s["Debug.ReloadFieldEnd"]()
    if u1 then
      s["开局洗卡抽卡"](u1)
      end
    end
  end
fun["二_印卡"] = function(u1, u2, u3)
  u3 = u3 or u2
  Debug.ShowHint(
    "点击对方额外卡组可以进行印卡。\n手卡只能印 "
      .. u2
230
231
232
233
234
235
236

237


238
239
240
241
242
243
244
245
246
247
248

249
250
251
252
253
254
    h1 = h1 .. "禁" .. s["禁格之数"] .. "格 "
    end
  if s["开局洗卡抽卡之数"] then
    h1 = h1 .. "抽" .. s["开局洗卡抽卡之数"] .. "卡 "
    end
  Debug.ShowHint(h1)
  end

fun["aux.BeginPuzzle"] = aux.BeginPuzzle


aux.BeginPuzzle = function(u1, u2)
  fun["aux.BeginPuzzle"]()
  if u1 then
    s["开局选卡入手"](u1)
  end
  if u2 then
    s["禁格"](u2)
  end
  fun["二_开局说明"]()
  s["通关之邀"]()
end

--兼容层-------------------------------
fun["印卡"] = fun["二_印卡"]
fun["开局添加手卡"] = s["开局选卡入手"]
fun["是否效果卡"] = fun["一_是否效果卡"]
fun["禁格"] = s["禁格"]
fun["随机抽卡"] = s["开局洗卡抽卡"]







>
|
>
>
|
|
|
|
|
|
|
|
|
|
|
>






239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
    h1 = h1 .. "禁" .. s["禁格之数"] .. "格 "
    end
  if s["开局洗卡抽卡之数"] then
    h1 = h1 .. "抽" .. s["开局洗卡抽卡之数"] .. "卡 "
    end
  Debug.ShowHint(h1)
  end
do
  s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
  --~ 开局选卡入手之数
  --~ 禁格之数
  function _G.aux.BeginPuzzle(u1, u2)
    s["aux.BeginPuzzle"]()
    if u1 then
      s["开局选卡入手"](u1)
      end
    if u2 then
      s["禁格"](u2)
      end
    fun["二_开局说明"]()
    s["通关之邀"]()
    end
  end
--兼容层-------------------------------
fun["印卡"] = fun["二_印卡"]
fun["开局添加手卡"] = s["开局选卡入手"]
fun["是否效果卡"] = fun["一_是否效果卡"]
fun["禁格"] = s["禁格"]
fun["随机抽卡"] = s["开局洗卡抽卡"]