![]() |
![]() |
#21 |
中级会员
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 注册: 04年01月24日
来自: 万寿山福地
帖子: 978
声望力: 31
声望:
10
![]() 现金:122两梁山币
资产:3653两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
我
也不清楚 ![]() |
![]() |
|
![]() |
![]() |
![]() |
#22 |
中级会员
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 注册: 04年02月17日
来自: 马帮
帖子: 164
声望力: 23
声望:
10
![]() 现金:58两梁山币
资产:182两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
太好了,阿耳戈斯做一个通用的吃药class传上来吧 ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#23 |
中级会员
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 注册: 04年01月24日
来自: 万寿山福地
帖子: 978
声望力: 31
声望:
10
![]() 现金:122两梁山币
资产:3653两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: 机器吃药谈
if( ratio==100 ) return HIG "看起来气血充盈,并没有受伤。" NOR; if( ratio > 95 ) return HIG "似乎受了点轻伤,不过光从外表看不大出来。" NOR; if( ratio > 90 ) return HIY "看起来可能受了点轻伤。" NOR; if( ratio > 80 ) return HIY "受了几处伤,不过似乎并不碍事。" NOR; if( ratio > 60 ) return HIY "受伤不轻,看起来状况并不太好。" NOR; if( ratio > 40 ) return HIR "气息粗重,动作开始散乱,看来所受的伤着实不轻。" NOR; if( ratio > 30 ) return HIR "已经伤痕累累,正在勉力支撑着不倒下去。" NOR; if( ratio > 20 ) return HIR "受了相当重的伤,只怕会有生命危险。" NOR; if( ratio > 10 ) return RED "伤重之下已经难以支撑,眼看就要倒在地上。" NOR; if( ratio > 5 ) return RED "受伤过重,已经奄奄一息,命在旦夕了。" NOR; return RED "受伤过重,已经有如风中残烛,随时都可能断气。" NOR; instead of eating a fixed number yao/dan, define some vars conresponding to each msg. like: "似乎受了点轻伤,不过光从外表看不大出来。" -> {eat @YaoDose1 yao} define vars YaoDose1,....YaoDose8 by 气血:%s(%d)/%s(%d)%s~((*)~%~) #if (%3=100) {Dose1=xxx, blah blah(defined by the percentage of damage times %2 then divided by 50)} do the same for js you can put this trigger in another class, run it b4 u start the robot, then close the class. then it's done |
![]() |
![]() |