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
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Wed Jul 28, 2004 8:51 am   

#SUB, links, and putting commands into the command line
 
In a script I was given for an older version of zmud, it had this trigger in it:


#TRIGGER {^You are dead! Sorry...} {#SUB "You are dead! Sorry... Remember to send href='delgates'delete your old gate aliases/send."}

What this was supposed to do was display:

You are dead! Sorry... Remember to delete your old gate aliases.

Where "delete your old gate aliases" was a link that you could click on to execute the alias, "delgates". Long story short, I want to know if there's still a way to do this because it no longer seems to work. What I'm trying to do right now is create a trigger that does something like this, only for a different purpose. I also want it to, instead of immediately sending the info, put the command i want into the command line. Sample mud output:

a dagger - [WWhyMCA4IDYxODdiZmUyODQgMjI=] - somewhere south of here, carried by a human.
a dagger - [U2FnbXogOCBlYjBjOGZlY2E2IDM2] - somewhere around here, carried by a human.
a dagger - [WWtsdiA4IDkzMmY3OWRhNDQgMjQ=] - somewhere far north of here, carried by a human.
a dagger - [WWtrdCA4IDhhNDY3ODMwNTggNjU=] - somewhere far north of here, carried by a human.
a dagger - [ZWltdSA4IGI2NTA3MjQ1YzYgNzQ=] - somewhere far south of here.


What I want to do is be able to click on the earthcode (the numbers/letters within the brakets) and have zmud put the command "channel 'travel'" followed by the earthcode in the command line, which I could then review and hit enter to send. Long post, I know.


To Sum it all up, I want a way to create a link type sub that will then send the command to the command line rather than straight to the mud. Thanks for any help ahead of time, hope I wasn't too confusing. Smile
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Jul 28, 2004 9:39 am   
 
Try this:

#trigger {- ~[(%x)~] -} {#SUB {- ~[~<send "channel 'travel' %1">%1~</send>~] -}}
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Wed Jul 28, 2004 4:22 pm   
 
Hmm... thanks, that works mostly, except it still sends the command immediately. Is there no way to send the command to the command line rather than straight to the mud?
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Jul 28, 2004 6:53 pm   
 
The command you are looking for is #input:

#trigger {- ~[(%x)~] -} {#SUB {- ~[~<send "#input {Channel 'travel' %1} 1">%1~</send>~] -}}
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Jul 29, 2004 4:12 am   
 
Thanks, exactly what I needed Very Happy
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
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