功能:
设置攻击力倍数
格式:POWERRATE 倍率 有效时间
倍率:攻击、魔法、道术倍数,倍数除以100为真正的倍率(200 为 2 倍,150 为1.5倍)
支持变量操作
=================================================
[@POWERRATE]
#IF
CompVal
<$PowerRate> > 100.5 f
#ACT
SendMsg 16
当前攻击倍数:<$STR(S_结果2)>、无法附加!
BREAK
#IF
CompVal <$PowerRate> = 100
#ACT
POWERRATE
1050 60
GOTO @结果
[@结果]
#IF
CompVal <$PowerRate> ?
10000
#act
MOV S63 .<$PowerRate>
MOV S62 0.
MOV S2 0.1
MOV
S64 100
Calc "(<$STR(S62)> + (<$STR(S63)>) /<$STR(S2)>) *
<$STR(S64)>" S_结果
SendMsg 16
伤害提升:<$STR(S_结果2)>倍,剩余秒数:<$PowerRateSecs>
GOTO
@MAIN
BREAK
#IF
CompVal <$PowerRate> < 10000
#act
MOV
S63 .<$PowerRate>
MOV S62 0.
MOV S2 0.1
MOV S64 10
Calc
"(<$STR(S62)> + (<$STR(S63)>) /<$STR(S2)>) *
<$STR(S64)>" S_结果
SendMsg 16
伤害提升:<$STR(S_结果2)>倍,剩余秒数:<$PowerRateSecs>
GOTO
@MAIN
=================================================
增加攻击力百分比率变量:<$PowerRate>
攻击力倍率剩余秒数变量:<$PowerRateSecs>