For independent items, they have a unique name handling system. Independent items consist of four parts:
Prefix Base Name Suffix Boost Count
The prefix, base name, suffix, and boost count are adjusted by plugins. Depending on the effects applied, they can be altered or changed. Using the name system, an item with a prefix of ‘Fiery’, base name of ‘Sword’, suffix being ‘of Might’, and a boost count of 5 will end up looking like:
Fiery Sword of Might (+5)
These item would appear that way only if its various name parts have been altered some way or another. However, there is a fifth name convention, and that is the priority name. If an item has a priority name, it will completely overwrite the current name scheme with just the priority name itself. So even if the item’s name is ‘Fiery Sword of Might (+5)’, if the item’s priority name is ‘Legendary Blade’, then ‘Legendary Blade’ will take priority.作者: salvareless 时间: 2016-2-26 23:05
我机翻过这个脚本,这一段的意思是,如果你使用了独立名称系统,(好像还要同时启用随机属性),那么可以设置物品的扩展名称,它们可以有前缀,后缀,和增强级别(就是下面例子后面的括号)。
例如:一把剑,它的前缀是火,后缀是力量,增强级别是5,那么他将显示为:力量之火剑(+5)。(实际是显示未上面那个例子)。
同时,脚本对系统本身进行了修改,包括各种判断,装备,移除,得到这类名称发生改变的装备时,都是按照原始名字来操作的。
另外,也可以通过注释,让某个装备显示它数据库原来的名字,方便你实现类似于传奇装备名称的功能。例如上面例子那把剑,没有备注时,它叫力量之火剑(+5),但是如果它带走对应的注释,则会显示它在数据库预设的名字:传奇之剑。
大致就是这个意思,是的没错,这个功能,包括整个这个脚本,实际上就是事先了暗黑系列的道具系统。其实这个脚本还有两个功能相信楼主应该也看了,就是独立物品和随机属性,这都是类似暗黑的设计。作者: 小叮鈴 时间: 2016-2-27 09:33