Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Gilbert
Beginner


Joined: 10 Oct 2000
Posts: 11
Location: Germany

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Mar 01, 2003 11:45 pm   
 
Use:
#EXEC {%concat("#TRIGGER {", %line, "} {#GAG}")}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net