游戏王残局简化版

Check-in [b158c7a4ac]
Login

Check-in [b158c7a4ac]

Overview
Comment:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b158c7a4ac4b683a9f3a76ff12e78521f4359f2f689ab3020b9d0424ba968bca
User & Date: 顽雨沉风 on 2024-02-17 15:42:13
Other Links: manifest | tags
Context
2024-02-17
15:46
check-in: 0b9e931ff1 user: 顽雨沉风 tags: trunk
15:42
check-in: b158c7a4ac user: 顽雨沉风 tags: trunk
15:36
check-in: 7a80b7fa09 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [d12967c7e4] to [ebca9a45ee].

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
  end
do
  local h1, h2
  --~ 原解邀请
  h1 = "残局群181175613"
  --~ 二解邀请,备用:圣魔术师
  h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
    --~ 通关邀
  s["_通关邀"] = function()
    local h3
    --~ 对方之血
    h3 = Duel.GetLP(1)
    if h3 <= 0 then
      if h3 == 0 then
        Debug.ShowHint(h1)
      else
        Debug.ShowHint(h2)
        end
      end
    end
  s["通关邀"] = function()
    local h1
    --~ 效果
    h1 = Effect.GlobalEffect()
    h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
    h1:SetCode(EVENT_DAMAGE)
    h1:SetCondition(s["_通关邀"])
    h1:SetOperation(aux.NULL)
    Duel.RegisterEffect(h1, 0)
    end
  end
s["是否效卡"] = function(card)
  for i = 1, #s["效卡之类排"] do
    if Card.IsType(card, s["效卡之类排"][i]) then







|
|











|





|







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
  end
do
  local h1, h2
  --~ 原解邀请
  h1 = "残局群181175613"
  --~ 二解邀请,备用:圣魔术师
  h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
    --~ 通关邀
  s["_通关邀"] = function()
    local h3
    --~ 对方之血
    h3 = Duel.GetLP(1)
    if h3 <= 0 then
      if h3 == 0 then
        Debug.ShowHint(h1)
      else
        Debug.ShowHint(h2)
        end
      end
    end
  s["通关邀"] = function()
    local h1
    --~ 效果
    h1 = Effect.GlobalEffect()
    h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
    h1:SetCode(EVENT_DAMAGE)
    h1:SetCondition(s["_通关邀"])
    h1:SetOperation(aux.NULL)
    Duel.RegisterEffect(h1, 0)
    end
  end
s["是否效卡"] = function(card)
  for i = 1, #s["效卡之类排"] do
    if Card.IsType(card, s["效卡之类排"][i]) then
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
    h5:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE)
    h5:SetTarget(s["不被连锁"])
    h5:SetRange(LOCATION_EXTRA)
    h5:SetOperation(s["_印卡"])
    u1:RegisterEffect(h5)
    end
  end
s["开局示"] = function()
  local h1, h2, h3
  --~ 此局效卡之数
  h2 = Duel.GetMatchingGroupCount(s["是否效卡"], 0, s["全区"], s["全区"], nil)
  --~ 超量材组
  h3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
  for u1 in aux.Next(h3) do
    if s["是否效卡"](u1) then







|







211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
    h5:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE)
    h5:SetTarget(s["不被连锁"])
    h5:SetRange(LOCATION_EXTRA)
    h5:SetOperation(s["_印卡"])
    u1:RegisterEffect(h5)
    end
  end
s["开局示"] = function()
  local h1, h2, h3
  --~ 此局效卡之数
  h2 = Duel.GetMatchingGroupCount(s["是否效卡"], 0, s["全区"], s["全区"], nil)
  --~ 超量材组
  h3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
  for u1 in aux.Next(h3) do
    if s["是否效卡"](u1) then
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
  Debug.ShowHint(h1)
  end
do
  s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
  --~ 「开局洗卡抽卡」之量
  --~ 「开局选卡入手」之量
  --~ 传入对方额外卡组最上面表侧卡,并将其作为印卡源
  --~ 能手卡几张
  --~ 最多能印几张
  function _G.aux.BeginPuzzle(u1, u2, u3, u4, u5)
    s["aux.BeginPuzzle"]()
    if u1 then
      s["开局洗卡抽卡"](u1)
      end
    if u2 then
      s["开局选卡入手"](u2)
      end
    if u3 then
      s["印卡"](u3, u4, u5)
    else
      end
    s["开局示"]()
    s["通关邀"]()
    end
  end







|
|












|
|


253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
  Debug.ShowHint(h1)
  end
do
  s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
  --~ 「开局洗卡抽卡」之量
  --~ 「开局选卡入手」之量
  --~ 传入对方额外卡组最上面表侧卡,并将其作为印卡源
  --~ 能手卡几张
  --~ 最多能印几张
  function _G.aux.BeginPuzzle(u1, u2, u3, u4, u5)
    s["aux.BeginPuzzle"]()
    if u1 then
      s["开局洗卡抽卡"](u1)
      end
    if u2 then
      s["开局选卡入手"](u2)
      end
    if u3 then
      s["印卡"](u3, u4, u5)
    else
      end
    s["开局示"]()
    s["通关邀"]()
    end
  end