怪物属性免疫

今天跟大家说下如何让怪物免疫某种属性攻击,大家都知道,树精的被动是冰属性回血,我们可以提取出来,然后转化出更多的写法我们先看下冰属性回血
[TRIGGER]

[ON DAMAGE]

[WHICH]

[ME]

[IS WATER DAMAGE]

[DO PROC BEHAVIOR]

[ME]
0
[/TRIGGER]

[BEHAVIOR]

[RESTORE]

[HP]
99999999
[POINT]

[/BEHAVIOR]
这段代码的含义就是怪物受到冰属性时,回血99999999

依次我们可以拓展更多的写法,把冰属性改成光,暗和火,这样就会针对某种属性回血

如果你想问,能不能四种属性都会血,也是可以的

[TRIGGER]

[ON DAMAGE]

[WHICH]

[ME]

[IS WATER DAMAGE]

[DO PROC BEHAVIOR]

[ME]
0
[/TRIGGER]

[BEHAVIOR]

[RESTORE]

[HP]
99999999
[POINT]

[/BEHAVIOR]

[TRIGGER]

[ON DAMAGE]

[WHICH]

[ME]

[IS FIRE DAMAGE]

[DO PROC BEHAVIOR]

[ME]
1
[/TRIGGER]

[BEHAVIOR]

[RESTORE]

[HP]
99999999
[POINT]

[/BEHAVIOR]

 

[TRIGGER]

[ON DAMAGE]

[WHICH]

[ME]

[IS LIGHT DAMAGE]

[DO PROC BEHAVIOR]

[ME]
2
[/TRIGGER]

[BEHAVIOR]

[RESTORE]

[HP]
99999999
[POINT]

[/BEHAVIOR]

[TRIGGER]

[ON DAMAGE]

[WHICH]

[ME]

[IS DARK DAMAGE]

[DO PROC BEHAVIOR]

[ME]
3
[/TRIGGER]

[BEHAVIOR]

[RESTORE]

[HP]
99999999
[POINT]

[/BEHAVIOR]

这段代码写到proc.act里面,这样怪物就同时能针对四种属性回血,回血量设定高一点,就相当于属性免疫了,你学会了吗?

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容