游戏王残局简化版

Annotation For 30.Inhuman Unicore.lua
Login

Annotation For 30.Inhuman Unicore.lua

Origin for each line in 30.Inhuman Unicore.lua from check-in 18c7f0599a:

3dff221746 2023-04-17    1: --[[message
3dff221746 2023-04-17    2: 卡数:53
3dff221746 2023-04-17    3: 规则:大师3
3dff221746 2023-04-17    4: 毫无人性的尤尼科
3dff221746 2023-04-17    5: ]]
3dff221746 2023-04-17    6: --puzzle1
3dff221746 2023-04-17    7: Debug.SetAIName("四妹")
3dff221746 2023-04-17    8: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
3dff221746 2023-04-17    9: Debug.SetPlayerInfo(0,2100,0,0)
3dff221746 2023-04-17   10: Debug.SetPlayerInfo(1,33400,0,0)
3dff221746 2023-04-17   11: 
18c7f0599a 2023-06-26   12: --~ local e0=Effect.GlobalEffect()
18c7f0599a 2023-06-26   13: --~ e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
18c7f0599a 2023-06-26   14: --~ e0:SetCode(EVENT_ADJUST)
18c7f0599a 2023-06-26   15: --~ e0:SetCountLimit(1)
18c7f0599a 2023-06-26   16: --~ e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
18c7f0599a 2023-06-26   17: --~ e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
18c7f0599a 2023-06-26   18: --~ local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,5,5,nil)
18c7f0599a 2023-06-26   19: --~ if g:GetCount()>0 then
18c7f0599a 2023-06-26   20: --~   Duel.SendtoHand(g,nil,REASON_RULE)
18c7f0599a 2023-06-26   21: --~ end end)
18c7f0599a 2023-06-26   22: --~ Duel.RegisterEffect(e0,0)
3dff221746 2023-04-17   23: 
3dff221746 2023-04-17   24: Debug.AddCard(85605684,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   25: Debug.AddCard(37742478,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   26: Debug.AddCard(37011715,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   27: Debug.AddCard(49267971,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   28: Debug.AddCard(6850209,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   29: Debug.AddCard(98045062,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   30: Debug.AddCard(31829185,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   31: Debug.AddCard(23434538,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   32: Debug.AddCard(1475311,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   33: Debug.AddCard(24508238,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   34: Debug.AddCard(9622164,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   35: Debug.AddCard(72989439,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   36: Debug.AddCard(51630558,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   37: Debug.AddCard(64034255,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   38: Debug.AddCard(41442341,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   39: Debug.AddCard(19439119,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   40: Debug.AddCard(72892473,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   41: Debug.AddCard(97651498,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   42: Debug.AddCard(3972721,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   43: Debug.AddCard(38737148,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   44: Debug.AddCard(74848038,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   45: Debug.AddCard(56399890,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   46: Debug.AddCard(97439806,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   47: --~ Debug.AddCard(19439119,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   48: --~ Debug.AddCard(72892473,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   49: --~ Debug.AddCard(97651498,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   50: Debug.AddCard(14198496,0,0,LOCATION_DECK,0,POS_FACEDOWN)
3dff221746 2023-04-17   51: Debug.AddCard(50091196,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
3dff221746 2023-04-17   52: Debug.AddCard(44155002,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
3dff221746 2023-04-17   53: Debug.AddCard(38354937,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
3dff221746 2023-04-17   54: Debug.AddCard(37910722,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
3dff221746 2023-04-17   55: Debug.AddCard(42956963,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
3dff221746 2023-04-17   56: Debug.AddCard(50933533,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   57: Debug.AddCard(4906301,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   58: Debug.AddCard(88305978,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   59: Debug.AddCard(12275533,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   60: Debug.AddCard(44330098,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   61: Debug.AddCard(64605089,1,1,LOCATION_DECK,0,POS_FACEUP)
3dff221746 2023-04-17   62: Debug.AddCard(86039057,1,1,LOCATION_HAND,0,POS_FACEUP)
3dff221746 2023-04-17   63: Debug.AddCard(95360850,1,1,LOCATION_HAND,0,POS_FACEUP)
3dff221746 2023-04-17   64: Debug.AddCard(82593786,1,1,LOCATION_HAND,0,POS_FACEUP)
3dff221746 2023-04-17   65: Debug.AddCard(45118716,1,1,LOCATION_HAND,0,POS_FACEUP)
3dff221746 2023-04-17   66: Debug.AddCard(14017402,1,1,LOCATION_EXTRA,0,POS_FACEDOWN)
3dff221746 2023-04-17   67: Debug.AddCard(80208158,1,1,LOCATION_GRAVE,0,POS_FACEUP)
3dff221746 2023-04-17   68: Debug.AddCard(23899727,1,1,LOCATION_GRAVE,0,POS_FACEUP)
3dff221746 2023-04-17   69: Debug.AddCard(26593852,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK,true)
3dff221746 2023-04-17   70: Debug.AddCard(10248389,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK,true)
3dff221746 2023-04-17   71: Debug.AddCard(71203602,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK,true)
3dff221746 2023-04-17   72: local m2=Debug.AddCard(59170782,1,1,LOCATION_MZONE,2,POS_FACEUP_DEFENSE,true)
3dff221746 2023-04-17   73: local s2=Debug.AddCard(8719957,1,1,LOCATION_SZONE,2,POS_FACEUP)
3dff221746 2023-04-17   74: Debug.PreEquip(s2,m2)
3dff221746 2023-04-17   75: Debug.AddCard(58120309,1,1,LOCATION_SZONE,0,POS_FACEDOWN)
3dff221746 2023-04-17   76: Debug.AddCard(70284332,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
3dff221746 2023-04-17   77: Debug.AddCard(59695933,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
3dff221746 2023-04-17   78: Debug.AddCard(48130397,1,1,LOCATION_SZONE,4,POS_FACEDOWN)
3dff221746 2023-04-17   79: Debug.AddCard(37694547,1,1,LOCATION_SZONE,5,POS_FACEUP)
3dff221746 2023-04-17   80: Debug.ReloadFieldEnd()
3dff221746 2023-04-17   81: aux.BeginPuzzle()
18c7f0599a 2023-06-26   82: --~ local e999=Effect.GlobalEffect()
18c7f0599a 2023-06-26   83: --~ e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
18c7f0599a 2023-06-26   84: --~ e999:SetCode(EVENT_DAMAGE)
18c7f0599a 2023-06-26   85: --~ e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
18c7f0599a 2023-06-26   86: --~ e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
18c7f0599a 2023-06-26   87: --~ Debug.ShowHint("残局群181175613") end)
18c7f0599a 2023-06-26   88: --~ Duel.RegisterEffect(e999,0)
18c7f0599a 2023-06-26   89: 
18c7f0599a 2023-06-26   90: local str = {}
18c7f0599a 2023-06-26   91: local fun = {}
18c7f0599a 2023-06-26   92: 
18c7f0599a 2023-06-26   93: local cache_1
18c7f0599a 2023-06-26   94: local cache_2
18c7f0599a 2023-06-26   95: 
18c7f0599a 2023-06-26   96: fun["通关邀请"] = function()
18c7f0599a 2023-06-26   97:   local effect_1
18c7f0599a 2023-06-26   98:   effect_1 = Effect.GlobalEffect()
18c7f0599a 2023-06-26   99:   effect_1:SetType(EFFECT_TYPE_FIELD
18c7f0599a 2023-06-26  100:     + EFFECT_TYPE_CONTINUOUS)
18c7f0599a 2023-06-26  101:   effect_1:SetCode(EVENT_DAMAGE)
18c7f0599a 2023-06-26  102:   function cache_1()
18c7f0599a 2023-06-26  103:     cache_1 = Duel.GetLP(1)
18c7f0599a 2023-06-26  104:     if cache_1 <= 0 then
18c7f0599a 2023-06-26  105:       cache_1 = true
18c7f0599a 2023-06-26  106:     else
18c7f0599a 2023-06-26  107:       cache_1 = false
18c7f0599a 2023-06-26  108:       end
18c7f0599a 2023-06-26  109:     return cache_1
18c7f0599a 2023-06-26  110:     end
18c7f0599a 2023-06-26  111:   effect_1:SetCondition(cache_1)
18c7f0599a 2023-06-26  112:   function cache_1()
18c7f0599a 2023-06-26  113:     Debug.ShowHint("残局群181175613")
18c7f0599a 2023-06-26  114:     return
18c7f0599a 2023-06-26  115:     end
18c7f0599a 2023-06-26  116:   effect_1:SetOperation(cache_1)
18c7f0599a 2023-06-26  117:   Duel.RegisterEffect(effect_1
18c7f0599a 2023-06-26  118:     , 0)
18c7f0599a 2023-06-26  119:   end
18c7f0599a 2023-06-26  120: 
18c7f0599a 2023-06-26  121: fun["开局添加手卡"] = function(str_1)
18c7f0599a 2023-06-26  122:   local effect_1
18c7f0599a 2023-06-26  123:   effect_1 = Effect.GlobalEffect()
18c7f0599a 2023-06-26  124:   effect_1:SetType(EFFECT_TYPE_FIELD
18c7f0599a 2023-06-26  125:     + EFFECT_TYPE_CONTINUOUS)
18c7f0599a 2023-06-26  126:   effect_1:SetCode(EVENT_ADJUST)
18c7f0599a 2023-06-26  127:   effect_1:SetCountLimit(1)
18c7f0599a 2023-06-26  128:   function cache_1()
18c7f0599a 2023-06-26  129:     return true
18c7f0599a 2023-06-26  130:     end
18c7f0599a 2023-06-26  131:   effect_1:SetCondition(cache_1)
18c7f0599a 2023-06-26  132:   function cache_1(effect_event
18c7f0599a 2023-06-26  133:     , player_who_activate_the_effect)
18c7f0599a 2023-06-26  134:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
18c7f0599a 2023-06-26  135:        , Card.IsAbleToHand
18c7f0599a 2023-06-26  136:        , player_who_activate_the_effect
18c7f0599a 2023-06-26  137:        , LOCATION_DECK
18c7f0599a 2023-06-26  138:        , 0
18c7f0599a 2023-06-26  139:        , str_1
18c7f0599a 2023-06-26  140:        , str_1
18c7f0599a 2023-06-26  141:        , nil)
18c7f0599a 2023-06-26  142:     Duel.SendtoHand(str["玩家选定的卡"]
18c7f0599a 2023-06-26  143:       , nil
18c7f0599a 2023-06-26  144:       , REASON_RULE)
18c7f0599a 2023-06-26  145:     end
18c7f0599a 2023-06-26  146:   effect_1:SetOperation(cache_1)
18c7f0599a 2023-06-26  147:   Duel.RegisterEffect(effect_1
18c7f0599a 2023-06-26  148:     , 0)
18c7f0599a 2023-06-26  149:   end
18c7f0599a 2023-06-26  150: 
18c7f0599a 2023-06-26  151: fun["通关邀请"]()
18c7f0599a 2023-06-26  152: fun["开局添加手卡"](5)
18c7f0599a 2023-06-26  153: 
18c7f0599a 2023-06-26  154: