找文字位置

admin 2023/04/19 13:28:09 169
武器名改名字。。为     天杀|
三个位置多是随机的
                 1位  2位   3位
TextSplit | 天杀|鬼神|天职|法文| s1
SENDMSG 6 <$STR(s1)>,<$STR(s2)>,<$STR(s3)>,<$STR(s4)>,<$STR(s5)>
如何查出天杀在那几个位置 天杀在第一位,天职在第三位等等


                 1位  2位   3位
TextSplit | 鬼神| 天杀||天职|法文| s1
SENDMSG 6 <$STR(s1)>,<$STR(s2)>,<$STR(s3)>,<$STR(s4)>,<$STR(s5)>
如何查出天杀在那几个位置 天杀在在第二位,天职在第三位等等



MOV P1 1
MOV P2 1
MOV P3 1
Loopgoto @计算天杀位置 10
Loopgoto @计算鬼神位置 10
Loopgoto @计算天职位置 10

[@计算天杀位置]
#IF
EQUAL $str(S<$str(P1)>) 天杀
#ACT
SENDMSG 6 天杀在第<$str(P1)>位
endloop
Break
#ELSEACT
INC P1 1

[@计算鬼神位置]
#IF
EQUAL $str(S<$str(P2)>) 鬼神
#ACT
SENDMSG 6 鬼神在第<$str(P2)>位
endloop
Break
#ELSEACT
INC P2 1

[@计算天职位置]
#IF
EQUAL $str(S<$str(P3)>) 天职
#ACT
SENDMSG 6 天职在第<$str(P3)>位
endloop
Break
#ELSEACT
INC P3 1



一个例子



返回
我要发布
版本互换
代销
链接失效处理