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


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Wed Apr 10, 2002 4:46 pm   

errors using %concat
 
hi guys, here is a alias:

alis: telep

#EXEC %concat( @CommandSend, " ", %1, " ", @Color, %-2, "$c0013")

var @CommandSend contains: tele
var @Color contains: $c0011

if I write:
telep bilbo test :) hi
zmud send this command instead
tele bilbo $c0011test : hi, $c0013)

whatis wrong?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Apr 10, 2002 5:12 pm   
 
) is a special character. It must be preceded by ~ if you want zMUD to ignore it. Since it's not, the %concat function ends when it reaches it.

As you may have noticed, you don't really need to use the %concat function. You should have a lot less trouble if you change the alias to:
@CommandSend %1 @{Color}%{-2}$c0013



LightBulb
All scripts untested unless otherwise noted
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Wed Apr 10, 2002 5:23 pm   
 
so how can I solve my alias?
what should I do?
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Apr 10, 2002 6:16 pm   
 
Place the %1 and %-2 in quotes in your alias:

#EXEC %concat( @CommandSend, " ", "%1", " ", @Color, "%-2", "$c0013")

Troubadour
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Wed Apr 10, 2002 6:22 pm   
 
OH, sure, what stupid am I !
thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Apr 10, 2002 8:35 pm   
 
For command line entry:
#AL {telep} {@CommandSend %1 @{Color}%{-2}$c0013}

Or, for the settings editor:
alias: telep
Value: @CommandSend %1 @{Color}%{-2}$c0013


LightBulb
All scripts untested unless otherwise noted
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