游戏王残局简化版

Check-in [c291f89d7e]
Login

Check-in [c291f89d7e]

Overview
Comment:0.0.2452
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c291f89d7e8907e8ee7b2cd9c5b62dad401949500a0ea4f109b512c21a31090e
User & Date: 顽雨沉风 on 2023-08-02 02:03:49
Other Links: manifest | tags
Context
2023-08-02
02:04
0.0.2453 check-in: e883722fe2 user: 顽雨沉风 tags: trunk
02:03
0.0.2452 check-in: c291f89d7e user: 顽雨沉风 tags: trunk
02:02
0.0.2451 check-in: 89efe6af3d user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [0882e01e16] to [ae89eaefa6].

60
61
62
63
64
65
66


























































































67
68
69
70
71
72
73
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9

local _



























































































fun["该效果不能被连锁"] = function() --{
  
  Duel.SetChainLimit(aux.FALSE)
  
  return true
  end --}







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
local cache_5
local cache_6
local cache_7
local cache_8
local cache_9

local _

fun["一_失败得分"] = function() --{
  
  str["失败得分表"] = {
    
    [0] = "神龙之圣刻印"
    , [100] = "调和支援士"
    , [200] = "深渊的暗杀者"
    , [300] = "救援猫"
    , [400] = "注射天使 莉莉"
    , [500] = "不知火的隐者"
    , [600] = "影依猎鹰"
    , [700] = "铁兽战线 姬特"
    , [800] = "召唤僧"
    , [900] = "恩底弥翁的仆从"
    , [1000] = "机壳工具 丑恶"
    , [1100] = "欧尼斯特"
    , [1200] = "次元吸引者"
    , [1300] = "黑羽-疾风之盖尔"
    , [1400] = "加农炮兵"
    , [1500] = "教导的大神祗官"
    , [1600] = "地中族导师"
    , [1700] = "相剑师-莫邪"
    , [1800] = "宝玉兽-青玉飞马"
    , [1900] = "命运英雄 血魔-D"
    , [2000] = "流离的狮鹫骑手"
    , [2100] = "电子龙"
    , [2200] = "古遗物-死镰"
    , [2300] = "能朋克 调狐"
    , [2400] = "俱舍怒威族·芬里尔狼"
    , [2500] = "黑魔术师"
    , [2600] = "雅典娜"
    , [2700] = "暗黑界的龙神 格拉法"
    , [2800] = "魔导兽 刻耳柏洛斯尊主"
    , [2900] = "元素英雄 永生侠"
    , [3000] = "青眼白龙"
    }
    
  str["对方玩家的初始生命值"] = Duel.GetLP(1)
  
  str["效果"] = Effect.GlobalEffect()
  
  str["效果"]:SetType(EFFECT_TYPE_FIELD
  + EFFECT_TYPE_CONTINUOUS)
  
  str["效果"]:SetCode(EVENT_PHASE_START+PHASE_END)
  
  function cache_1(effect_event
  , player_who_activate_the_effect) --{
    
    cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
    
    if cache_1 > 0 then --{
      
      return
      
      --}
      
    else --{
      
      cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
      
      cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
      
      end --}
      
    if cache_1 > 3000 then --{
      
      --}
      
    else --{
      
      Debug.ShowHint("这局,您的得分是 "
      .. cache_1
      .. " 分!\n处于「"
      .. str["失败得分表"][cache_1]
      .. "」级别!")
      
      end --}
      
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}

fun["该效果不能被连锁"] = function() --{
  
  Duel.SetChainLimit(aux.FALSE)
  
  return true
  end --}
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["失败得分"] = function() --{
  
  str["失败得分表"] = {
    
    [0] = "神龙之圣刻印"
    , [100] = "调和支援士"
    , [200] = "深渊的暗杀者"
    , [300] = "救援猫"
    , [400] = "注射天使 莉莉"
    , [500] = "不知火的隐者"
    , [600] = "影依猎鹰"
    , [700] = "铁兽战线 姬特"
    , [800] = "召唤僧"
    , [900] = "恩底弥翁的仆从"
    , [1000] = "机壳工具 丑恶"
    , [1100] = "欧尼斯特"
    , [1200] = "次元吸引者"
    , [1300] = "黑羽-疾风之盖尔"
    , [1400] = "加农炮兵"
    , [1500] = "教导的大神祗官"
    , [1600] = "地中族导师"
    , [1700] = "相剑师-莫邪"
    , [1800] = "宝玉兽-青玉飞马"
    , [1900] = "命运英雄 血魔-D"
    , [2000] = "流离的狮鹫骑手"
    , [2100] = "电子龙"
    , [2200] = "古遗物-死镰"
    , [2300] = "能朋克 调狐"
    , [2400] = "俱舍怒威族·芬里尔狼"
    , [2500] = "黑魔术师"
    , [2600] = "雅典娜"
    , [2700] = "暗黑界的龙神 格拉法"
    , [2800] = "魔导兽 刻耳柏洛斯尊主"
    , [2900] = "元素英雄 永生侠"
    , [3000] = "青眼白龙"
    }
    
  str["对方玩家的初始生命值"] = Duel.GetLP(1)
  
  str["效果"] = Effect.GlobalEffect()
  
  str["效果"]:SetType(EFFECT_TYPE_FIELD
  + EFFECT_TYPE_CONTINUOUS)
  
  str["效果"]:SetCode(EVENT_PHASE_START+PHASE_END)
  
  function cache_1(effect_event
  , player_who_activate_the_effect) --{
    
    cache_1 = Duel.GetLP(1) - str["对方玩家的初始生命值"]
    
    if cache_1 > 0 then --{
      
      return
      
      --}
      
    else --{
      
      cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
      
      cache_1 = math.tointeger(cache_1 * 3000 // 100 * 100)
      
      end --}
      
    if cache_1 > 3000 then --{
      
      --}
      
    else --{
      
      Debug.ShowHint("这局,您的得分是 "
      .. cache_1
      .. " 分!\n处于「"
      .. str["失败得分表"][cache_1]
      .. "」级别!")
      
      end --}
      
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  







<
|
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
579
580
581
582
583
584
585

586

587






















































































  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}