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
kkalvin26
Newbie


Joined: 19 Oct 2000
Posts: 3
Location: USA

PostPosted: Wed May 08, 2002 5:06 pm   

Contructing A Poser... *K*A*L*V*I*N*2*6*
 
I want to create an alias.

Example 1: wshout KKALVIN26
Executes : shout *K*A*L*V*I*N*2*6*

Example 2: wshout test
Executes : shout *t*e*s*t*

Any easy Ideas? Thanks...


kkalvin26
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 08, 2002 6:51 pm   
 
This is a simple substitution. I'd recommend using the #LOOP command in conjunction with the %len() function and the %insert() function.

(You did ask for ideas, not solutions, so I assume you'd like to try writing the actual script yourself)

LightBulb
Vague questions get vague answers
Reply with quote
kkalvin26
Newbie


Joined: 19 Oct 2000
Posts: 3
Location: USA

PostPosted: Wed May 08, 2002 8:35 pm   
 
More help please. This has to be simple but I am just not seeing it...

kkalvin26
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 08, 2002 8:51 pm   
 
Here you go. It should work, but testing is up to you.
#AL {wshout} {#VAR wshout %1;#LOOP 0,%len(%1) {#VAR wshout {%insert("*",@wshout,(i*2)+1)};shout @wshout}

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