游戏王残局简化版

Check-in [89674b235f]
Login

Check-in [89674b235f]

Overview
Comment:0.0.2454
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 89674b235f6e9533ea0104b24921e8b15d20a2c77425fd53a4ee0f7710887ccf
User & Date: 顽雨沉风 on 2023-08-02 02:04:58
Other Links: manifest | tags
Context
2023-08-02
02:05
0.0.2455 check-in: 76d31290b8 user: 顽雨沉风 tags: trunk
02:04
0.0.2454 check-in: 89674b235f user: 顽雨沉风 tags: trunk
02:04
0.0.2453 check-in: e883722fe2 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [f306fd12b8] to [aa01224090].

335
336
337
338
339
340
341















































































342
343
344
345
346
347
348
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







local cache_5
local cache_6
local cache_7
local cache_8
local cache_9

local _

fun["印卡"] = function(str_1, str_2, str_3) --{
  
  if str_3 then --{
    
    --}
    
  else --{
    
    str_3 = str_2
    
    end --}
    
  Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
  .. str_2
  .. " 张。\n最多可以印 "
  .. str_3
  .. " 张")
  
  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)
  
  str["效果"]:SetTarget(fun["一_该效果不能被连锁"])
  
  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
    , announce_card)
    
    if str["当前印卡数"] <= str_2 then --{
      
      str["当前印卡数"] = str["当前印卡数"] + 1
      
      Duel.SendtoHand(card,nil,REASON_RULE)
      
      --}
      
    else --{
      
      if str["当前印卡数"] <= str_3 then --{
        
        str["当前印卡数"] = str["当前印卡数"] + 1
        
        Duel.Remove(card,POS_FACEUP,REASON_RULE)
        
        Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
        
        --}
        
      else --{
        
        Debug.ShowHint("印卡过多!")
        
        effect_event:Reset()
        
        end --}
        
      end --}
      
    end --}
    
  str["效果"]:SetOperation(print_hand)
  
  str_1:RegisterEffect(str["效果"])
  
  end --}

fun["二_开局说明"] = function() --{
  
  str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
  , 0
  , str["所有区域"]
  , str["所有区域"]
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
586
587
588
589
579
580
581
582
583
584
585


586


587


588


589


590


591














































































-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
  end --}
  

  


  
fun["印卡"] = function(str_1, str_2, str_3) --{
  

  if str_3 then --{
    
  
    --}
    

  else --{
    
  
    str_3 = str_2
    

    end --}
    
  
  Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
  .. str_2
  .. " 张。\n最多可以印 "
  .. str_3
  .. " 张")
  
  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)
  
  str["效果"]:SetTarget(fun["该效果不能被连锁"])
  
  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
    , announce_card)
    
    if str["当前印卡数"] <= str_2 then --{
      
      str["当前印卡数"] = str["当前印卡数"] + 1
      
      Duel.SendtoHand(card,nil,REASON_RULE)
      
      --}
      
    else --{
      
      if str["当前印卡数"] <= str_3 then --{
        
        str["当前印卡数"] = str["当前印卡数"] + 1
        
        Duel.Remove(card,POS_FACEUP,REASON_RULE)
        
        Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
        
        --}
        
      else --{
        
        Debug.ShowHint("印卡过多!")
        
        effect_event:Reset()
        
        end --}
        
      end --}
      
    end --}
    
  str["效果"]:SetOperation(print_hand)
  
  str_1:RegisterEffect(str["效果"])
  
  end --}