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