Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
TheLastHawk
Beginner


Joined: 12 Jun 2006
Posts: 17

PostPosted: Sun Jun 18, 2006 7:04 pm   

%0 problem
 
I use to be able to sen to the mud this command:

#alias gooc {gdt ooc %0}

and what it did was send everything I typed with the %0 to the mud

gooc This is a test

would be

gdt ooc This is a test

but it won't work with CMUD, how do I get it to send the text after the command usualy done with the %0 "capture"?
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Jun 18, 2006 8:12 pm   
 
why not %1

#alias gooc {gdt ooc %1}
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jun 19, 2006 2:55 am   
 
I don't remember if Zugg kept the %-1 stuff, but that's how you did it in ZMud (%0 was merely a functionally-necessary bug and never a supported feature). Now you might have to use %params() instead.
_________________
EDIT: I didn't like my old signature
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Mon Jun 19, 2006 8:26 am   
 
%-4 works in my script but i am not even sure it is supposed too. I agree with MattLofton here try and use the newer features that are meant to replace them.
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jun 19, 2006 9:31 am   
 
%0 was never supported in zMud, in fact it was classed as a bug. It would seem that Zugg finally got around to fixing it. The correct usage for your alias in both zMud and CMud is simply:
#alias gooc {gdt ooc}

Unused parameters are still appended to the end. The only time you have to manually specify parameter usage is when you want to do something other than allowing them to be tacked on.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
TheLastHawk
Beginner


Joined: 12 Jun 2006
Posts: 17

PostPosted: Tue Jun 20, 2006 6:11 pm   hmmm
 
what if I want to have text before and after the text?

like#alias gooc {gdt says in oocly manner %0 and then turns away}

and the way it would show is

gooc hey hey

gdt says in oocly manner hey hey and then turns away

how do I fix that?
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Jun 20, 2006 6:42 pm   
 
Try this in CMUD:

Code:
#ALIAS gooc {gdt says in oocly manner %param(-1) and then turns away}
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jul 05, 2006 7:03 pm   
 
This change wasn't intentional. I'll be fixing %0 so that it works like %-1 in the next version.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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