仙剑5吧 关注:124,879贴子:6,469,918
  • 81回复贴,共1

【求助】学习仙五前脚本,有几个问题请教各位吧友

只看楼主收藏回复

一楼怀念我被虐仙五前传初体验


IP属地:广东1楼2013-02-17 15:12回复
    剧情对话应该怎么设置,不是像普通npc的那种,是发生剧情的那种主角有头像的对话。设置好剧情点,然后跟我创建的新npc触发一段很短的剧情,就是简单的对话,最后npc消失。有没有大神给点提示??


    IP属地:广东3楼2013-02-17 15:20
    收起回复
      2025-07-18 08:49:08
      广告
      自挽,有谁告诉我应该@谁啊?
      @mayafei
      @剑笔小生
      @无面天使


      IP属地:广东4楼2013-02-17 15:27
      收起回复
        好像很厉害的样子


        IP属地:浙江来自Android客户端5楼2013-02-17 17:22
        收起回复
          自己结合场景去找相应的脚本看注释。5Q的注释蛮丰富的,信息量不错。


          6楼2013-02-17 17:25
          收起回复
            function n3301_touch(npcId)
            xz=flag.GetValue(6001) --主线旗标
            local n=flag.GetValue(22222)
            if n==0 thenglobal.BeginScene()
            ui.Dialog(90072,0,0,715,0,0)
            ui.Dialog(90073,0,0,1,0,0)
            ui.Dialog(90074,0,0,715,0,0)
            ui.Dialog(90075,0,0,715,0,0)
            ui.Dialog(90076,0,0,715,0,0)
            ui.Dialog(90077,0,0,715,0,0)
            global.EndScene()
            flag.SetValue(22222,1)
            elseif n==1 then
            rx=battle.GetRndNumber(1,5)
            if (rx==1 or rx==4 or rx==5)
            thenui.Popo(90078,1,npcId,0)
            elseif rx==2 then
            ui.Popo(90073,1,npcId,0)
            elseif rx==3 thenui.Popo(90079,1,npcId,0)
            end
            end
            player.AddTitleList(6052,1) if player.GetTitleStat(6052)~=1 then player.AddEquip(6052,1,1) player.AddTitleList(6052,1)
            end
            end


            IP属地:广东7楼2013-02-17 21:34
            收起回复
              这样看起来好看点,再看看有啥问题@大港口舰:
              function n3301_touch(npcId)
              xz=flag.GetValue(6001) --主线旗标
              local n=flag.GetValue(22222)
              if n==0 then
              ui.Dialog(90072,0,0,715,0,0)
              ui.Dialog(90073,0,0,1,0,0)
              ui.Dialog(90074,0,0,715,0,0)
              ui.Dialog(90075,0,0,715,0,0)
              ui.Dialog(90076,0,0,715,0,0)
              ui.Dialog(90077,0,0,715,0,0)
              flag.SetValue(22222,1)
              player.AddTitleList(6052,1)
              if player.GetTitleStat(6052)~=1 then
              player.AddEquip(6052,1,1)
              player.AddTitleList(6052,1)
              end
              elseif n==1 then
              rx=battle.GetRndNumber(1,5)
              if (rx==1 or rx==4 or rx==5) then
              ui.Popo(90078,1,npcId,0)
              elseif rx==2 then
              ui.Popo(90073,1,npcId,0)
              elseif rx==3 then
              ui.Popo(90079,1,npcId,0)
              end
              end
              end


              IP属地:广东8楼2013-02-17 22:23
              收起回复
                function n3301_touch(npcId)
                local n=flag.GetValue(22222)
                if n==0 then
                global.BeginScene()
                ui.Popo(90072,1,npcId,0)
                ui.Popo(90073,1,npcId,0)
                ui.Popo(90074,1,npcId,0)
                ui.Popo(90075,1,npcId,0)
                ui.Popo(90076,1,npcId,0)
                ui.Popo(90077,1,npcId,0)
                global.EndScene()
                flag.SetValue(22222,1)
                if player.GetTitleStat(6052)~=1 then
                player.AddEquip(6052,1,1)
                player.AddTitleList(6052,1)
                end
                else
                rx=battle.GetRndNumber(1,5)
                if (rx==1 or rx==4 or rx==5) then
                ui.Popo(90078,1,npcId,0)
                elseif rx==2 then
                ui.Popo(90073,1,npcId,0)
                elseif rx==3 then
                ui.Popo(90079,1,npcId,0)
                end
                end
                end


                10楼2013-02-17 23:01
                回复