 |
atpeace Novice
Joined: 26 Jan 2009 Posts: 32
|
Posted: Mon Jan 26, 2009 1:05 pm
Compilation of #TEMP Trigger with ID |
;Does Not Compile
#TEMP Name {^$} {
#ECHO SomeCommand
#ECHO SomeCommand
} SomeClass
;Error Unmatched braces
Does Compile
#TEMP {^$} {
#ECHO SomeCommand
#ECHO SomeCommand
} SomeClass |
|
|
 |
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Mon Jan 26, 2009 2:43 pm |
As far as I know you can't have named temp triggers but I can very well be wrong.
|
|
_________________ The Proud new owner of CMud.
--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
-------------------------------- |
|
|
 |
atpeace Novice
Joined: 26 Jan 2009 Posts: 32
|
Posted: Mon Jan 26, 2009 2:48 pm |
Worked in ZMud and syntax listed in the help as :
Syntax: #TEMP id {pattern} {commands} classname options |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 26, 2009 6:09 pm |
Try putting " quotes around the ID name:
#TEMP "Name" {^$} {#ECHO...} SomeClass |
|
|
 |
atpeace Novice
Joined: 26 Jan 2009 Posts: 32
|
Posted: Mon Jan 26, 2009 7:13 pm |
#TEMP "SomeName" {^Ahh, I am truly sorry, but I do not see anyone by that name here.$} {
#T- TrigGiveAllFailb
#T- TrigGiveAllOK
} aGeneral
Fails on compile |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Jan 26, 2009 8:07 pm |
Something's weird here, because this compiles. I think it expects the commands to be on one line.
Code: |
#TEMP Name {^$} {
#ECHO SomeCommand; #ECHO SomeCommand
} SomeClass |
|
|
_________________ Asati di tempari! |
|
|
 |
atpeace Novice
Joined: 26 Jan 2009 Posts: 32
|
Posted: Mon Jan 26, 2009 8:26 pm |
Yeah with ";" instead of %crlf in the script it will compile.
|
|
|
 |
|
|