--没电的时候勉强用手机写的 = = 顺便,本吧虽不拒绝伸手贴,但常驻本吧且能解决问题的大多为Lua项目组成员···一般都没空理这些的,所以Lz倒不如考虑一下学习神杀Lua,这里能解决问题的倒是有一群 LuaAnzhaoCard = sgs.CreateSkillCard{ name = "LuaAnzhaoCard", target_fixed = false, will_throw = false, filter = function(self, targets, to_select) return #targets ~= 1 end, on_effect = function(self, effect) local room = effect.from:getRoom() effect.to:obtainCard(self) for i = 1,effect.to:getHp() do if effect.to:isAllNude() then return false end local id = room:askForCardChosen(effect.from,effect.to,"hej",self:objectName()) room:throwCard(id,effect.to,effect.from) end end } LuaAnzhao = sgs.CreateViewAsSkill{ name = "LuaAnzhao", n = 1, view_filter = function(self, selected, to_select) return not to_select:isEquipped() end, view_as = function(self, cards) if #cards ~= 1 then return nil end local card = LuaAnzhaoCard:clone() card:addSubcard(cards[1]) return card end, enabled_at_play = function(self, player) return not player:hasUsed("#LuaAnzhaoCard") end }
——退保 LuaTuibao = sgs.CreateTriggerSkill{ name = "LuaTuibao", events = {sgs.TargetConfirming}, on_trigger = function(self, event, player, data) local room = player:getRoom() local use = data:toCardUse() if not player:isKongcheng() then if room:askForSkillInvoke(player,self:objectName()) then use.from:obtainCard(player:wholeHandCards()) local x = use.from:getHp() + player:getLostHp() for i = 1,x do if use.from:isAllNude() then return false end local id = room:askForCardChosen(player,use.from,"hej",self:objectName()) player:obtainCard(sgs.Sanguosha:getCard(id)) end end end end } ——完,敬请期待下次停电(刚发现反骨才写一半 = = )