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
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Fri May 13, 2005 7:42 am   

Sending Parameters with commas
 
I have a script that grabs information and sends it through an alias to be echo'd. It works good, I got it to send multiple words. Problem is, if the information I'm sending has a comma in it, it messes it all up.

Say I have:
Testing, blah blah forms a shield.

I want it to say:
[Testing, blah blah has shielded]

but it says:
[Testing has shielded]

The comma seems break it up. Anyway I can get around that?
Here's the coding:

#TRIGGER {A nearly invisible magical shield forms around (*).} {info %1 has shielded!}

#ALIAS info {#ECHO ~:~:~[ %upper( %-1) ~]~:~:}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri May 13, 2005 9:36 am   
 
#TRIGGER {A nearly invisible magical shield forms around (*).} {info "%1 has shielded!"}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Fri May 13, 2005 10:44 am   
 
Thanks! I tried "%1" but that didn't work.
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