游戏王残局简化版

Annotation For NH-04_衍生-2.lua
Login

Annotation For NH-04_衍生-2.lua

Origin for each line in NH-04_衍生-2.lua from check-in 072e496e9f:

072e496e9f 2023-04-27    1: --[[message
072e496e9f 2023-04-27    2: 卡数:12
072e496e9f 2023-04-27    3: 规则:新大师
072e496e9f 2023-04-27    4: ]]
072e496e9f 2023-04-27    5: --By OURYGO-YGO EZ manager
072e496e9f 2023-04-27    6: Debug.SetAIName("棉花")
072e496e9f 2023-04-27    7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_PSEUDO_SHUFFLE+DUEL_SIMPLE_AI,4)
072e496e9f 2023-04-27    8: Debug.SetPlayerInfo(0,500,0,0)
072e496e9f 2023-04-27    9: Debug.SetPlayerInfo(1,30000,0,0)
072e496e9f 2023-04-27   10: local c=Debug.AddCard(55948544,1,1,LOCATION_EXTRA,0,POS_FACEUP_ATTACK) 
072e496e9f 2023-04-27   11: local n=0
072e496e9f 2023-04-27   12: 
072e496e9f 2023-04-27   13: function print_hand(e,tp,eg,ep,ev,re,r,rp)
072e496e9f 2023-04-27   14:   local ac=Duel.AnnounceCard(tp)
072e496e9f 2023-04-27   15:   local c=Duel.CreateToken(tp,ac)
072e496e9f 2023-04-27   16:   if n<3 then
072e496e9f 2023-04-27   17:     Duel.SendtoHand(c,nil,REASON_RULE)
072e496e9f 2023-04-27   18:     Duel.ShuffleHand(tp)
072e496e9f 2023-04-27   19:     n=n+1
072e496e9f 2023-04-27   20:   else
072e496e9f 2023-04-27   21:     if n==3 then
072e496e9f 2023-04-27   22:       Debug.ShowHint("印卡过多,审判降临!")
072e496e9f 2023-04-27   23:       Duel.SetLP(0,0)
072e496e9f 2023-04-27   24:     else
072e496e9f 2023-04-27   25:       n=n+1
072e496e9f 2023-04-27   26:       Duel.Remove(c,POS_FACEUP,REASON_RULE)
072e496e9f 2023-04-27   27:       Duel.SendtoDeck(c,tp,0,REASON_RULE)
072e496e9f 2023-04-27   28:     end
072e496e9f 2023-04-27   29:   end
072e496e9f 2023-04-27   30: end
072e496e9f 2023-04-27   31: 
072e496e9f 2023-04-27   32: local e1=Effect.CreateEffect(c)
072e496e9f 2023-04-27   33: e1:SetType(EFFECT_TYPE_IGNITION)
072e496e9f 2023-04-27   34: e1:SetProperty(EFFECT_FLAG_BOTH_SIDE)
072e496e9f 2023-04-27   35: e1:SetRange(LOCATION_EXTRA)
072e496e9f 2023-04-27   36: e1:SetOperation(print_hand)
072e496e9f 2023-04-27   37: c:RegisterEffect(e1)
072e496e9f 2023-04-27   38: 
072e496e9f 2023-04-27   39: Debug.AddCard(14558127,1,1,LOCATION_HAND,0,POS_FACEDOWN)
072e496e9f 2023-04-27   40: local
072e496e9f 2023-04-27   41: m1=Debug.AddCard(65403020,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   42: Debug.AddCard(67441435,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   43: Debug.AddCard(81035362,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   44: Debug.AddCard(86099788,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   45: Debug.AddCard(11366199,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   46: Debug.AddCard(41147577,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   47: Debug.AddCard(26268488,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   48: Debug.AddCard(17016362,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)
072e496e9f 2023-04-27   49: local
072e496e9f 2023-04-27   50: s1=Debug.AddCard(19508728,0,0,LOCATION_SZONE,2,POS_FACEUP)
072e496e9f 2023-04-27   51: Debug.PreEquip(s1,m1)
072e496e9f 2023-04-27   52: Debug.AddCard(68462976,1,1,LOCATION_SZONE,5,POS_FACEUP)
072e496e9f 2023-04-27   53: 
072e496e9f 2023-04-27   54: Debug.ReloadFieldEnd()
072e496e9f 2023-04-27   55: Debug.ShowHint("这是一个印卡残局,点击对方额外卡组可以发动《法老的审判》打印任意卡。\n只能打印3张卡到手卡或额外。")
072e496e9f 2023-04-27   56: --~ Debug.ShowHint("只能打印3张卡到手卡或额外")
072e496e9f 2023-04-27   57: aux.BeginPuzzle()
072e496e9f 2023-04-27   58: local e999=Effect.GlobalEffect()
072e496e9f 2023-04-27   59: e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
072e496e9f 2023-04-27   60: e999:SetCode(EVENT_DAMAGE)
072e496e9f 2023-04-27   61: e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
072e496e9f 2023-04-27   62: e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
072e496e9f 2023-04-27   63: Debug.ShowHint("残局群181175613") end)
072e496e9f 2023-04-27   64: Duel.RegisterEffect(e999,0)
072e496e9f 2023-04-27   65: 
072e496e9f 2023-04-27   66: 
072e496e9f 2023-04-27   67: 
072e496e9f 2023-04-27   68: