找回密码
 注册
搜索
查看: 374|回复: 4

用什么命令能获知一个触发是否处于开启状态啊

[复制链接]
门派:大轮寺
发表于 2019-6-4 21:17:09 | 显示全部楼层 |阅读模式
在木薯窗口输入的话

比如想知道hp24这个触发当前是开启还是关闭,或者不存在
门派:桃花岛
发表于 2019-6-4 22:33:02 | 显示全部楼层
请使用如下指令
/Note (GetTriggerInfo ("hp24", 8))

如果启用了返回true,未启用返回false

如果想获取其它trigger相关信息,可以参考一下参数修改 (更详细的信息,请参考http://ftp.gammon.com.au/scripts/function.php?name=GetTriggerInfo)
1: What to match on (string)
2: What to send (string)
3: Sound to play (string)
4: Script procedure name (string)
5: Omit from log (boolean)
6: Omit from output (boolean)
7: Keep evaluating (boolean)
8: Enabled (boolean)
9: Regular expression (boolean)
10: Ignore case (boolean)
11: Repeat on same line (boolean)
12: Play sound if inactive (boolean)
13: Expand variables (boolean)
14: Which wildcard to send to clipboard (short)
15: Send to - see below (short)
16: Sequence (short)
17: Match on (colour/style) (short)
18: Change to style (short)
19: Change to colour (short)
20: Invocation count (long)
21: Times matched (long)
22: Date/time trigger last matched (date)
23: 'temporary' flag (boolean)
24: Trigger was included from an include file (boolean)
25: Make wildcards lower case flag (boolean)
26: Group name (string)
27: Variable name (string)
28: User option value (long)
29: Other colour foreground colour value (long)
30: Other colour backgroundground colour value (long)
31: Number of matches to regular expression (most recent match) (long)
32: The string we matched against (last trigger text matched against) (string)
33: Executing-script flag (boolean)
34: Script is valid flag (boolean)
35: Error number from PCRE when evaluating last match (long), zero if none
36: 'one shot' flag (boolean)
37: Time taken (in seconds) to test triggers (including un-matched ones) (double)
38: Number of attempts to match this trigger (long)

门派:桃花岛
发表于 2019-6-4 22:33:37 | 显示全部楼层
忘记说了,如果不存在返回的是nil
门派:大轮寺
 楼主| 发表于 2019-6-5 00:53:48 | 显示全部楼层
3q大侠,除了红字,其他都看不懂,不过够用了
门派:桃花岛
发表于 2019-6-5 08:52:55 来自手机 | 显示全部楼层
已记录,以后可以在线测试了         
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-6-9 03:04 , Processed in 0.032865 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表