快速解决问题
配置AttributePlus
为了防止出现配置、属性错误,建议重新生成AttributePlus文件夹,使用默认配置。并做出以下修改。
yaml
options:
skillDamage: true
skill-options:
defense-attribute: false
prohibit-attribute: []
attack-attribute: false
配置SkillAPI
为了防止出现配置错误,建议重新写入SkillAPI技能
,配置如下。
技能配置
yaml
裂空斩:
name: '裂空斩'
type: 'Dynamic'
max-level: 5
skill-req: ''
skill-req-lvl: 1
needs-permission: 'False'
msg: '&6{player} &2has cast &6{skill}'
combo: ''
indicator: '2D'
icon: 'Jack O Lantern'
icon-data: 0
icon-lore:
- '&d{name} &7({level}/{max})'
- '&2Type: &6{type}'
- ''
- '{req:level}Level: {attr:level}'
- '{req:cost}Cost: {attr:cost}'
- ''
- '&2Mana: {attr:mana}'
- '&2Cooldown: {attr:cooldown}'
attributes:
level-base: 1
level-scale: 0
cost-base: 1
cost-scale: 0
cooldown-base: 0
cooldown-scale: 0
mana-base: 0
mana-scale: 0
points-spent-req-base: 0
points-spent-req-scale: 0
incompatible:
- ''
components:
Cast-a:
type: 'trigger'
data:
icon-key: ''
children:
Area-b:
type: 'target'
data:
icon-key: ''
radius-base: 10
radius-scale: 0
group: 'Enemy'
wall: 'False'
caster: 'False'
max-base: 99
max-scale: 0
random: 'False'
children:
Damage-c:
type: 'mechanic'
data:
icon-key: ''
counts: 'True'
type: 'Damage'
value-base: 1
value-scale: 0
true: 'False'
classifier: 'default'
技能配置(Damage部分)
yaml
Damage-c:
type: 'mechanic'
data:
icon-key: ''
counts: 'True'
type: 'Damage'
value-base: 1
value-scale: 0
true: 'False'
classifier: 'default'
配置插件
使用以上配置依然无法造成伤害的情况下,可以排除一下是否使用取消攻击类的插件,或者在其他插件内有没有取消本次攻击。 如果怪物没有造成任何效果即为本次伤害事件被取消。如果怪物受到伤害,但是数值为0,则没有取消伤害事件,而是属性问题。
合理使用Debug
使用/apmm debug时释放技能所获取的信息,如果此信息无误,发生错误则不为本插件的处理范围。
yaml
================[AttributeSK Debug]================
= Skill: *技能类型
= Attacker: *攻击者
= Name: *攻击者名字
= Entity: *被攻击者
= Name: *被攻击者名字
= Type: *配置的type参数
= Clear: *配置的clear参数
= AttributeList: *配置的AttributeList,在Attribute中表示
= Attribute x: *AttributeList的列表属性 x代表个数
= WhiteList : *配置的whitelist参数
= WhiteAttribute x: *WhiteAttribute的列表属性 x代表个数
=
= Arguments: *本次伤害的最终参数
= AttributeList +: *本次攻击所附带的属性和数值
= AttributeList -: *使用clear时所取消的自身所附带的属性
================[AttributeSK Debug]================