游戏王残局简化版

Annotation For MH01.lua
Login

Annotation For MH01.lua

Lines of MH01.lua from check-in 3dff221746 that are changed by the sequence of edits moving toward check-in f8a1b1a6a8:

                         1: --[[message
3dff221746 2023-04-17    2: 更新:2023-04-14
                         3: 卡数:19
                         4: 规则:大师2020
                         5: ]]
                         6: Debug.SetAIName("棉花")
                         7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,5)
                         8: Debug.SetPlayerInfo(0,100,0,0)
                         9: Debug.SetPlayerInfo(1,13400,0,0)
                        10: 
                        11: local e0=Effect.GlobalEffect()
                        12: e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
                        13: e0:SetCode(EVENT_ADJUST)
                        14: e0:SetCountLimit(1)
                        15: e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
                        16: e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
                        17: local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,5,5,nil)
                        18: if g:GetCount()>0 then
                        19:   Duel.SendtoHand(g,nil,REASON_RULE)
                        20: end end)
                        21: Duel.RegisterEffect(e0,0)
                        22: 
                        23: Debug.AddCard(18282103,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
                        24: Debug.AddCard(82888408,0,0,LOCATION_DECK,3,POS_FACEUP_ATTACK)
                        25: Debug.AddCard(24040093,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)
                        26: Debug.AddCard(82888408,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
                        27: Debug.AddCard(97439806,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)
                        28: Debug.AddCard(97439806,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
                        29: Debug.AddCard(57421866,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
                        30: Debug.AddCard(44155002,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        31: Debug.AddCard(39477584,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        32: Debug.AddCard(54048462,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        33: Debug.AddCard(47395382,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        34: Debug.AddCard(76774528,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        35: Debug.AddCard(76774528,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        36: Debug.AddCard(76774528,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        37: Debug.AddCard(12014404,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK)
                        38: Debug.AddCard(72328962,0,0,LOCATION_DECK,1,POS_FACEUP_ATTACK)
                        39: Debug.AddCard(19439119,0,0,LOCATION_DECK,2,POS_FACEUP_ATTACK)
                        40: --~ Debug.AddCard(82888408,0,0,LOCATION_DECK,3,POS_FACEUP_ATTACK)
                        41: --~ Debug.AddCard(24040093,0,0,LOCATION_DECK,4,POS_FACEUP_ATTACK)
                        42: Debug.AddCard(18282103,0,0,LOCATION_DECK,5,POS_FACEUP_ATTACK)
                        43: local m10=Debug.AddCard(90660762,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
                        44: local m11=Debug.AddCard(90660762,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
                        45: local m12=Debug.AddCard(90660762,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
                        46: Debug.AddCard(19665973,1,1,LOCATION_HAND,3,POS_FACEUP_ATTACK)
                        47: Debug.AddCard(89631139,1,1,LOCATION_HAND,4,POS_FACEUP_ATTACK)
                        48: 
                        49: 
                        50: Debug.ReloadFieldEnd()
                        51: 
                        52: local e1=Effect.GlobalEffect()
                        53: e1:SetType(EFFECT_TYPE_FIELD)
                        54: e1:SetCode(EFFECT_USE_EXTRA_MZONE)
                        55: e1:SetValue(1)
                        56: Duel.RegisterEffect(e1,0)
                        57: 
                        58: Debug.ShowHint("从卡组中选择五张卡加入手卡!")
                        59: 
                        60: aux.BeginPuzzle()
                        61: local e999=Effect.GlobalEffect()
                        62: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
                        63: e999:SetCode(EVENT_DAMAGE)
                        64: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
                        65: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
                        66: Debug.ShowHint("残局群181175613") end)
                        67: Duel.RegisterEffect(e999,0)
                        68: 
                        69: 
                        70: 
                        71: --~ local e1=Effect.GlobalEffect()
                        72: --~ e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
                        73: --~ e1:SetCode(EVENT_PHASE_START+PHASE_END)
                        74: --~ e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()==0 end)
                        75: --~ e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
                        76: --~ Debug.ShowHint("提示:等级偷窃虫") end)
                        77: --~ Duel.RegisterEffect(e1,0)