游戏王残局简化版

Check-in [af6ca14c70]
Login

Check-in [af6ca14c70]

Overview
Comment:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: af6ca14c7060d314d8ceefe389657e97cb50bbd585d03d3fb0c982d33b32170a
User & Date: 顽雨沉风 on 2024-02-13 10:52:56
Other Links: manifest | tags
Context
2024-02-13
10:54
check-in: d3790b56e8 user: 顽雨沉风 tags: trunk
10:52
check-in: af6ca14c70 user: 顽雨沉风 tags: trunk
10:41
check-in: 43ea8c8217 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [cac850b2f3] to [4010ae69c8].

1
2
3
4
5
6
7
8
9
local str = {}
local math = math
local string = string
local table = table
_G.fun = {}
---------------------------------
local cache_1
local cache_2
local cache_3

<







1

2
3
4
5
6
7
8
local str = {}

local string = string
local table = table
_G.fun = {}
---------------------------------
local cache_1
local cache_2
local cache_3
55
56
57
58
59
60
61

62

63
64
65
66

67
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
102
    str["规则"] = str["规则表"][u2]
  else
    str["规则"] = str["规则表"][5]
  end
  fun["Debug.ReloadFieldBegin"](u1, u2)
end
fun["一_随机抽卡"] = function(u1)

  str["随机抽卡的数量"] = u1

  str["效果"] = Effect.GlobalEffect()
  str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  str["效果"]:SetCode(EVENT_ADJUST)
  str["效果"]:SetCondition(aux.TRUE)

  function cache_1(effect_event, player_who_activate_the_effect)
    Duel.ShuffleDeck(0)
    Duel.Draw(0, u1, REASON_RULE)
    effect_event:Reset()
  end
  str["效果"]:SetOperation(cache_1)
  Duel.RegisterEffect(str["效果"], 0)
end
fun["一_该效果不能被连锁"] = function()
  Duel.SetChainLimit(aux.FALSE)
  return true
end
fun["一_通关邀请"] = function()
  --备用:圣魔术师
  str["原解邀请"] = "残局群181175613"
  str["二解邀请"] = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
  str["效果"] = Effect.GlobalEffect()
  str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  str["效果"]:SetCode(EVENT_DAMAGE)
  function cache_1()
    cache_1 = Duel.GetLP(1)
    if cache_1 <= 0 then
      if cache_1 == 0 then
     
      else
        Debug.ShowHint(str["二解邀请"])
      end
      Debug.ShowHint(str["原解邀请"])
   
    else
      return false
    end
  end
  str["效果"]:SetCondition(cache_1)
  str["效果"]:SetOperation(aux.NULL)
  Duel.RegisterEffect(str["效果"], 0)







>

>
|
|
|
|
>
|



|
|
|
|















<




<







54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
102
    str["规则"] = str["规则表"][u2]
  else
    str["规则"] = str["规则表"][5]
  end
  fun["Debug.ReloadFieldBegin"](u1, u2)
end
fun["一_随机抽卡"] = function(u1)
  local h1, h2
  str["随机抽卡的数量"] = u1
  --~ 效果
  h1 = Effect.GlobalEffect()
  h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  h1:SetCode(EVENT_ADJUST)
  h1:SetCondition(aux.TRUE)
  --~ 随机抽卡
  function h2(effect_event)
    Duel.ShuffleDeck(0)
    Duel.Draw(0, u1, REASON_RULE)
    effect_event:Reset()
    end
  h1:SetOperation(h2)
  Duel.RegisterEffect(h1, 0)
  end
fun["一_该效果不能被连锁"] = function()
  Duel.SetChainLimit(aux.FALSE)
  return true
end
fun["一_通关邀请"] = function()
  --备用:圣魔术师
  str["原解邀请"] = "残局群181175613"
  str["二解邀请"] = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
  str["效果"] = Effect.GlobalEffect()
  str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  str["效果"]:SetCode(EVENT_DAMAGE)
  function cache_1()
    cache_1 = Duel.GetLP(1)
    if cache_1 <= 0 then
      if cache_1 == 0 then

      else
        Debug.ShowHint(str["二解邀请"])
      end
      Debug.ShowHint(str["原解邀请"])

    else
      return false
    end
  end
  str["效果"]:SetCondition(cache_1)
  str["效果"]:SetOperation(aux.NULL)
  Duel.RegisterEffect(str["效果"], 0)
137
138
139
140
141
142
143

144
145

146
147
148
149
150
151
152
153
154
155
156
157
    Duel.SendtoHand(str["玩家选定的卡"], nil, REASON_RULE)
    effect_event:Reset()
  end
  str["效果"]:SetOperation(cache_1)
  Duel.RegisterEffect(str["效果"], 0)
end
fun["一_禁格"] = function(u1)

  str["禁格"] = true
  str["禁格的数量"] = u1

  str["效果"] = Effect.GlobalEffect()
  str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
  str["效果"]:SetValue(u1)
  Duel.RegisterEffect(str["效果"], 0)
end
--第二层-------------------------------
local cache_1
local cache_2
local cache_3
local cache_4
local cache_5
local cache_6







>


>
|
|
|
|
|







137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
    Duel.SendtoHand(str["玩家选定的卡"], nil, REASON_RULE)
    effect_event:Reset()
  end
  str["效果"]:SetOperation(cache_1)
  Duel.RegisterEffect(str["效果"], 0)
end
fun["一_禁格"] = function(u1)
  local h1
  str["禁格"] = true
  str["禁格的数量"] = u1
  --~ 效果
  h1 = Effect.GlobalEffect()
  h1:SetCode(EFFECT_USE_EXTRA_MZONE)
  h1:SetValue(u1)
  Duel.RegisterEffect(h1, 0)
  end
--第二层-------------------------------
local cache_1
local cache_2
local cache_3
local cache_4
local cache_5
local cache_6