Index: sample1.lua ================================================================== --- sample1.lua +++ sample1.lua @@ -24,5 +24,13 @@ Debug.AddCard(70342110,1,1,LOCATION_SZONE,2,POS_FACEDOWN) Debug.AddCard(97077563,1,1,LOCATION_SZONE,3,POS_FACEDOWN) Debug.ReloadFieldEnd() 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) Index: sample2.lua ================================================================== --- sample2.lua +++ sample2.lua @@ -25,5 +25,13 @@ Debug.AddCard(16527176,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK) Debug.ReloadFieldEnd() 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)