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


Joined: 05 May 2003
Posts: 194

PostPosted: Wed Apr 21, 2004 11:10 pm   

Trade Variable
 
I have an alias that when I type trade %1, %1 is added to the trade variable. How do I make it that it will also store what I'm trading with them? I want it to be that when I type trade %1 %-2 it saves %1 as the persons name and %-2 as the trade. Than I would like an alias that when I type 'trades' it tells who the people I'm trading with are and what we're trading. I have it set up to list the people I'm trading with but I don't know how to make it list the trade. I have it set up to list the people with this: #SAY @trade
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Apr 22, 2004 12:47 am   
 
Use a record variable (#ADDKEY) instead of a list (#ADDITEM). You can use %expanddb to format the output some when you wish to display it with #SAY.
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Thu Apr 22, 2004 10:09 pm   
 
Ok, but how would I do this? I read the helpfile for it and made an alias that does #ADDKEY trade {Name=%1|Trade=%-2} but it did not work...
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Apr 23, 2004 1:37 am   
 
I tested your alias: #ALIAS trade {#ADDKEY trade {Name=%1|Trade=%-2}}
and it works exactly as it is supposed to. From your original post I think you might want something more like:
#ALIAS trade {#ADDKEY trade {%1} {%-2}}
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