游戏王残局简化版

Annotation For X-LV-50.lua
Login

Annotation For X-LV-50.lua

Origin for each line in X-LV-50.lua from check-in f8a1b1a6a8:

3dff221746 2023-04-17    1: --[[message
3dff221746 2023-04-17    2: 卡数:1
3dff221746 2023-04-17    3: 规则:新大师
3dff221746 2023-04-17    4: ]]
3dff221746 2023-04-17    5: --created by puzzle editor
3dff221746 2023-04-17    6: Debug.SetAIName("顽雨沉风")
3dff221746 2023-04-17    7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
3dff221746 2023-04-17    8: Debug.SetPlayerInfo(0,100,0,0)
3dff221746 2023-04-17    9: Debug.SetPlayerInfo(1,5950,0,0)
3dff221746 2023-04-17   10: 
3dff221746 2023-04-17   11: local c=Debug.AddCard(5758500,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK) 
3dff221746 2023-04-17   12: local n=0
3dff221746 2023-04-17   13: 
3dff221746 2023-04-17   14: function print_hand(e,tp,eg,ep,ev,re,r,rp)
3dff221746 2023-04-17   15:   local ac=Duel.AnnounceCard(tp)
3dff221746 2023-04-17   16:   local c=Duel.CreateToken(tp,ac)
3dff221746 2023-04-17   17:   if n<1 then
3dff221746 2023-04-17   18:     Duel.SendtoHand(c,nil,REASON_RULE)
3dff221746 2023-04-17   19:     Duel.ShuffleHand(tp)
3dff221746 2023-04-17   20:     n=n+1
3dff221746 2023-04-17   21:   else
3dff221746 2023-04-17   22:     if n==1 then
3dff221746 2023-04-17   23:       Debug.ShowHint("印卡过多,审判降临!")
3dff221746 2023-04-17   24:       Duel.SetLP(0,0)
3dff221746 2023-04-17   25:     else
3dff221746 2023-04-17   26:       n=n+1
3dff221746 2023-04-17   27:       Duel.Remove(c,POS_FACEUP,REASON_RULE)
3dff221746 2023-04-17   28:       Duel.SendtoDeck(c,tp,0,REASON_RULE)
3dff221746 2023-04-17   29:     end
3dff221746 2023-04-17   30:   end
3dff221746 2023-04-17   31: end
3dff221746 2023-04-17   32: 
3dff221746 2023-04-17   33: local e1=Effect.CreateEffect(c)
3dff221746 2023-04-17   34: e1:SetType(EFFECT_TYPE_IGNITION)
3dff221746 2023-04-17   35: e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
3dff221746 2023-04-17   36: e1:SetRange(LOCATION_EXTRA)
3dff221746 2023-04-17   37: e1:SetOperation(print_hand)
3dff221746 2023-04-17   38: c:RegisterEffect(e1)
3dff221746 2023-04-17   39: 
3dff221746 2023-04-17   40: 
3dff221746 2023-04-17   41: local c16=Debug.AddCard(27288416,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   42: --~ e16=Effect.CreateEffect(c16)
3dff221746 2023-04-17   43: --~ e16:SetType(EFFECT_TYPE_SINGLE)
3dff221746 2023-04-17   44: --~ e16:SetCode(EFFECT_UPDATE_ATTACK)
3dff221746 2023-04-17   45: --~ e16:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
3dff221746 2023-04-17   46: --~ e16:SetValue(-29700)
3dff221746 2023-04-17   47: --~ c16:RegisterEffect(e16)
3dff221746 2023-04-17   48: 
3dff221746 2023-04-17   49: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   50: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   51: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   52: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   53: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   54: local c16=Debug.AddCard(27288416,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   55: --~ local c16=Debug.AddCard(7902349,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   56: --~ local c16=Debug.AddCard(8124921,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   57: --~ local c16=Debug.AddCard(44519536,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   58: --~ local c16=Debug.AddCard(70903634,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   59: --~ local c16=Debug.AddCard(33396948,1,1,LOCATION_DECK,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   60: 
3dff221746 2023-04-17   61: Debug.AddCard(20129614,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
3dff221746 2023-04-17   62: 
3dff221746 2023-04-17   63: Debug.ReloadFieldEnd()
3dff221746 2023-04-17   64: 
3dff221746 2023-04-17   65: aux.BeginPuzzle()
3dff221746 2023-04-17   66: local e999=Effect.GlobalEffect()
3dff221746 2023-04-17   67: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
3dff221746 2023-04-17   68: e999:SetCode(EVENT_DAMAGE)
3dff221746 2023-04-17   69: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
3dff221746 2023-04-17   70: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
3dff221746 2023-04-17   71: Debug.ShowHint("残局群181175613") end)
3dff221746 2023-04-17   72: Duel.RegisterEffect(e999,0)
3dff221746 2023-04-17   73: 
3dff221746 2023-04-17   74: Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《魂之解放》打印任意卡!\n只能打印1张卡到手卡或额外卡组!")
3dff221746 2023-04-17   75: --~ Debug.ShowHint("只能打印1张卡到手卡或额外卡组!")
3dff221746 2023-04-17   76: --~ Debug.ShowHint("场上的怪兽攻击力已改变!")