游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Origin for each line in script/c0.lua from check-in b78d28506d:

eeeff3c24b 2023-07-15  顽雨沉风: 
e59d27b43b 2023-07-17  顽雨沉风: local str = {}
e59d27b43b 2023-07-17  顽雨沉风: 
e59d27b43b 2023-07-17  顽雨沉风: local cache_1
e59d27b43b 2023-07-17  顽雨沉风: local cache_2
e59d27b43b 2023-07-17  顽雨沉风: local cache_3
e59d27b43b 2023-07-17  顽雨沉风: local cache_4
e59d27b43b 2023-07-17  顽雨沉风: local cache_5
27cb01cd8e 2023-07-17  顽雨沉风: local cache_6
27cb01cd8e 2023-07-17  顽雨沉风: local cache_7
27cb01cd8e 2023-07-17  顽雨沉风: local cache_8
27cb01cd8e 2023-07-17  顽雨沉风: local cache_9
41aff3cc3d 2023-07-17  顽雨沉风: 
41aff3cc3d 2023-07-17  顽雨沉风: _G.fun = {}
27cb01cd8e 2023-07-17  顽雨沉风: 
1270346ecf 2023-07-19  顽雨沉风: ---------------------------------
cea99f0284 2023-07-19  顽雨沉风: 
cea99f0284 2023-07-19  顽雨沉风: str["效果卡的种类表"] = {}
dfdb40c9d4 2023-07-23  顽雨沉风: 
cea99f0284 2023-07-19  顽雨沉风: str["效果卡的种类表"][1] = TYPE_SPELL
cea99f0284 2023-07-19  顽雨沉风: str["效果卡的种类表"][2] = TYPE_TRAP
cea99f0284 2023-07-19  顽雨沉风: str["效果卡的种类表"][3] = TYPE_EFFECT
15a06aae93 2023-07-19  顽雨沉风: 
15a06aae93 2023-07-19  顽雨沉风: str["无效果灵摆怪兽表"] = {}
15a06aae93 2023-07-19  顽雨沉风: 
15a06aae93 2023-07-19  顽雨沉风: str["无效果灵摆怪兽表"][1] = 28363749
15a06aae93 2023-07-19  顽雨沉风: str["无效果灵摆怪兽表"][2] = 19474136
15a06aae93 2023-07-19  顽雨沉风: str["无效果灵摆怪兽表"][3] = 17390179
15a06aae93 2023-07-19  顽雨沉风: str["无效果灵摆怪兽表"][4] = 83980492
262ab836d0 2023-07-19  顽雨沉风: 
262ab836d0 2023-07-19  顽雨沉风: cache_1 = 0
262ab836d0 2023-07-19  顽雨沉风: 
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_HAND
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_MZONE
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_SZONE
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_GRAVE
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_REMOVED
262ab836d0 2023-07-19  顽雨沉风: 
262ab836d0 2023-07-19  顽雨沉风: str["除卡组与额外卡组以外的区域"] = cache_1
262ab836d0 2023-07-19  顽雨沉风: 
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_DECK
262ab836d0 2023-07-19  顽雨沉风: cache_1 = cache_1 + LOCATION_EXTRA
262ab836d0 2023-07-19  顽雨沉风: 
262ab836d0 2023-07-19  顽雨沉风: str["所有区域"] = cache_1
ba86300fd5 2023-07-19  顽雨沉风: 
1270346ecf 2023-07-19  顽雨沉风: ---------------------------------
1270346ecf 2023-07-19  顽雨沉风: 
ad797768a6 2023-07-14  顽雨沉风: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
45478ef823 2023-07-13  顽雨沉风: 
45478ef823 2023-07-13  顽雨沉风: Debug.ReloadFieldBegin = function(str_1, str_2) --{
993a6dbc45 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
dfdb40c9d4 2023-07-23  顽雨沉风:   
dfdb40c9d4 2023-07-23  顽雨沉风:   str["规则表"] = {}
dfdb40c9d4 2023-07-23  顽雨沉风:   str["规则表"][3] = "大师3 "
dfdb40c9d4 2023-07-23  顽雨沉风:   str["规则表"][4] = "新大师 "
dfdb40c9d4 2023-07-23  顽雨沉风:   str["规则表"][5] = "大师2020 "
832da4f615 2023-07-23  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   if str_2 then --{
993a6dbc45 2023-07-13  顽雨沉风:     
626009b1d8 2023-07-19  顽雨沉风:     str["规则"] = str["规则表"][str_2]
626009b1d8 2023-07-19  顽雨沉风:     
626009b1d8 2023-07-19  顽雨沉风:     --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   else --{
993a6dbc45 2023-07-13  顽雨沉风:     
626009b1d8 2023-07-19  顽雨沉风:     str["规则"] = str["规则表"][5]
ad797768a6 2023-07-14  顽雨沉风:     
ad797768a6 2023-07-14  顽雨沉风:     end --}
ad797768a6 2023-07-14  顽雨沉风:     
ad797768a6 2023-07-14  顽雨沉风:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
ad797768a6 2023-07-14  顽雨沉风:   
9a4f580be7 2023-07-23  顽雨沉风:   end --}
9a4f580be7 2023-07-23  顽雨沉风:   
9a4f580be7 2023-07-23  顽雨沉风: fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd
9a4f580be7 2023-07-23  顽雨沉风: 
9a4f580be7 2023-07-23  顽雨沉风: Debug.ReloadFieldEnd = function(str_1) --{
832da4f615 2023-07-23  顽雨沉风:   
9a4f580be7 2023-07-23  顽雨沉风:   fun["Debug.ReloadFieldEnd"]()
9a4f580be7 2023-07-23  顽雨沉风:   
9a4f580be7 2023-07-23  顽雨沉风:   if str_1 then --{
832da4f615 2023-07-23  顽雨沉风:     
9a4f580be7 2023-07-23  顽雨沉风:     fun["随机抽卡"](str_1)
832da4f615 2023-07-23  顽雨沉风:     
9a4f580be7 2023-07-23  顽雨沉风:     end --}
832da4f615 2023-07-23  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:   end --}
66a03a682a 2023-07-20  顽雨沉风:   
7b13e3e7c3 2023-07-16  顽雨沉风: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
7b13e3e7c3 2023-07-16  顽雨沉风: 
66a03a682a 2023-07-20  顽雨沉风: aux.BeginPuzzle = function(str_1, str_2) --{
c1424b8fad 2023-07-16  顽雨沉风:   
02cee86a5d 2023-07-16  顽雨沉风:   fun["aux.BeginPuzzle"]()
c1424b8fad 2023-07-16  顽雨沉风:   
66a03a682a 2023-07-20  顽雨沉风:   if str_1 then --{
66a03a682a 2023-07-20  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:     fun["开局添加手卡"](str_1)
66a03a682a 2023-07-20  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:     end --}
66a03a682a 2023-07-20  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:   if str_2 then --{
66a03a682a 2023-07-20  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:     fun["禁格"](str_2)
66a03a682a 2023-07-20  顽雨沉风:     
66a03a682a 2023-07-20  顽雨沉风:     end --}
66a03a682a 2023-07-20  顽雨沉风:     
02cee86a5d 2023-07-16  顽雨沉风:   fun["开局说明"]()
c1424b8fad 2023-07-16  顽雨沉风:   
cd5279993d 2023-07-16  顽雨沉风:   fun["通关邀请"]()
dfdb40c9d4 2023-07-23  顽雨沉风:   
5ef9b2fbe7 2023-07-23  顽雨沉风:   fun["失败得分"]()
5ef9b2fbe7 2023-07-23  顽雨沉风:   
02cee86a5d 2023-07-16  顽雨沉风:   end --}
c1424b8fad 2023-07-16  顽雨沉风:   
993a6dbc45 2023-07-13  顽雨沉风: fun["通关邀请"] = function() --{
993a6dbc45 2023-07-13  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
993a6dbc45 2023-07-13  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_FIELD
45478ef823 2023-07-13  顽雨沉风:   + EFFECT_TYPE_CONTINUOUS)
45478ef823 2023-07-13  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCode(EVENT_DAMAGE)
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   function cache_1() --{
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     cache_1 = Duel.GetLP(1)
45478ef823 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     if cache_1 <= 0 then --{
993a6dbc45 2023-07-13  顽雨沉风:       
5593fe6ed7 2023-07-17  顽雨沉风:       if cache_1 == 0 then --{
5593fe6ed7 2023-07-17  顽雨沉风:         
ea070909e1 2023-07-18  顽雨沉风:         --}
ea070909e1 2023-07-18  顽雨沉风:         
ea070909e1 2023-07-18  顽雨沉风:       else  --{
ea070909e1 2023-07-18  顽雨沉风:         
0d8bedefaa 2023-07-23  顽雨沉风:         Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
334f2bc614 2023-07-18  顽雨沉风:         
334f2bc614 2023-07-18  顽雨沉风:         end --}
334f2bc614 2023-07-18  顽雨沉风:         
0d8bedefaa 2023-07-23  顽雨沉风:       Debug.ShowHint("残局群181175613")
45478ef823 2023-07-13  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:       --}
993a6dbc45 2023-07-13  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:     else --{
993a6dbc45 2023-07-13  顽雨沉风:       
24b898f4c2 2023-07-16  顽雨沉风:       return false
993a6dbc45 2023-07-13  顽雨沉风:       
993a6dbc45 2023-07-13  顽雨沉风:       end --}
993a6dbc45 2023-07-13  顽雨沉风:       
975214d28e 2023-07-16  顽雨沉风:     end --}
975214d28e 2023-07-16  顽雨沉风:     
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCondition(cache_1)
115aa990c4 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetOperation(aux.NULL)
115aa990c4 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   Duel.RegisterEffect(str["效果"]
45478ef823 2023-07-13  顽雨沉风:   , 0)
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   end --}
993a6dbc45 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风: fun["是否效果卡"] = function(card) --{
add769c64d 2023-07-19  顽雨沉风:   
14f5073ab7 2023-07-23  顽雨沉风:   for i = 1, #str["效果卡的种类表"] do --{
add769c64d 2023-07-19  顽雨沉风:     
add769c64d 2023-07-19  顽雨沉风:     cache_1 = Card.IsType(card, str["效果卡的种类表"][i])
add769c64d 2023-07-19  顽雨沉风:     
add769c64d 2023-07-19  顽雨沉风:     if cache_1 then --{
add769c64d 2023-07-19  顽雨沉风:       
add769c64d 2023-07-19  顽雨沉风:       return true
add769c64d 2023-07-19  顽雨沉风:       end --}
add769c64d 2023-07-19  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   cache_1 = Card.IsType(card, TYPE_PENDULUM)
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   if cache_1 then --{
993a6dbc45 2023-07-13  顽雨沉风:     
14f5073ab7 2023-07-23  顽雨沉风:     for i = 1, #str["无效果灵摆怪兽表"] do --{
15a06aae93 2023-07-19  顽雨沉风:       
e815de3684 2023-07-23  顽雨沉风:       if Card.IsCode(card, str["无效果灵摆怪兽表"][i]) then --{
15a06aae93 2023-07-19  顽雨沉风:         
15a06aae93 2023-07-19  顽雨沉风:         --}
15a06aae93 2023-07-19  顽雨沉风:         
15a06aae93 2023-07-19  顽雨沉风:       else  --{
15a06aae93 2023-07-19  顽雨沉风:         
15a06aae93 2023-07-19  顽雨沉风:         return true
15a06aae93 2023-07-19  顽雨沉风:         
15a06aae93 2023-07-19  顽雨沉风:         end --}
15a06aae93 2023-07-19  顽雨沉风:         
993a6dbc45 2023-07-13  顽雨沉风:       end --}
993a6dbc45 2023-07-13  顽雨沉风:       
993a6dbc45 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   return false
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   end --}
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13  顽雨沉风:   
03f04117d2 2023-07-23  顽雨沉风:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
03f04117d2 2023-07-23  顽雨沉风:   , 0
03f04117d2 2023-07-23  顽雨沉风:   , str["所有区域"]
03f04117d2 2023-07-23  顽雨沉风:   , str["所有区域"]
03f04117d2 2023-07-23  顽雨沉风:   , nil)
03f04117d2 2023-07-23  顽雨沉风:   
a0f5363035 2023-07-23  顽雨沉风:   str["超量素材组"] = Duel.GetOverlayGroup(0
03f04117d2 2023-07-23  顽雨沉风:   , LOCATION_MZONE
03f04117d2 2023-07-23  顽雨沉风:   , LOCATION_MZONE)
03f04117d2 2023-07-23  顽雨沉风:   
a0f5363035 2023-07-23  顽雨沉风:   for k in aux.Next(str["超量素材组"]) do --{
03f04117d2 2023-07-23  顽雨沉风:     
a0f5363035 2023-07-23  顽雨沉风:     if fun["是否效果卡"](k) then --{
993a6dbc45 2023-07-13  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:       end --}
993a6dbc45 2023-07-13  顽雨沉风:       
45478ef823 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
03f04117d2 2023-07-23  顽雨沉风:   str["开局说明"] = str["这个残局的效果卡数量"]
03f04117d2 2023-07-23  顽雨沉风:   .. "卡 "
03f04117d2 2023-07-23  顽雨沉风:   .. str["规则"]
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   else --{
993a6dbc45 2023-07-13  顽雨沉风:     
03f04117d2 2023-07-23  顽雨沉风:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  顽雨沉风:     
03f04117d2 2023-07-23  顽雨沉风:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  顽雨沉风:     
03f04117d2 2023-07-23  顽雨沉风:     str["开局说明"] = str["开局说明"]
03f04117d2 2023-07-23  顽雨沉风:     .. "选"
ddbc332f5e 2023-07-23  顽雨沉风:     .. str["开局添加手卡的数量"]
ddbc332f5e 2023-07-23  顽雨沉风:     .. "卡 "
45478ef823 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   if str["禁格"] then --{
993a6dbc45 2023-07-13  顽雨沉风:     
27389a3b0a 2023-07-23  顽雨沉风:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  顽雨沉风:     .. "禁"
27389a3b0a 2023-07-23  顽雨沉风:     .. str["禁格的数量"]
27389a3b0a 2023-07-23  顽雨沉风:     .. "格 "
0852ed07b8 2023-07-22  顽雨沉风:     
0852ed07b8 2023-07-22  顽雨沉风:     end --}
0852ed07b8 2023-07-22  顽雨沉风:     
0852ed07b8 2023-07-22  顽雨沉风:   if str["随机抽卡的数量"] then --{
a469e38404 2023-07-22  顽雨沉风:     
27389a3b0a 2023-07-23  顽雨沉风:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  顽雨沉风:     .. "抽"
27389a3b0a 2023-07-23  顽雨沉风:     .. str["随机抽卡的数量"]
27389a3b0a 2023-07-23  顽雨沉风:     .. "卡 "
993a6dbc45 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
45478ef823 2023-07-13  顽雨沉风:   Debug.ShowHint(str["开局说明"])
45478ef823 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风:   end --}
993a6dbc45 2023-07-13  顽雨沉风:   
45478ef823 2023-07-13  顽雨沉风: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  顽雨沉风:   
0d5ba0fc61 2023-07-23  顽雨沉风:   str["开局添加手卡的数量"] = str_1
e8a4eb1d6e 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
e8a4eb1d6e 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  顽雨沉风:   + EFFECT_TYPE_CONTINUOUS)
e8a4eb1d6e 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCode(EVENT_ADJUST)
0f0474f258 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  顽雨沉风:   
8e87626fe9 2023-07-16  顽雨沉风:   function cache_1(effect_event
8e87626fe9 2023-07-16  顽雨沉风:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  顽雨沉风:     
8e87626fe9 2023-07-16  顽雨沉风:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  顽雨沉风:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  顽雨沉风:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  顽雨沉风:     , LOCATION_DECK
4e8f89ad97 2023-07-11  顽雨沉风:     , 0
4e8f89ad97 2023-07-11  顽雨沉风:     , str_1
4e8f89ad97 2023-07-11  顽雨沉风:     , str_1
4e8f89ad97 2023-07-11  顽雨沉风:     , nil)
4e8f89ad97 2023-07-11  顽雨沉风:     
4e8f89ad97 2023-07-11  顽雨沉风:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  顽雨沉风:     , nil
4e8f89ad97 2023-07-11  顽雨沉风:     , REASON_RULE)
8e87626fe9 2023-07-16  顽雨沉风:     
e28a9fe965 2023-07-16  顽雨沉风:     effect_event:Reset()
1539e099d7 2023-07-16  顽雨沉风:     
8e87626fe9 2023-07-16  顽雨沉风:     end --}
8e87626fe9 2023-07-16  顽雨沉风:     
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetOperation(cache_1)
8e87626fe9 2023-07-16  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   Duel.RegisterEffect(str["效果"]
8e87626fe9 2023-07-16  顽雨沉风:   , 0)
17d6844110 2023-07-16  顽雨沉风:   
d5d0e03305 2023-07-11  顽雨沉风:   end --}
993a6dbc45 2023-07-13  顽雨沉风:   
d5d0e03305 2023-07-11  顽雨沉风: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  顽雨沉风:   
0d5ba0fc61 2023-07-23  顽雨沉风:   str["禁格的数量"] = str_1
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetValue(str_1)
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   Duel.RegisterEffect(str["效果"],0)
6254eda63a 2023-07-23  顽雨沉风:   
0d5ba0fc61 2023-07-23  顽雨沉风:   end --}
0d5ba0fc61 2023-07-23  顽雨沉风:   
8a01ebbad2 2023-07-23  顽雨沉风: fun["该效果不能被连锁"] = function() --{
8a01ebbad2 2023-07-23  顽雨沉风:   
8a01ebbad2 2023-07-23  顽雨沉风:   Duel.SetChainLimit(aux.FALSE)
8a01ebbad2 2023-07-23  顽雨沉风:   
8a01ebbad2 2023-07-23  顽雨沉风:   return true
8a01ebbad2 2023-07-23  顽雨沉风:   end --}
8a01ebbad2 2023-07-23  顽雨沉风:   
d5d0e03305 2023-07-11  顽雨沉风: fun["印卡"] = function(str_1, str_2, str_3) --{
d5d0e03305 2023-07-11  顽雨沉风:   
d5d0e03305 2023-07-11  顽雨沉风:   if str_3 then --{
993a6dbc45 2023-07-13  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     --}
993a6dbc45 2023-07-13  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:   else --{
993a6dbc45 2023-07-13  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     str_3 = str_2
45478ef823 2023-07-13  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
0d5ba0fc61 2023-07-23  顽雨沉风:   Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
0d5ba0fc61 2023-07-23  顽雨沉风:   .. str_2
0d5ba0fc61 2023-07-23  顽雨沉风:   .. " 张。\n最多可以印 "
0d5ba0fc61 2023-07-23  顽雨沉风:   .. str_3
0d5ba0fc61 2023-07-23  顽雨沉风:   .. " 张")
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"] = Effect.CreateEffect(str_1)
9a1184f29f 2023-07-22  顽雨沉风:   
9a1184f29f 2023-07-22  顽雨沉风:   str["当前印卡数"] = 1
9a1184f29f 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_IGNITION)
9a1184f29f 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  顽雨沉风:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  顽雨沉风:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  顽雨沉风:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  顽雨沉风:   
8a01ebbad2 2023-07-23  顽雨沉风:   str["效果"]:SetTarget(fun["该效果不能被连锁"])
6254eda63a 2023-07-23  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  顽雨沉风:   
d5d0e03305 2023-07-11  顽雨沉风:   function print_hand(effect_event
d5d0e03305 2023-07-11  顽雨沉风:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  顽雨沉风:     , announce_card)
d5d0e03305 2023-07-11  顽雨沉风:     
d5d0e03305 2023-07-11  顽雨沉风:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  顽雨沉风:       
d5d0e03305 2023-07-11  顽雨沉风:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  顽雨沉风:       
d5d0e03305 2023-07-11  顽雨沉风:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  顽雨沉风:       
d5d0e03305 2023-07-11  顽雨沉风:       --}
993a6dbc45 2023-07-13  顽雨沉风:       
d5d0e03305 2023-07-11  顽雨沉风:     else --{
993a6dbc45 2023-07-13  顽雨沉风:       
d5d0e03305 2023-07-11  顽雨沉风:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  顽雨沉风:         
d5d0e03305 2023-07-11  顽雨沉风:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  顽雨沉风:         
d5d0e03305 2023-07-11  顽雨沉风:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  顽雨沉风:         
d5d0e03305 2023-07-11  顽雨沉风:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  顽雨沉风:         
d5d0e03305 2023-07-11  顽雨沉风:         --}
993a6dbc45 2023-07-13  顽雨沉风:         
d5d0e03305 2023-07-11  顽雨沉风:       else --{
993a6dbc45 2023-07-13  顽雨沉风:         
27c36deea8 2023-07-23  顽雨沉风:         Debug.ShowHint("印卡过多!")
45478ef823 2023-07-13  顽雨沉风:         
a30b9aba5d 2023-07-16  顽雨沉风:         effect_event:Reset()
a30b9aba5d 2023-07-16  顽雨沉风:         
993a6dbc45 2023-07-13  顽雨沉风:         end --}
993a6dbc45 2023-07-13  顽雨沉风:         
993a6dbc45 2023-07-13  顽雨沉风:       end --}
993a6dbc45 2023-07-13  顽雨沉风:       
993a6dbc45 2023-07-13  顽雨沉风:     end --}
993a6dbc45 2023-07-13  顽雨沉风:     
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetOperation(print_hand)
0852ed07b8 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str_1:RegisterEffect(str["效果"])
0852ed07b8 2023-07-22  顽雨沉风:   
0852ed07b8 2023-07-22  顽雨沉风:   end --}
0852ed07b8 2023-07-22  顽雨沉风:   
0852ed07b8 2023-07-22  顽雨沉风: fun["随机抽卡"] = function(str_1) --{
a469e38404 2023-07-22  顽雨沉风:   
0852ed07b8 2023-07-22  顽雨沉风:   str["随机抽卡的数量"] = str_1
63daf9144a 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
63daf9144a 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_FIELD
63daf9144a 2023-07-22  顽雨沉风:   + EFFECT_TYPE_CONTINUOUS)
63daf9144a 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCode(EVENT_ADJUST)
63daf9144a 2023-07-22  顽雨沉风:   
6254eda63a 2023-07-23  顽雨沉风:   str["效果"]:SetCondition(aux.TRUE)
63daf9144a 2023-07-22  顽雨沉风:   
63daf9144a 2023-07-22  顽雨沉风:   function cache_1(effect_event
63daf9144a 2023-07-22  顽雨沉风:   , player_who_activate_the_effect) --{
a469e38404 2023-07-22  顽雨沉风:     
63daf9144a 2023-07-22  顽雨沉风:     Duel.ShuffleDeck(0)
a469e38404 2023-07-22  顽雨沉风:     
63daf9144a 2023-07-22  顽雨沉风:     Duel.Draw(0,str_1,REASON_RULE)
9c53880fae 2023-07-23  顽雨沉风:     
9c53880fae 2023-07-23  顽雨沉风:     effect_event:Reset()
9c53880fae 2023-07-23  顽雨沉风:     
9c53880fae 2023-07-23  顽雨沉风:     end --}
9c53880fae 2023-07-23  顽雨沉风:     
9c53880fae 2023-07-23  顽雨沉风:   str["效果"]:SetOperation(cache_1)
9c53880fae 2023-07-23  顽雨沉风:   
9c53880fae 2023-07-23  顽雨沉风:   Duel.RegisterEffect(str["效果"]
9c53880fae 2023-07-23  顽雨沉风:   , 0)
9c53880fae 2023-07-23  顽雨沉风:   
9c53880fae 2023-07-23  顽雨沉风:   end --}
9c53880fae 2023-07-23  顽雨沉风:   
9c53880fae 2023-07-23  顽雨沉风: fun["失败得分"] = function() --{
036fec47f8 2023-07-23  顽雨沉风: str["失败得分表"] = {}
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][0] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][100] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][200] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][300] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][400] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][500] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][600] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][700] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][800] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][900] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1000] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1100] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1200] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1300] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1400] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1500] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1600] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1700] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1800] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][1900] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2000] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2100] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2200] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2300] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2400] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2500] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2600] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2700] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2800] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][2900] = "青眼白龙"
441f11b31f 2023-07-23  顽雨沉风: str["失败得分表"][3000] = "青眼白龙"
15c47f6d38 2023-07-23  顽雨沉风:   
15c47f6d38 2023-07-23  顽雨沉风:   str["对方玩家的初始生命值"] = Duel.GetLP(1)
15c47f6d38 2023-07-23  顽雨沉风:   
ec99b8dccc 2023-07-23  顽雨沉风:   str["效果"] = Effect.GlobalEffect()
ec99b8dccc 2023-07-23  顽雨沉风:   
ec99b8dccc 2023-07-23  顽雨沉风:   str["效果"]:SetType(EFFECT_TYPE_FIELD
ec99b8dccc 2023-07-23  顽雨沉风:   + EFFECT_TYPE_CONTINUOUS)
ec99b8dccc 2023-07-23  顽雨沉风:   
ec99b8dccc 2023-07-23  顽雨沉风:   str["效果"]:SetCode(EVENT_PHASE_START+PHASE_END)
ec99b8dccc 2023-07-23  顽雨沉风:   
ec99b8dccc 2023-07-23  顽雨沉风:   function cache_1(effect_event
ec99b8dccc 2023-07-23  顽雨沉风:   , player_who_activate_the_effect) --{
15c47f6d38 2023-07-23  顽雨沉风:     
15c47f6d38 2023-07-23  顽雨沉风:     cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
428f4242f8 2023-07-23  顽雨沉风:     
15c47f6d38 2023-07-23  顽雨沉风:     if cache_1 > 0 then --{
944281b3ef 2023-07-23  顽雨沉风:     
944281b3ef 2023-07-23  顽雨沉风:     Debug.ShowHint("对面耍赖")
244791f883 2023-07-23  顽雨沉风:       
15c47f6d38 2023-07-23  顽雨沉风:       --}
15c47f6d38 2023-07-23  顽雨沉风:       
15c47f6d38 2023-07-23  顽雨沉风:     else --{
5f3b78a3f7 2023-07-23  顽雨沉风:       
b0d40f3f29 2023-07-23  顽雨沉风:       cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
4fc42fb3fe 2023-07-23  顽雨沉风:       
2533562cae 2023-07-23  顽雨沉风:       cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
8790ffa676 2023-07-23  顽雨沉风:       
8790ffa676 2023-07-23  顽雨沉风:       end --}
8790ffa676 2023-07-23  顽雨沉风:       
228d4466a0 2023-07-23  顽雨沉风:       if cache_1 > 3000 then --{
944281b3ef 2023-07-23  顽雨沉风:       Debug.ShowHint("比青眼白龙还厉害了")
228d4466a0 2023-07-23  顽雨沉风:         --}
228d4466a0 2023-07-23  顽雨沉风:         else --{
6bbdfdad5a 2023-07-23  顽雨沉风:           Debug.ShowHint("您的得分是 "
3eae441ec0 2023-07-23  顽雨沉风:           .. cache_1
6bbdfdad5a 2023-07-23  顽雨沉风:           .. " 分!\n相当于「"
ddc570ff6d 2023-07-23  顽雨沉风:           .. str["失败得分表"][cache_1]
b78d28506d 2023-07-23  顽雨沉风:           .. "」级别!\n非常棒!")
228d4466a0 2023-07-23  顽雨沉风:         end --}
228d4466a0 2023-07-23  顽雨沉风:       
228d4466a0 2023-07-23  顽雨沉风: --~     Debug.ShowHint(tostring(cache_1))
ec99b8dccc 2023-07-23  顽雨沉风:     
ec99b8dccc 2023-07-23  顽雨沉风:     effect_event:Reset()
ec99b8dccc 2023-07-23  顽雨沉风:     
ec99b8dccc 2023-07-23  顽雨沉风:     end --}
ec99b8dccc 2023-07-23  顽雨沉风:     
ec99b8dccc 2023-07-23  顽雨沉风:   str["效果"]:SetOperation(cache_1)
ec99b8dccc 2023-07-23  顽雨沉风:   
ec99b8dccc 2023-07-23  顽雨沉风:   Duel.RegisterEffect(str["效果"]
ec99b8dccc 2023-07-23  顽雨沉风:   , 0)
15c47f6d38 2023-07-23  顽雨沉风:   
66a03a682a 2023-07-20  顽雨沉风:   end --}
15c47f6d38 2023-07-23  顽雨沉风: