|
Gilbert Beginner
Joined: 10 Oct 2000 Posts: 11 Location: Germany
|
Posted: Sat Mar 01, 2003 8:55 pm
Macro build Trigger |
Hi there,
i made a macro which build a trigger from last received line from mud (%line) but %line was not parsed in trigger...
Line from Mud: Gilbert says: Hello World.
The trigger shows: #tr {%line} {#gag}
but i want it so -> #tr {Gilbert says: Hello World.} {#gag}
--snip--
Macro:
#yesno %line {#tr {%line} {#gag} gagtest}
Does not work...
Second try:
#var gline %line
#yesno %line {#tr {@gline} {#gag} gagtest}
Does not work, too.
How can help me?
Regards,
Christian |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Mar 01, 2003 11:45 pm |
Use:
#EXEC {%concat("#TRIGGER {", %line, "} {#GAG}")}
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 01, 2003 11:49 pm |
It's easier to just highlight the line, then paste it into the command line with Control-V.
#TR {paste here} {commands}
LightBulb
Advanced Member |
|
|
|
|
|