太阳神三国杀lua吧 关注:2,639贴子:73,405
  • 40回复贴,共1

求大神帮忙制作技能,0224版本的

只看楼主收藏回复

求大神帮忙制作技能,0224版本的,给个思路也行!!
技能1:回合开始阶段和回合结束阶段开始时,你可以观看牌堆顶上2张牌,弃置或按原次序放回牌堆顶
技能2:当你使用的【杀】被闪避后,可以进行判定,若为红色,则仍然有效(贯石斧)
技能3:出牌阶段,你可令两名角色拼点,赢的对没赢的造成一点伤害,每阶段限用一次!
技能4:若你在出牌阶段没有使用【杀】,本回合手牌上限为20张
多谢多谢


IP属地:北京1楼2013-08-30 18:06回复
    坐等大神


    IP属地:北京2楼2013-08-30 18:07
    回复
      技能1,弃置是指2张都弃置么?


      IP属地:江苏3楼2013-08-30 18:09
      收起回复
        技能2
        GuanchuanSkill = sgs.CreateTriggerSkill{
        name = "GuanchuanSkill",
        frequency = sgs.Skill_NotFrequent,
        events = {sgs.SlashMissed},
        on_trigger = function(self, event, player, data)
        local room = player:getRoom()
        local effect = data:toSlashEffect()
        local dest = effect.to
        if dest:isAlive() then
        if not room:askForSkillInvoke(player, self:objectName(),data) then return false end
        local judge = sgs.JudgeStruct()
        judge.pattern = sgs.QRegExp("(.*):(heart|diamond):(.*)")
        judge.good = true
        judge.reason = self:objectName()
        judge.who = player
        room:judge(judge)
        if judge:isGood() then
        room:setEmotion(dest, "weapon/axe")
        room:slashResult(effect, nil)
        end
        end
        return false
        end
        }


        IP属地:江苏4楼2013-08-30 20:16
        回复
          技能4
          Luakeji = sgs.CreateTriggerSkill{
          name = "Luakeji",
          frequency = sgs.Skill_Frequent,
          events = {sgs.CardResponsed},
          on_trigger = function(self, event, player, data)
          local phase = player:getPhase()
          if phase == sgs.Player_Play then
          local card = data:toResponsed().m_card
          if card:isKindOf("Slash") then
          player:setFlags("keji_use_slash")
          end
          end
          return false;
          end
          }
          Luakejibuffer = sgs.CreateMaxCardsSkill{
          name = "#Luakeji",
          extra_func = function(self, target)
          if target:hasSkill(self:objectName()) and not target:hasFlags("keji_use_slash") then
          return 20 - target:getHp()
          end
          end
          }


          IP属地:江苏5楼2013-08-30 20:29
          收起回复


            IP属地:北京6楼2013-09-01 21:11
            收起回复
              everything = sgs.CreateTriggerSkill{
              name="everything",
              events = {sgs.EventPhaseStart},
              on_trigger = function(self,event,player,data)
              local room = player:getRoom()
              if player:getPhase() == sgs.Player_Start
              or player:getPhase() == sgs.Player_Finish then
              if not player:askForSkillInvoke(self:objectName()) then return end
              local ids = room:getNCards(2, false)
              local card = sgs.Sanguosha:cloneCard("jink")
              local moves = {}
              for _, id in sgs.qlist(ids) do table.insert(moves, id) end
              local unmoves = sgs.reverse(moves)
              for _, id in ipairs(unmoves) do card:addSubcard(id) end
              room:fillAG(ids, player)
              if room:askForChoice(player,self:objectName(),"throwqp+putmp")=="throwqp" then
              room:throwCard(card,nil)
              else
              player:addToPile("#everything", card, false) --权宜之计
              room:moveCardTo(card, nil, sgs.Player_DrawPile, false)
              end
              player:invoke("clearAG")
              end
              end
              }


              7楼2013-09-02 10:07
              收起回复
                →_→三我写过


                IP属地:江苏来自Android客户端8楼2013-09-03 10:43
                回复
                  一技能



                  IP属地:江苏9楼2013-09-03 13:00
                  收起回复
                    技能3




                    IP属地:江苏10楼2013-09-03 13:10
                    回复