游戏王残局简化版

Check-in [738c457e01]
Login

Check-in [738c457e01]

Overview
Comment:0
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 738c457e0121769b23d8c1722237fdc0d4a7f809e52a8b8361e69c3e2b3ecb53
User & Date: 顽雨沉风 on 2024-07-17 22:39:43
Other Links: manifest | tags
Context
2024-07-17
22:58
0 check-in: 07dff49316 user: 顽雨沉风 tags: trunk
22:39
0 check-in: 738c457e01 user: 顽雨沉风 tags: trunk
22:18
0 check-in: ad5fabcb17 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [8451b43d69] to [9566632690].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 string = string
local table = table
local Debug = Debug
local Effect = Effect
local Duel = Duel
local Card = Card
local d = {}
local f = {}
d["排_效果卡类型"] = {
  TYPE_SPELL,
  TYPE_TRAP,
  TYPE_EFFECT,
  }
d["排_非效果灵摆怪兽"] = {
  28363749,
  19474136,
  17390179,
  83980492,
  }
d["数_所有区域"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
do
  local k1
  --~ 这一局所适用规则的对
  k1 = {
    [3] = "大师规则三(2014) ",
    [4] = "新大师规则(2017) ",
    [5] = "大师规则(2020) ",
    }
  f["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
  --~ 这一局的模式
  --~ 规则参数
  function _G.Debug.ReloadFieldBegin(o1, o2)
    d["数_假洗卡"] = o1 & DUEL_PSEUDO_SHUFFLE
    d["数_战斗阶段"] = o1 & DUEL_ATTACK_FIRST_TURN
    d["数_人工智能"] = o1 & DUEL_SIMPLE_AI
    if o2 then
      d["字_这一局的规则"] = k1[o2]
    else
      d["字_这一局的规则"] = k1[5]
      end

    f["Debug.ReloadFieldBegin"](o1, o2)
    end
  end
f["不被连锁"] = function()
  Duel.SetChainLimit(aux.FALSE)
  return true
  end
f["是否有效果卡"] = function(card)
  for i = 1, #d["排_效果卡类型"] do
    if Card.IsType(card, d["排_效果卡类型"][i]) then
      return true
      end
    end
  if Card.IsType(card, TYPE_PENDULUM) then
    for i = 1, #d["排_非效果灵摆怪兽"] do
      if Card.IsCode(card, d["排_非效果灵摆怪兽"][i]) then
        return false
      else
        end
      end
    return true
    end
  end








|




|















|
|









>








|
|




|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
64
local string = string
local table = table
local Debug = Debug
local Effect = Effect
local Duel = Duel
local Card = Card
local d = {}
local f = {}
d["排_效果卡类型"] = {
  TYPE_SPELL,
  TYPE_TRAP,
  TYPE_EFFECT,
  }
d["排_非效果灵摆怪兽片编号"] = {
  28363749,
  19474136,
  17390179,
  83980492,
  }
d["数_所有区域"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
do
  local k1
  --~ 这一局所适用规则的对
  k1 = {
    [3] = "大师规则三(2014) ",
    [4] = "新大师规则(2017) ",
    [5] = "大师规则(2020) ",
    }
  f["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
  --~ 数_这一局的模式
  --~ 数_规则参数
  function _G.Debug.ReloadFieldBegin(o1, o2)
    d["数_假洗卡"] = o1 & DUEL_PSEUDO_SHUFFLE
    d["数_战斗阶段"] = o1 & DUEL_ATTACK_FIRST_TURN
    d["数_人工智能"] = o1 & DUEL_SIMPLE_AI
    if o2 then
      d["字_这一局的规则"] = k1[o2]
    else
      d["字_这一局的规则"] = k1[5]
      end
    local k1
    f["Debug.ReloadFieldBegin"](o1, o2)
    end
  end
f["不被连锁"] = function()
  Duel.SetChainLimit(aux.FALSE)
  return true
  end
f["是否有效果卡"] = function(card)
  for i = 1, #d["排_效果卡类型"] do
    if Card.IsType(card, d["排_效果卡类型"][i]) then
      return true
      end
    end
  if Card.IsType(card, TYPE_PENDULUM) then
    for i = 1, #d["排_非效果灵摆怪兽片编号"] do
      if Card.IsCode(card, d["排_非效果灵摆怪兽片编号"][i]) then
        return false
      else
        end
      end
    return true
    end
  end