Malarious2008-03-20 09:13:25
I am converting my stuff to work with stringlists to help cope with major groups of enchants. So they can be all worked with at once using #forall.
I am hoping someone has a way to be able to use one alias to add a list. right now I use etak which does #additem tobeenchante %1
I would like to be able to do
etak 109366 109520 110013 110150 110621 110593 110728 110868 110964 111082 111161 111318 111555 111779 112353 112441 112488 112558 112603 112486
That all fits as one line on the Zmud bar, but I would like it to add all the items given regardless of how many there are generally 10 or 20 of them. This would save me time so instead of having to use an alias on each of them I can just give the list all at once.
Thanks for any help in advance!
I am hoping someone has a way to be able to use one alias to add a list. right now I use etak which does #additem tobeenchante %1
I would like to be able to do
etak 109366 109520 110013 110150 110621 110593 110728 110868 110964 111082 111161 111318 111555 111779 112353 112441 112488 112558 112603 112486
That all fits as one line on the Zmud bar, but I would like it to add all the items given regardless of how many there are generally 10 or 20 of them. This would save me time so instead of having to use an alias on each of them I can just give the list all at once.
Thanks for any help in advance!
Malarious2008-03-20 10:12:04
I got my answer! Thanks!
Unknown2008-03-20 11:24:04
You should share your answer with the rest of the class.
Mine was going to be this (assuming your variable doesn't already have items in it that you wanted to preserve):
Mine was going to be this (assuming your variable doesn't already have items in it that you wanted to preserve):
CODE
#ALIAS etak {
  tobeenchanted = %replace("%-1", " ", "|")
}
  tobeenchanted = %replace("%-1", " ", "|")
}
Malarious2008-03-21 14:32:29
This is for Zmud:
#loop %numwords( %param) {#additem tobeenchanted %word( %param, %i)}
#loop %numwords( %param) {#additem tobeenchanted %word( %param, %i)}
Unknown2008-03-21 18:06:27
Yeah. You did it the hard way.
Malarious2008-03-21 18:29:43
QUOTE(Zarquan @ Mar 21 2008, 02:06 PM) 494798
Yeah. You did it the hard way.
Using what you posted now, its cleaner