|
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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...
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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}} |
|
|
|
|
|