游戏王残局简化版

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 bbc6711f61:

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