Topdown Kit1.2新增的任务系统(我们仙剑demo中暂时使用这种简单的任务系统,tk插件完结)

来源:互联网 发布:如何验证php安装成功 编辑:程序博客网 时间:2024/06/10 03:55

接续上面,因为rpg套件升级到了1.2,本身加入了任务系统,虽然比起我上面整合的系统功能上有所欠缺,但易用性上很赞。

这里我简单介绍下用法2015/4/12

Dialog& Npc System/剧情对话,npc系统


a.) NpcImage – Npc image show in dialog box

b.) NpcType – Regular Npc 

                -  Shop Keeper (Call shop menu when end dialog)*Need Script Itemlist

                -  Save Npc (Call save menu when end dialog)

                -  Quest Npc (Call quest menu when end dialog)

c.) NpcName

d.)Dialog List – List of dialog in this npc you can add more than 1

e.)Enable Face/Enable Nametag – Enable it if you want to show “Name Tag”/”Face”

in thisdialog

f.)  Face Setup/Name Tag Setup – You can set “Who”you want to show in this dialog

npcface(Need setup npc image),hero face(Need setup hero image),other face

g.)Message – A message you want to show in dialog box

npc图片-npc图片用于显示对话框中的头像

npc种类-npc表

-商店管理员(在对话框关闭的时候弹出商店)需要商品列表脚本

-数据存储npc(对话框关闭时保存数据)

任务npc(对话框关闭时调用任务菜单)

Npc名字

对话清单-可以制作多行对话

使用头像-允许使用头像在对话过程中

头像定制,在对话过程中使用头像设置

脚本内置用,npc,玩家,其他3种

对话信息,设定的对话信息在对话框中显示的

Here isexample/例子

*resultsetup in page 2,*choose npc type = Shop keeper, the system will call shop after end dialog

选择npc种类为商店,在对话框结束后,我们看,如下图

3)  Quest System

*Beforesetup quest you must setup this first

a) SetupMonster ID (example 1001,1002,1003) * Enemy ID can’t repetitive

任务系统

在建立任务系统之前,需要建立任务列表

怪物ID(例子1001,1002,1003),敌人id不能重复

b) Dragall prefab monster (In project folder) to “Monster Data” in hierarchy

掉落按照预制件设定

c) StartSetup Quest

  c-1) Select QuestData in hierarchy

开始设置任务-选择任务数据在hierarchy中


  c-2) Setup quest condition & reward

      c-2-1) Quest ID

      c-2-2) Quest Name – A name of this quest

      c-2-3) Quest Detail – A detail of thisquest

      c-2-4) Quest Condition – Hunting (Slay amonster)

                - Collect (Find an item)

        c-2-5) EnemyID/ItemID – a id of target(if you select hunting type put a            

monsterid (you can see monster id in prefab monster script “EnemyStatus”) or if youselect

collecttype put an item id (you can see item id in Item_Data in hierarchy)

        c-2-6)Amount – amout of target (Ex. Ifyou input 10 it mean slay 10 monster

orcollect 10 item)

        c-2-7) (Item Reward) Item ID – a rewarditem when you clear this quest

        c-2-8) (Item Reward) Amount – amount ofitem reward

        c-2-9) Can Repeat – if you enable this,this quest can do it again(repeatly)

afterend this quest

1.       任务id ,2.任务名称3.任务叙述4.任务类型-猎杀型,收集型,

1.       敌人id,物品id,需要与EnemyStatus和Item_Data两个脚本挂载的预制件对应

2.       数量(比如图中是10)

3.       任务完成酬谢条目id

4.       酬谢物品数量

5.       是否可以重复

d) SetupNpc Quest

设置任务npc


(4)This dialog will show whenyou’re complete quest

完成任务界面


0 0
原创粉丝点击