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
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu Sep 18, 2003 5:16 pm   

multiple word variable problems
 
Hi, I am trying to put multiple words into a single variable.

At this point I can either use an alias to set the varible, "XYZ", or use a trigger to try to pull it off of either and echo, or show command.

Any ideas on how to set the variable?

The variable data could be anything from "Big Grey Duck" to "1982 World Series" or "pay-pal money tonight"

Thanks for the time and thought.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 18, 2003 5:52 pm   
 
The built-in command works well, whether in an alias, a trigger, or even as a stand-alone command.
#VARIABLE XYZ {Big Grey Duck}
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu Sep 18, 2003 8:31 pm   
 
Well I plan on changing the variable alot, it's for my theft aliases i'm working on. So I need a way to capture the item's name into the variable in one command when I turn on my aliases....

so if i use stealstuff <multiple word name> it will set the variable to that name.

Thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 18, 2003 8:59 pm   
 
#AL stealstuff {#VAR XYZ {%-1}}
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu Sep 18, 2003 10:42 pm   
 
Thanks looks like it will work
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