以下脚本须与魔法DB数据库配套 

首先随便复制一个技能

然后把它的ID改为 比如  259

不要与其他技能重复了

最后在QFunction-0.txt中加入:

{比如 X=259}

[@MagTagFuncX]

;检测被施放人的等级,进行决定加蓝多少

#IF

  CHECKLEVELEX < 70

#ACT

goto @magOthers4

break

#IF

  CHECKLEVELEX < 100

#ACT

goto @magOthers2

break

#IF

  CHECKLEVELEX < 151

#ACT

goto @magOthers1

break

[@magOthers4]

#IF

random 1

#ACT

HumanMP + 250

SENDMSG 5 [对手]  你回复了250MP!

break

#IF

random 1

#ACT

HumanMP + 170

SENDMSG 5 [对手]  你回复了170MP!

break

#IF

random 1

#ACT

HumanMP + 100

SENDMSG 5 [对手] 你回复了100MP!

break

#IF

random 1

#ACT

HumanMP + 80

SENDMSG 5 [对手] 你回复了80MP!

break

#IF

random 1

#ACT

HumanMP + 50

SENDMSG 5 [对手]  你回复了50MP!

break

;————————————-

[@magOthers2]

#IF

random 1

#ACT

HumanMP + 250

SENDMSG 5 [对手]  你回复了250MP!

break

#IF

random 1

#ACT

HumanMP + 270

SENDMSG 5 [对手]  你回复了270MP!

break

#IF

random 1

#ACT

HumanMP + 200

SENDMSG 5 [对手] 你回复了200MP!

break

#IF

random 1

#ACT

HumanMP + 180

SENDMSG 5 [对手] 你回复了180MP!

break

#IF

random 1

#ACT

HumanMP + 150

SENDMSG 5 [对手]  你回复了150MP!

break

;——————————————

[@magOthers1]

#IF

random 1

#ACT

HumanMP + 450

SENDMSG 5 [对手]  你回复了450MP!

break

#IF

random 1

#ACT

HumanMP + 470

SENDMSG 5 [对手]  你回复了470MP!

break

#IF

random 1

#ACT

HumanMP + 400

SENDMSG 5 [对手] 你回复了400MP!

break

#IF

random 1

#ACT

HumanMP + 380

SENDMSG 5 [对手] 你回复了380MP!

break

#IF

random 1

#ACT

HumanMP + 350

SENDMSG 5 [对手]  你回复了350MP!

break

 

多不容易呀

我也会写脚本啦

既要测试技能的效果

又要添加技能的声效

 

后言:

由于这是给目标(人物)加的技能效果

缺点是施法者不会扣蓝

也许这个可以DB中进行设置

但是不会准确的

人物自身要是想回蓝怎么办呢

这里提供了一种完善的解决办法

同时参照晋升(MAX)的引擎功能

;———————————————-

[@MagSelfFuncX]  

;注:MagSelfFunc后面的X是和上面对别人施法时的技能编号一样的,这个自己设置

#IF

  CHECKLEVELEX > 75

  CHECKLEVELEX < 151

#ACT

goto @MagOwn1

break

#IF

  CHECKLEVELEX  > 1  

CHECKLEVELEX  < 76

#ACT

goto @MagOwn2

break

[@MagOwn2]

#IF

random 1

#ACT

HumanMP + 140

HumanMP – 25

SENDMSG 5 你回复了140点魔力! 

break

#IF

random 1

#ACT

HumanMP + 130

HumanMP – 25

SENDMSG 5 你回复了130点魔力! 

break

#IF

random 1

#ACT

HumanMP + 100

HumanMP – 25

SENDMSG 5 你回复了100点魔力! 

break

#IF

random 1

#ACT

HumanMP + 80

HumanMP – 25

SENDMSG 5 你回复了80点魔力! 

break

;——————————————-

[@MagOwn1]

#IF

random 1

#ACT

HumanMP + 240

HumanMP – 49

SENDMSG 5 你回复了240点魔力! 

break

#IF

random 1

#ACT

HumanMP + 230

HumanMP – 49

SENDMSG 5 你回复了230点魔力! 

break

#IF

random 1

#ACT

HumanMP + 200

HumanMP – 49

SENDMSG 5 你回复了200点魔力! 

break

#IF

random 1

#ACT

HumanMP + 180

HumanMP – 49

SENDMSG 5 你回复了180点魔力! 

break

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。