About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
mgoho
Beginner


Joined: 22 Jun 2004
Posts: 17

PostPosted: Wed Aug 18, 2004 5:58 pm   

Variables and String List
 
#TRIGGER {Jehovah's Map of (*)} {#IF (%ismember( %1, @areas)) {} {#ADDITEM areas %1}

This is my trigger. When it sees Jehovah's Map of The Great Realms the "The Great Realms" obviously goes to %1 just fine. Yet when it does the check against the String List @areas and adds it, it only adds "The"...the first word of %1. Is there any way to get the entire string to be added (and also checked if the %ismember check)?

Many thanks in advance!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Aug 18, 2004 7:02 pm   
 
Enclose it in quotes
#IF (%ismember( "%1", @areas)) {} {#ADDITEM areas "%1"}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
mgoho
Beginner


Joined: 22 Jun 2004
Posts: 17

PostPosted: Wed Aug 18, 2004 10:03 pm   
 
now my %1 = "The Great Realms (blank space)"

Is there any way to eliminate this extra white space? (I've already tried the $)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Aug 18, 2004 10:36 pm   
 
#ADDITEM areas %trim("%1")
_________________
Zmud Support Library
Zmud Knowledge Base
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