游戏王残局简化版

Check-in [6254eda63a]
Login

Check-in [6254eda63a]

Overview
Comment:0.0.2033
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6254eda63a6befe7606085ff8f49216c9a603bb1829fdb46870cc1b6c9790df9
User & Date: 顽雨沉风 on 2023-07-23 00:35:08
Other Links: manifest | tags
Context
2023-07-23
00:36
0.0.2034 check-in: 27389a3b0a user: 顽雨沉风 tags: trunk
00:35
0.0.2033 check-in: 6254eda63a user: 顽雨沉风 tags: trunk
00:34
0.0.2032 check-in: ddbc332f5e user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [8f904bcb22] to [792052437b].

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
  
  fun["通关邀请"]()
  
  end --}
  
fun["通关邀请"] = function() --{
  
  effect_1 = Effect.GlobalEffect()
  
  effect_1:SetType(EFFECT_TYPE_FIELD
  + EFFECT_TYPE_CONTINUOUS)
  
  effect_1:SetCode(EVENT_DAMAGE)
  
  function cache_1() --{
    
    cache_1 = Duel.GetLP(1)
    
    if cache_1 <= 0 then --{
      







|

|


|







123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
  
  fun["通关邀请"]()
  
  end --}
  
fun["通关邀请"] = function() --{
  
  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 --{
      
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
      
      return false
      
      end --}
      
    end --}
    
  effect_1:SetCondition(cache_1)
  
  effect_1:SetOperation(aux.NULL)
  
  Duel.RegisterEffect(effect_1
  , 0)
  
  end --}
  
fun["是否效果卡"] = function(card) --{
  
  cache_1 = #str["效果卡的种类表"]







|

|

|







158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
      
      return false
      
      end --}
      
    end --}
    
  str["效果"]:SetCondition(cache_1)
  
  str["效果"]:SetOperation(aux.NULL)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["是否效果卡"] = function(card) --{
  
  cache_1 = #str["效果卡的种类表"]
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
  
  end --}
  
fun["开局添加手卡"] = function(str_1) --{
  
  str["开局添加手卡"] = str_1
  
  effect_1 = Effect.GlobalEffect()
  
  effect_1:SetType(EFFECT_TYPE_FIELD
  + EFFECT_TYPE_CONTINUOUS)
  
  effect_1:SetCode(EVENT_ADJUST)
  
  effect_1:SetCondition(aux.TRUE)
  
  function cache_1(effect_event
  , player_who_activate_the_effect) --{
    
    str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
    , Card.IsAbleToHand
    , player_who_activate_the_effect







|

|


|

|







287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
  
  end --}
  
fun["开局添加手卡"] = function(str_1) --{
  
  str["开局添加手卡"] = str_1
  
  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) --{
    
    str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
    , Card.IsAbleToHand
    , player_who_activate_the_effect
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
    , nil
    , REASON_RULE)
    
    effect_event:Reset()
    
    end --}
    
  effect_1:SetOperation(cache_1)
  
  Duel.RegisterEffect(effect_1
  , 0)
  
  end --}
  
fun["禁格"] = function(str_1) --{
  
  str["禁格"] = str_1
  
  effect_1 = Effect.GlobalEffect()
  
  effect_1:SetCode(EFFECT_USE_EXTRA_MZONE)
  
  effect_1:SetValue(str_1)
  
  Duel.RegisterEffect(effect_1,0)
  
  end --}
  
fun["印卡"] = function(str_1, str_2, str_3) --{
  
  if str_3 then --{
    







|

|








|

|

|

|







316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
    , nil
    , REASON_RULE)
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["禁格"] = function(str_1) --{
  
  str["禁格"] = str_1
  
  str["效果"] = Effect.GlobalEffect()
  
  str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
  
  str["效果"]:SetValue(str_1)
  
  Duel.RegisterEffect(str["效果"],0)
  
  end --}
  
fun["印卡"] = function(str_1, str_2, str_3) --{
  
  if str_3 then --{
    
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str_2
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str["印卡弹窗2"]
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str_3
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str["印卡弹窗3"]
  
  Debug.ShowHint(str["印卡弹窗1"])
  
  effect_1 = Effect.CreateEffect(str_1)
  
  str["当前印卡数"] = 1
  
  effect_1:SetType(EFFECT_TYPE_IGNITION)
  
  effect_1:SetProperty(EFFECT_FLAG_BOTH_SIDE
  + EFFECT_FLAG_UNCOPYABLE
  + EFFECT_FLAG_CANNOT_NEGATE
  + EFFECT_FLAG_CANNOT_DISABLE)
  
  cache_1 = function() --{
    
    Duel.SetChainLimit(aux.FALSE)
    
    return true
    
    end --}
    
  effect_1:SetTarget(cache_1)
  
  effect_1:SetRange(LOCATION_EXTRA)
  
  function print_hand(effect_event
  , player_who_activate_the_effect) --{
    
    announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
    
    card = Duel.CreateToken(player_who_activate_the_effect







|



|

|












|

|







356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str_2
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str["印卡弹窗2"]
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str_3
  str["印卡弹窗1"] = str["印卡弹窗1"] .. str["印卡弹窗3"]
  
  Debug.ShowHint(str["印卡弹窗1"])
  
  str["效果"] = Effect.CreateEffect(str_1)
  
  str["当前印卡数"] = 1
  
  str["效果"]:SetType(EFFECT_TYPE_IGNITION)
  
  str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
  + EFFECT_FLAG_UNCOPYABLE
  + EFFECT_FLAG_CANNOT_NEGATE
  + EFFECT_FLAG_CANNOT_DISABLE)
  
  cache_1 = function() --{
    
    Duel.SetChainLimit(aux.FALSE)
    
    return true
    
    end --}
    
  str["效果"]:SetTarget(cache_1)
  
  str["效果"]:SetRange(LOCATION_EXTRA)
  
  function print_hand(effect_event
  , player_who_activate_the_effect) --{
    
    announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
    
    card = Duel.CreateToken(player_who_activate_the_effect
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
        
        end --}
        
      end --}
      
    end --}
    
  effect_1:SetOperation(print_hand)
  
  str_1:RegisterEffect(effect_1)
  
  end --}
  
fun["随机抽卡"] = function(str_1) --{
  
  str["随机抽卡的数量"] = str_1
  
  effect_1 = Effect.GlobalEffect()
  
  effect_1:SetType(EFFECT_TYPE_FIELD
  + EFFECT_TYPE_CONTINUOUS)
  
  effect_1:SetCode(EVENT_ADJUST)
  
  effect_1:SetCondition(aux.TRUE)
  
  function cache_1(effect_event
  , player_who_activate_the_effect) --{
    
    Duel.ShuffleDeck(0)
    
    Duel.Draw(0,str_1,REASON_RULE)
    
    effect_event:Reset()
    
    end --}
    
  effect_1:SetOperation(cache_1)
  
  Duel.RegisterEffect(effect_1
  , 0)
  
  end --}
  







|

|







|

|


|

|












|

|




419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
        
        end --}
        
      end --}
      
    end --}
    
  str["效果"]:SetOperation(print_hand)
  
  str_1:RegisterEffect(str["效果"])
  
  end --}
  
fun["随机抽卡"] = function(str_1) --{
  
  str["随机抽卡的数量"] = str_1
  
  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,str_1,REASON_RULE)
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}