您当前的位置:首页 > 其他技术 > 开区杂谈

GOM引擎的传奇中使用绿盟插件百分比控制血量的方法讲解

本文出处:网游动力作者:本站发布时间:2019-06-14阅读次数:
功能:

脚本检测/设置人物或怪物血量

AddhpPer +/-/=
AddmpPer +/-/=

CheckHpPer >/</=
CheckMpPer >/</=


参数详解:

参数1:血量百分比

例:

QFunction-0.txt 攻击怪物触发


[@攻击怪物触发]
#IF
CHECKHITMONNAME 白野猪
#act
m.AddHPPer - 10
sendmsg 6 白野猪血量减少10%



[@main]
<检查血量百分比30%/@检查血量百分比30%> <检查蓝量百分比30%/@检查蓝量百分比30%> \
<增加血量10%/@增加血量10%> <增加蓝量10%/@增加蓝量10%> \
<减少血量10%/@减少血量10%> <减少蓝量10%/@减少蓝量10%> \
<设置血量10%/@设置血量10%> <设置蓝量10%/@设置蓝量10%> \


[@设置血量10%]
#act
AddhpPer = 10


[@设置蓝量10%]
#act
AddmpPer = 10

[@减少血量10%]
#act
AddhpPer - 10


[@减少蓝量10%]
#act
AddmpPer - 10


[@检查血量百分比30%]
#if
CheckHpPer > 30
#act
sendmsg 6 你的血量在30%以上..
#elseact
sendmsg 6 你的血量低于30%..



[@检查蓝量百分比30%]
#if
CheckMpPer > 30
#act
sendmsg 6 你的蓝量在30%以上..
#elseact
sendmsg 6 你的蓝量低于30%..


[@增加血量10%]
#act
AddhpPer + 10


[@增加蓝量10%]
#act
AddmpPer + 10