|
|
全球定位系统,很多动作可以触发,我用最常见的这个来解释:
#ALIAS dw {
yield no;unset heal;
set look 1;set brief 1; //look的参数(就是全景look?
#t+ autologin; //打开trigger
l //look,看
}
接下来:
#TRIGGER {^??【你现在正处于(*)】} {place_autostart=%1} {autologin} 548
#TRIGGER {^(%x) - $} {
#t- autologin;
place_autostart=%concat(@place_autostart,%1); //配合上面那个,确定你现在所处的位置,苏州城***
#file 1 autologin.txt; //打开zmud目录下面autologin.txt
temp=%grep(1,@place_autostart); //查找你现在的信息所在的autologin.txt的位置
#close 1 //关闭autologin.txt,这个也带了个触发,见下面
} {autologin} 548
完成#close 1后,系统会回馈:Closed *autologin.txt
进而触发:
#TRIGGER {^??Closed *autologin.txt} {
#if %null(@temp) {log2 ***失败!;place_consider //找不到位置(就是你在的地方,在autologin.txt里找不到
也许你这个autologin没被成功打开(有这个情况发生的,就如同windows会死机,没响应类似)
} {set brief 1;unset look;%literal(@temp);
#t+ where;alias action where //触发下一个trigger
};place_autostart=不知道在那里
} {常规} 519
#TRIGGER {^??你把 "action" 设定为 "where" 成功完成。} {#t- where;bbb {w_back}} {where} 548
//w_back就是autologin.txt里面配对的路径
基本结束了。 |
|