Previous topicNext topic
  HT插件帮助文档
百/千分比MP调整检测

比例调整MP
HTAddMpPer

参数1+ - =
参数2:百分比值
参数3:是否按照当前蓝量计算,10
参数4:分母,如果该参数省略则默认按照百分比算

实例

[@main]
#if
#act
HTAddMpPer + 10 1
SendMsg 6
已经帮你增加了你当前蓝量的10%

#if
#act
HTAddMpPer + 10
SendMsg 6
已经帮你增加了你最大蓝量的10%

#if
#act
HTAddMpPer + 10 1 150
SendMsg 6
已经帮你增加了你当前蓝量的150分之10

 

 


比例检测MP
HTCheckMpPer

参数1> < =
参数2:百分比值
参数3:分母,如果该参数省略则默认按照百分比算

实例

[@main]
#if
HTCheckMpPer > 50
#act
SendMsg 6
你的蓝量大于50%
#elseact
SendMsg 6
你的蓝量不大于50%

#if
HTCheckMpPer > 50 300
#act
SendMsg 6
你的蓝量大于300分之50
#elseact
SendMsg 6
你的蓝量不大于300分之50