会员登录

自动登录   |    忘记密码 新会员注册

NPC的龙魂吸收

作者:Voeille
发布:incomplete11
发布日期:2019-08-06 14:38:21
更新时间:2019-08-06 14:38:21
头像
1187
320 人收藏
2418 次下载
9224 次浏览
1.0
上古卷轴5:重置版
本地下载 高速下载 需要优先下载下载器,50%提速

概观


这个mod允许你选择的NPC能够在龙被杀死时吸收龙魂 - 就像玩家一样。吸收灵魂每次会增加1%的喊叫伤害(只要他们的喊声魔法效果具有MagicShout关键词)。龙杀死后,NPC可以在以下条件下吸收灵魂:

他们在战斗中至少一次针对那条龙(目标并不一定意味着打击),

在龙死亡之前他们没有离开战斗(如果他们离开并重新进入战斗,那就没事了,只要他们再次瞄准龙)。


如果这些都是真的,他们有50%的机会获得灵魂。


您可能已经注意到我还包括一个香草剧本 - 这是因为当Miraak窃取灵魂时,我必须删除Dragonborn DLC主要任务期间左上角出现的通知 - 否则它会出现在龙中灵魂被玩家以外的任何人吸收。



安装


使用管理器或手动安装,然后按照本文中介绍的几个简单步骤使用您想要的NPC进行设置。您可以添加任意数量的内容,并在播放期间更改它们而不会出现任何问题。在SSEEdit中只需几分钟。如果你不遵循教程,mod将绝对不做任何事情。

如果你想知道为什么我这样做,而不是提供包含一些NPC的版本 - 兼容性问题。为了将脚本应用于NPC,您需要覆盖其记录,这将自动使其与涉及所述NPC的任何大修和替换不兼容,并且需要一堆补丁。我的“空”版本允许您将脚本添加到您想要的任何人,而不必担心兼容性。



可配置参数


使用控制台可以在游戏过程中随时更改这3个值:

吸收机会(默认值:50%);要更改,请键入SAbsorbChance设置为X,其中X是数字(例如25,70;任何小于0的数字将表示为0,任何大于100的数字将表示为100)。

杀死龙的最大距离(默认值:10000);要更改,请将SAbsorbMaxDistance设置为X,其中X是非负数。

最大跟踪龙数(默认值:5);要更改,请将SAbsorbMaxTrackedDragons设置为X,其中X是数字。鉴于您不能拥有一个变量大小的数组,有三个选项:5表示任何小于10的数字,15表示任何小于20的数字,30表示其他任何数字。被追踪的龙是在离开战斗之前被NPC瞄准的龙。我认为5绰绰有余,即使使用mod,也不太可能同时对抗超过5条龙。



已知的问题


如果你的NPC有对话线,当他们吸收灵魂时可以使用它们并根据教程设置它们,它们将没有字幕。这是因为它们不是真正的对话,只是声音文件。我有两个理由在脚本中使用声音文件而不是对话:

Say()函数最终变成了错误 - 线条要么没有说,要么字幕被永久地卡住了。

最终用户更容易以这种方式在SSEEdit中进行设置。


不要担心,如果你的NPC没有合理的线条,它们是可选的,并且mod将在没有它们的情况下工作。


至于错误,我修复了我在测试期间遇到的错误(我花了太长时间使代码失败安全),但如果你发现任何奇怪的事情,请在评论中提及。

————————————————————————————————————————————————————

Overview

This mod allows NPCs of your choice to be able to absorb dragon souls when a dragon is killed – in the same way as the player can. Absorbing souls will increase their shout damage by 1% each time (as long as their shout magic effects have the MagicShout keyword). After a dragon is killed, an NPC can absorb the soul under the following conditions:

they’ve targeted that dragon during combat at least once (targeted doesn’t necessarily mean hit),

they didn’t leave combat before the dragon died (if they leave and re-enter combat it’ll be fine, as long as they get to target the dragon again).


If those are true, there’s a 50% chance they’ll get the soul. 

You may have noticed that I’m also including a vanilla script – this is because I had to remove a notification that appears in the top left corner during the Dragonborn DLC main quest when Miraak steals a soul – otherwise it’d appear if a dragon soul is absorbed by anyone other than the player.


Installation

Install with a manager or manually, and then follow a few easy steps described in this article to set it up with the NPCs you want. You can add as many as you like, and change them during your playthrough with no issues. It only take a few minutes in SSEEdit. If you don’t follow the tutorial, the mod will do absolutely nothing. 
If you wonder why I did it that way instead of providing a version with a few NPCs included – compatibility issues. In order to apply the script to an NPC, you need to override their record, which would automatically make it incompatible with any overhauls and replacements that involve said NPC, and require a bunch of patches. My ‘empty’ version lets you add the script to anyone you want, and without worrying about compatibility.


Configurable Parameters

These 3 values can be changed at any point during the game using the console:

Absorb chance (default: 50%); to change, type in set SAbsorbChance to X, where X is a number (e.g 25, 70; any number less than 0 will act like 0, and any greater than 100 will act like 100).

Maximum distance from the killed dragon (default: 10000); to change, type in set SAbsorbMaxDistance to X, where X is a non-negative number.

Maximum number of tracked dragons (default: 5); to change, type in set SAbsorbMaxTrackedDragons to X, where X is a number. Given that you can’t have an array that has a variable as its size, there are three options: 5 for any number less than 10, 15 for any number less than 20, and 30 for anything else. Tracked dragons are dragons who have been targeted by the NPC before leaving combat. I think 5 is more than enough, it’s highly unlikely to fight more than 5 dragons at once even with mods.



Known Issues

If your NPCs have dialogue lines that can be used when they absorb the soul and you set them up according to the tutorial, they will have no subtitles. This is because they won’t be actual dialogue, just sound files. I had two reasons to use sound files instead of dialogue in the script:

The Say() function ended up being buggy – the lines either weren’t said, or the subtitles were stuck forever.

It’s easier for the end users to set it up in SSEEdit that way.


Don’t worry if your NPCs don’t have plausible lines, they’re optional and the mod will work without them.

As for bugs, I fixed the ones I encountered during my testing (I spent way too long making the code fail-safe), but if you see anything strange happening, mention it in the comments.


原贴地址
1.版本号: 1.0   更新时间: 2019-08-06 14:57:24

评论
暂未开放,敬请期待
ta的精品
logo

NPC的龙魂吸收


Mod大小:10.3 KB
上传时间:2019-08-06 14:38:22

Mod简介:

暂无更多介绍


closeAD