贴吧用户_0V343Q3 -
路过围观竟躺着中枪,时耶,命耶?
关注数: 34 粉丝数: 74 发帖数: 4,135 关注贴吧数: 47
为了纪念移动三国杀的bug, 特地发布一段lua。 luatuxi_card = sgs.CreateSkillCard {--ͻϮ¼¼ÄÜ¿¨ by ibicdlcod name = "luatuxi", target_fixed = false, will_throw = false, filter = function(self, targets, to_select) if(#targets > 1) then return false end if(to_select == self) then return false end return not to_select:isKongcheng() end, on_use = function(self, room,source,targets) local to = targets[1] local poorboy= targets[2] local card_id = room:askForCardChosen(source, to, "h", "luatuxi_main") local card = sgs.Sanguosha:getCard(card_id) room:moveCardTo(card, source, sgs.Player_Hand, false) while not poorboy:isKongcheng() do local card_ids = room:askForCardChosen(source, poorboy, "h", "luatuxi_main") local cards = sgs.Sanguosha:getCard(card_ids) room:moveCardTo(cards, source, sgs.Player_Hand, false) end room:setEmotion(poorboy, "bad") room:setEmotion(to, "bad") room:setEmotion(source, "good") end, } luatuxi_viewas = sgs.CreateViewAsSkill {--突袭视为技 by ibicdlcod name = "luatuxi_viewas", n = 0, view_as = function() return luatuxi_card:clone() end, enabled_at_play = function() return false end, enabled_at_response = function(self, player, pattern) return pattern == "@@luatuxi_main" end } luatuxi_main = sgs.CreateTriggerSkill {--突袭 by ibicdlcod name = "luatuxi_main", view_as_skill = luatuxi_viewas, events = {sgs.PhaseChange}, on_trigger = function(self, event, player, data) if(player:getPhase() == sgs.Player_Draw) then local room = player:getRoom() local can_invoke = false local other = room:getOtherPlayers(player) for _,aplayer in sgs.qlist(other) do if(not aplayer:isKongcheng()) then can_invoke = true break end end if(not room:askForSkillInvoke(player, "luatuxi_main")) then return false end if(can_invoke and room:askForUseCard(player, "@@luatuxi_main", "@luatuxi_card")) then return true end return false end end }
首页 1 2 3 4 5 6 下一页