游戏王残局简化版

Check-in [7029b5245e]
Login

Check-in [7029b5245e]

Overview
Comment:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7029b5245e3f822124300793b41bcf5f67b66c4a9f0114f97bb590c611f1ff88
User & Date: 顽雨沉风 on 2024-02-14 03:54:35
Other Links: manifest | tags
Context
2024-02-14
04:01
check-in: 033930309a user: 顽雨沉风 tags: trunk
03:54
check-in: 7029b5245e user: 顽雨沉风 tags: trunk
03:46
check-in: fd436744e5 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [40b62bcf95] to [17d27607c5].

184
185
186
187
188
189
190
191
192
193
194
195
196
197

198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
      Duel.SendtoHand(h6, nil, REASON_RULE)
    else
      if h2 <= h4 then
        h2 = h2 + 1
        Duel.Remove(h6, POS_FACEUP, REASON_RULE)
        Duel.SendtoDeck(card, u2, 0, REASON_RULE)
      else
        Debug.ShowHint("印牌过多")
        4:Reset()
        end
      end
    end
  function s.["印牌"](u1, u2, u3)
    local h1, h2, h3

    u3 = u3 or u2
    Debug.ShowHint("点击对方额外牌组可以进行印牌。\n手牌只能印 " .. u2 .. " 张。\n最多可以印 " .. u3 .. " 张")
    h1 = Effect.CreateEffect(u1)
    --~ 现之印牌数
    h2 = 1
    h1:SetType(EFFECT_TYPE_IGNITION)
    h1:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE)
    h1:SetTarget(s["不被连锁"])
    h1:SetRange(LOCATION_EXTRA)
    -- 印牌
    --~ 调该效果的效果
    --~ 调该效果的玩家
    function h3(u4, u5)
      local h4, h5
      --~ 印卡之卡编
      h4 = Duel.AnnounceCard(u5)
      --~ 卡
      h5 = Duel.CreateToken(u5, h4)
      if h2 <= u2 then
        h2 = h2 + 1
        Duel.SendtoHand(h5, nil, REASON_RULE)
      else
        if h2 <= u3 then
          h2 = h2 + 1
          Duel.Remove(h5, POS_FACEUP, REASON_RULE)
          Duel.SendtoDeck(card, u5, 0, REASON_RULE)
        else
          Debug.ShowHint("印牌过多")
          u4:Reset()
          end
        end
      end
    h1:SetOperation(h3)
    u1:RegisterEffect(h1)
    end
  end
function s.["开局之示"]()
  local h1, h2, h3
  --~ 此局效牌之数
  h2 = Duel.GetMatchingGroupCount(s["是否效牌"], 0, s["全区"], s["全区"], nil)
  --~ 超量材组







|
|




|
>
|

|
<
<
|
|
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
|







184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201


202
203
204
205























206
207
208
209
210
211
212
213
214
      Duel.SendtoHand(h6, nil, REASON_RULE)
    else
      if h2 <= h4 then
        h2 = h2 + 1
        Duel.Remove(h6, POS_FACEUP, REASON_RULE)
        Duel.SendtoDeck(card, u2, 0, REASON_RULE)
      else
        Debug.ShowHint(h1)
        u1:Reset()
        end
      end
    end
  function s.["印牌"](u1, u2, u3)
    local h5, h6
    h3 = u2
    h4 = u3 or u2
    Debug.ShowHint("点击对方额外牌组可以进行印牌。\n手牌只能印 " .. u2 .. " 张。\n最多可以印 " .. u3 .. " 张")
    h5 = Effect.CreateEffect(u1)


    h5:SetType(EFFECT_TYPE_IGNITION)
    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
function s.["开局之示"]()
  local h1, h2, h3
  --~ 此局效牌之数
  h2 = Duel.GetMatchingGroupCount(s["是否效牌"], 0, s["全区"], s["全区"], nil)
  --~ 超量材组