作者ayso (Ken)
看板mud_sanc
标题Re: [问题] TINTIN的问题
时间Tue Sep 27 21:38:05 2011
※ 引述《ricky65614 (Ricky)》之铭言:
: ※ 引述《ayso (Ken)》之铭言:
: : #class class1 open;
: : #action {lala} {say hi}
: : #class class1 close;
: : #class class2 open;
: : #action {lala} {say orz}
: : #class class2 close;
: 请问这个写法适用於#tick这个指令吗??
: 因为我把#tick写到class後将其close
: 但仍然持续会动作
#class open/close只是用来定义class的范围,
open开始,直到close,这中间所写的指令都属於这个class
所以若要作出像zmud的开关效果,就必须放在#alias里面
#alias fighton {
#class class_fight open;
#alias fightoff {
#class class_fight kill;
#untick tiRead;
};
#tick {tiCheckPotion} {
#if {$potion[hp]<4} {
#show WARNING: hp potion not enough!
}
} {10};
#action {你身上连一罐特级药水都没有了!} {recall;buypotion};
#alias {readbook} {
#tick {tiRead} {
read book;
} {100};
};
#class class_fight close;
}
以上例说明,fighton开启tiCheckPotion,fightoff关闭tiCheckPotion,
而tiRead因为是由readbook开起来的,所以要在fightoff特别处理tiRead
: : #action {{aaaa|bbbb|cccc}} {look}
: : 我是用2.00.5的版本,旧版的regex可能会不太一样
: 试了一下,这个写法不能执行,还是谢谢你
: 第三个问题
: 我能否写成这样
: #action {123} {#untick xxx;do nn;ee;ww}
: 因为好像无法把tintin的指令和mud的指令写一起
: 再麻烦您了
因为 ; 是tintin的命令分隔符号
#action {123} {#untick xxx;do nn\;ee\;ww}
若mud需要用到,请在前面加上 \
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.205.130.47