Index: 19.Let's GaGaGa.lua ================================================================== --- 19.Let's GaGaGa.lua +++ 19.Let's GaGaGa.lua @@ -1,11 +1,10 @@ --[[message 卡数:27 规则:大师3 一起来我我我 ]] ---puzzle1 Debug.SetAIName("四妹") Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3) Debug.SetPlayerInfo(0,700,0,0) Debug.SetPlayerInfo(1,12200,0,0) @@ -28,13 +27,10 @@ Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN) Debug.AddCard(81816475,0,0,LOCATION_DECK,0,POS_FACEDOWN) Debug.AddCard(12298909,0,0,LOCATION_DECK,0,POS_FACEDOWN) Debug.AddCard(52105192,0,0,LOCATION_DECK,0,POS_FACEDOWN) Debug.AddCard(98494543,0,0,LOCATION_DECK,0,POS_FACEDOWN) ---~ Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN) ---~ Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN) ---~ Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN) Debug.AddCard(26082117,0,0,LOCATION_GRAVE,0,POS_FACEUP) Debug.AddCard(33420078,0,0,LOCATION_GRAVE,0,POS_FACEUP) Debug.AddCard(77334267,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) Debug.AddCard(92661479,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) Debug.AddCard(38495396,0,0,LOCATION_EXTRA,0,POS_FACEDOWN) @@ -53,15 +49,41 @@ g1:CompleteProcedure() Debug.AddCard(44095762,1,1,LOCATION_SZONE,1,POS_FACEDOWN) Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN) Debug.AddCard(44095762,1,1,LOCATION_SZONE,3,POS_FACEDOWN) Debug.ReloadFieldEnd() ---~ Debug.ShowHint("在这个回合取得胜利!") Debug.ShowHint("从卡组中选择六张卡加入手卡!") aux.BeginPuzzle() -local e999=Effect.GlobalEffect() -e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) -e999:SetCode(EVENT_DAMAGE) -e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end) -e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) -Debug.ShowHint("残局群181175613") end) -Duel.RegisterEffect(e999,0) +local str = {} +local fun = {} + +local cache_1 + +fun["通关邀请"] = function() + local effect_100 + effect_100 = Effect.GlobalEffect() + effect_100:SetType(EFFECT_TYPE_FIELD + + EFFECT_TYPE_CONTINUOUS) + effect_100:SetCode(EVENT_DAMAGE) + function cache_1() + + cache_1 = Duel.GetLP(1) + + if cache_1 <= 0 then + cache_1 = true + else + cache_1 = false + end + + return cache_1 + end + effect_100:SetCondition(cache_1) + function cache_1() + Debug.ShowHint("残局群181175613") + return + end + effect_100:SetOperation(cache_1) + Duel.RegisterEffect(effect_100 + , 0) + end + +fun["通关邀请"]() Index: 残局函数库/残局函数库.lua ================================================================== --- 残局函数库/残局函数库.lua +++ 残局函数库/残局函数库.lua @@ -29,7 +29,11 @@ end effect_100:SetOperation(cache_1) Duel.RegisterEffect(effect_100 , 0) end + +fun["开局添加手卡"] = function() + local effect_100 + end fun["通关邀请"]()