|
intoK Apprentice
Joined: 18 Feb 2007 Posts: 190
|
Posted: Mon Jan 11, 2010 9:22 am
[3.12 Lua] zs.cmd.temp() ignores second argument |
fe. zs.cmd.temp("^agsdgasf","#OK","temp","verbatim") will create trigger but without #ok in script, on a rare occasion it will ignore second argument and create trigger in flags (verbatim) class
btw. would be nice to have access to id field from lua in both commands (to name triggers) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jan 13, 2010 10:55 pm |
Confirmed.
For access to the ID field, you need to take the result from the zs.cmd and then assign the "name" property (as mentioned here)
For example, for a normal trigger:
Code: |
trig = zs.cmd.trigger("^agsdgasf","#OK")
trig.name = "MyName" |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|