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
braumen
Beginner


Joined: 28 May 2002
Posts: 17
Location: USA

PostPosted: Tue May 28, 2002 10:43 pm   

dumb ?: how do i remove text string from variables
 
im not sure if this is right: variable @arena has the text "Testing" in it
to remove is #var arena %delitem("testing",@arena)?

if this is incorrect can you please tell me what the correct command is?
thank you!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue May 28, 2002 10:54 pm   
 
That would work however the command is case-sensetive, so you must match case exactly.
Reply with quote
braumen
Beginner


Joined: 28 May 2002
Posts: 17
Location: USA

PostPosted: Tue May 28, 2002 11:05 pm   
 
trigger: pattern: testing
command: #ad @arena testing
#forall @arena (#win arena %i)
this will put the text "testing" into a second window
new trigger: pattern: testing is done
command: :arena:#clr
#var arena %delitem( "testing", @arena)
#ad arena testing is over with
#FORALL @arena {#WIN arena %i}
this should clear the window named arena, remove the text "testing" from the variable @arena, put the text "testing is over with" into the variable @arena and send it to the window named arena
if this is incorrect please let me know what is wrong with the command line
thanks!
Reply with quote
braumen
Beginner


Joined: 28 May 2002
Posts: 17
Location: USA

PostPosted: Tue May 28, 2002 11:40 pm   
 
NVM :0 i figured it out

Kevin W. Steele
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 29, 2002 2:55 am   
 
#ADd is not the same as #ADDItem

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