游戏王残局简化版

Check-in [15c47f6d38]
Login

Check-in [15c47f6d38]

Overview
Comment:0.0.2058
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 15c47f6d388e500d62d63f182661d57e8d0e51737b9d0fc902d3bf636bb7134d
User & Date: 顽雨沉风 on 2023-07-23 13:11:26
Other Links: manifest | tags
Context
2023-07-23
13:15
0.0.2059 check-in: b0d40f3f29 user: 顽雨沉风 tags: trunk
13:11
0.0.2058 check-in: 15c47f6d38 user: 顽雨沉风 tags: trunk
12:43
0.0.2057 check-in: 50b086ccf1 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [e8e2f0e1e6] to [775f09e967].

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
463
464
465
466
467
468
469

470

  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["失败得分"] = function() --{

str["方玩家的初始生命值优势"] = Duel.GetLP(0) - Duel.GetLP(1) + 100

  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(0) - Duel.GetLP(1) + 100
    cache_1 = math.tointeger(cache_1 / str["我方玩家的初始生命值优势"] * 3000 // 100 * 100)

--~     cache_1 = (Duel.GetLP(0) - Duel.GetLP(1) + 100) / str["我方玩家的初始生命值优势"] * 3000 // 100
--~     cache_1 = math.modf(cache_1)
    
    Debug.ShowHint(tostring(cache_1))
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)

  end --}








>
|
|









>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
>
|
|











>

>
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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["失败得分"] = function() --{
  
  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 --{
      
      --}
      
    else --{
      
      cache_1 = math.abs(cache_1)
      
      if cache_1 > str["对方玩家的初始生命值"] - 100 then --{
        
        --}
        
      else --{
        
        cache_1 = cache_1 / (str["对方玩家的初始生命值"] - 100)
        
        end --}
        
      --~         cache_1 = math.abs(cache_1) / (str["对方玩家的初始生命值"] - 100)
      
      end --}
      
    --~       cache_1 = cache_1
    --~     cache_1 = Duel.GetLP(0) - Duel.GetLP(1) + 100
    --~     cache_1 = math.tointeger(cache_1 / str["我方玩家的初始生命值优势"] * 3000 // 100 * 100)
    
    --~     cache_1 = (Duel.GetLP(0) - Duel.GetLP(1) + 100) / str["我方玩家的初始生命值优势"] * 3000 // 100
    --~     cache_1 = math.modf(cache_1)
    
    Debug.ShowHint(tostring(cache_1))
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}