游戏王残局简化版

Annotation For 残局函数库.lua
Login

Annotation For 残局函数库.lua

Origin for each line in 残局函数库.lua from check-in e7f204fb3d:

e7f204fb3d 2023-06-29  顽雨沉风: 
e7f204fb3d 2023-06-29  顽雨沉风: local str = {}
e7f204fb3d 2023-06-29  顽雨沉风: local fun = {}
e7f204fb3d 2023-06-29  顽雨沉风: 
e7f204fb3d 2023-06-29  顽雨沉风: local cache_1
e7f204fb3d 2023-06-29  顽雨沉风: local cache_2
e7f204fb3d 2023-06-29  顽雨沉风: 
e7f204fb3d 2023-06-29  顽雨沉风: fun["通关邀请"] = function()
e7f204fb3d 2023-06-29  顽雨沉风:   local effect_1
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1 = Effect.GlobalEffect()
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetType(EFFECT_TYPE_FIELD
e7f204fb3d 2023-06-29  顽雨沉风:     + EFFECT_TYPE_CONTINUOUS)
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetCode(EVENT_DAMAGE)
e7f204fb3d 2023-06-29  顽雨沉风:   function cache_1()
e7f204fb3d 2023-06-29  顽雨沉风:     cache_1 = Duel.GetLP(1)
e7f204fb3d 2023-06-29  顽雨沉风:     if cache_1 <= 0 then
e7f204fb3d 2023-06-29  顽雨沉风:       cache_1 = true
e7f204fb3d 2023-06-29  顽雨沉风:     else
e7f204fb3d 2023-06-29  顽雨沉风:       cache_1 = false
e7f204fb3d 2023-06-29  顽雨沉风:       end
e7f204fb3d 2023-06-29  顽雨沉风:     return cache_1
e7f204fb3d 2023-06-29  顽雨沉风:     end
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetCondition(cache_1)
e7f204fb3d 2023-06-29  顽雨沉风:   function cache_1()
e7f204fb3d 2023-06-29  顽雨沉风:     Debug.ShowHint("残局群181175613")
e7f204fb3d 2023-06-29  顽雨沉风:     return
e7f204fb3d 2023-06-29  顽雨沉风:     end
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetOperation(cache_1)
e7f204fb3d 2023-06-29  顽雨沉风:   Duel.RegisterEffect(effect_1
e7f204fb3d 2023-06-29  顽雨沉风:     , 0)
e7f204fb3d 2023-06-29  顽雨沉风:   end
e7f204fb3d 2023-06-29  顽雨沉风: 
e7f204fb3d 2023-06-29  顽雨沉风: fun["开局添加手卡"] = function(str_1)
e7f204fb3d 2023-06-29  顽雨沉风:   local effect_1
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1 = Effect.GlobalEffect()
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetType(EFFECT_TYPE_FIELD
e7f204fb3d 2023-06-29  顽雨沉风:     + EFFECT_TYPE_CONTINUOUS)
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetCode(EVENT_ADJUST)
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetCountLimit(1)
e7f204fb3d 2023-06-29  顽雨沉风:   function cache_1()
e7f204fb3d 2023-06-29  顽雨沉风:     return true
e7f204fb3d 2023-06-29  顽雨沉风:     end
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetCondition(cache_1)
e7f204fb3d 2023-06-29  顽雨沉风:   function cache_1(effect_event
e7f204fb3d 2023-06-29  顽雨沉风:     , player_who_activate_the_effect)
e7f204fb3d 2023-06-29  顽雨沉风:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
e7f204fb3d 2023-06-29  顽雨沉风:        , Card.IsAbleToHand
e7f204fb3d 2023-06-29  顽雨沉风:        , player_who_activate_the_effect
e7f204fb3d 2023-06-29  顽雨沉风:        , LOCATION_DECK
e7f204fb3d 2023-06-29  顽雨沉风:        , 0
e7f204fb3d 2023-06-29  顽雨沉风:        , str_1
e7f204fb3d 2023-06-29  顽雨沉风:        , str_1
e7f204fb3d 2023-06-29  顽雨沉风:        , nil)
e7f204fb3d 2023-06-29  顽雨沉风:     Duel.SendtoHand(str["玩家选定的卡"]
e7f204fb3d 2023-06-29  顽雨沉风:       , nil
e7f204fb3d 2023-06-29  顽雨沉风:       , REASON_RULE)
e7f204fb3d 2023-06-29  顽雨沉风:     end
e7f204fb3d 2023-06-29  顽雨沉风:   effect_1:SetOperation(cache_1)
e7f204fb3d 2023-06-29  顽雨沉风:   Duel.RegisterEffect(effect_1
e7f204fb3d 2023-06-29  顽雨沉风:     , 0)
e7f204fb3d 2023-06-29  顽雨沉风:   end
e7f204fb3d 2023-06-29  顽雨沉风: 
e7f204fb3d 2023-06-29  顽雨沉风: fun["通关邀请"]()
e7f204fb3d 2023-06-29  顽雨沉风: fun["开局添加手卡"](1)
e7f204fb3d 2023-06-29  顽雨沉风: