![]() |
我
也不清楚:em41:
|
太好了,阿耳戈斯做一个通用的吃药class传上来吧
:em45: :em45: :em45: |
回复: 机器吃药谈
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 |
| 所有时间均为格林尼治时间 +9, 现在的时间是 00:44. |
Powered by SPLS
版权所有 2001-2023 水泊梁山
皖ICP备05012024号
站长 fengyue