骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索

建立新NPC

查看数: 7927 | 评论数: 6 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-3-21 17:18

正文摘要:

怎么添加一个新的NPC,可以当领主这样的

回复

半世尘埃 发表于 2020-3-22 14:09:54
yunwei1237 发表于 2020-3-22 09:06
可能还得加上,修改module_strings.py文件,给加上对话信息:如



忘记了加strings的对话,不然新npc就会会npc16一样的对话。谢谢大佬指点
yunwei1237 发表于 2020-3-22 09:06:58
半世尘埃 发表于 2020-3-21 22:10
打开troops.py,搜索npc16。然后复制,在下面粘帖改名为npc18。最后编译汉化就OK了

可能还得加上,修改module_strings.py文件,给加上对话信息:如
  1. ("npc1_intro", "Ho there, traveller. You wouldn't by chance be in the market for a tracker, would you?"),
  2.   ("npc2_intro", "Hello. Would you be so kind as to have a cup with me? I'm down to my last five denars and I'd rather not drink alone."),
  3.   ("npc3_intro", "Good day to you!"),
  4.   ("npc4_intro", "Greetings. I am Rolf, son of Rolf, of the most ancient and puissant House of Rolf."),
  5.   ("npc5_intro", "Greetings, traveller. Would you join me for a drink?"),
  6.   ("npc6_intro", "I am lost... Lost..."),
  7.   ("npc7_intro", "Yes? Keep your distance, by the way."),
  8.   ("npc8_intro", "What do you want?"),
  9.   ("npc9_intro", "You there, good {man/woman}, be so kind as to fetch me another drink, eh?"),
  10.   ("npc10_intro", "Greetings there, {Brother/Sister}! Here's to the doom and downfall of all high-born lords and ladies!"),
  11.   ("npc11_intro", "Hello there, {laddie/lassie}. Have a drink on me."),
  12.   ("npc12_intro", "Greetings, fellow traveller. Perhaps you can help me."),
  13.   ("npc13_intro", "Greetings, traveller. I am Nizar. No doubt you will have heard of me."),
  14.   ("npc14_intro", "Yes? What is it you wish?"),
  15.   ("npc15_intro", "Oh! Say, friend, are you by chance heading out of town anytime soon?"),
  16.   ("npc16_intro", "Hello there. From the look of you, I'd say you're expecting to get into some fights in the near future. Are you by any chance looking for some help?"),
复制代码


在npc16后边加上对话信息,这是自我介绍的对话,还有好几个需要增加的,不然对话信息就不正确

评分

参与人数 1第纳尔 +10 收起 理由
幼稚园殺手 + 10 乐于助人!

查看全部评分

半世尘埃 发表于 2020-3-21 22:10:58
打开troops.py,搜索npc16。然后复制,在下面粘帖改名为npc18。最后编译汉化就OK了

评分

参与人数 1第纳尔 +10 收起 理由
幼稚园殺手 + 10 乐于助人!

查看全部评分

友人哦 发表于 2020-3-21 17:23:40
module_troops

评分

参与人数 1第纳尔 +10 收起 理由
幼稚园殺手 + 10 乐于助人!

查看全部评分

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2025-10-11 04:28 , Processed in 0.065297 second(s), 26 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表