游戏王残局简化版

Check-in [e2ad342343]
Login

Check-in [e2ad342343]

Overview
Comment:0.0.2055
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e2ad3423436ce97ad69c5a71887732e2315fdd0dd82af752df5799a32d2a6d4a
User & Date: 顽雨沉风 on 2023-07-23 12:39:06
Other Links: manifest | tags
Context
2023-07-23
12:39
0.0.2056 check-in: dfe06c7145 user: 顽雨沉风 tags: trunk
12:39
0.0.2055 check-in: e2ad342343 user: 顽雨沉风 tags: trunk
12:27
0.0.2054 check-in: 32746d1989 user: 顽雨沉风 tags: trunk
Changes

Modified script/c0.lua from [2890a37ad7] to [aa1209b04e].

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
  
  Duel.RegisterEffect(str["效果"]
  , 0)
  
  end --}
  
fun["失败得分"] = function() --{
str["我方玩家的初始生命值优势"] = Duel.GetLP(0) - 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(0) - Duel.GetLP(1)) / str["我方玩家的初始生命值优势"] * 3000


    Debug.ShowHint(tostring(cache_1))
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)
  







|











|
>
>
|







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
  
  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) / str["我方玩家的初始生命值优势"] * 3000
--~     cache_1 = math.modf(cache_1)
    
    Debug.ShowHint(tostring(cache_1 // 3000))
    
    effect_event:Reset()
    
    end --}
    
  str["效果"]:SetOperation(cache_1)