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
Mendel
Newbie


Joined: 28 May 2002
Posts: 5
Location: USA

PostPosted: Tue May 28, 2002 2:39 am   

Fetch from Stringlist
 
I've been trying to figure this out but I'm not making to much progress so I'm hoping someone else can push me in the right direction.
I have a string list of names. What I want to do is copy all the names from StringList A to TempStringList B. Then take the first name in TempStringList B and give it to a variable called client.

So if Mitzy, Johan, Ilbrik are in StringList A and I type in "service" (an alias) then copy
Mitzy, Johan and Ilbrik into TempStringList B and then grab the first name from that list (which would be Mitzy) and make her name the @client variable.
(Its for armour and items castings. the reason I want two lists is I don't want the orignal list to lose the names. I already know how to remove the names once their stuff is done..

Mendel
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 28, 2002 5:00 am   
 
#AL service {#VAR TempStringListB {@StringlistA};#VAR client {%item(@TempStringListB,1)}}

LightBulb
Vague questions get vague answers
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