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
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Mon Apr 26, 2004 3:22 pm   

#AL (%d)d(%d)?
 
Is it possible to create a dynamic alias? something that is evaluated when it's entered.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Mon Apr 26, 2004 3:33 pm   
 
Think #ONINPUT is what you want its like a trigger for the commands you send in

Jesse
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Apr 26, 2004 7:04 pm   
 
I think you mean something like this (judging from the topic title)
read the help file for Alias's
#HELP ALIAS

#AL eat {get %1 from %2;eat %1}
eat bread pack
will send to the mud get bread pack
eat bread
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 26, 2004 7:08 pm   
 
From a trigger:
#TR {(%d)%d(%d)} {#AL %1%2 {I can't imagine any practical use for this}}
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 1:28 am   
 
thanks everyone, Jessew you were the closest to what I was talking about attempting, thanks for the insight :)
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 1:34 am   
 
Umm using #oninput I got the formula working but now am I able to tell zmud to not send the command to the mud as I type it? I tried doing a #noop but it still passed through to the mud. thoughts? I appreciate it.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Tue Apr 27, 2004 1:41 am   
 
Not sure exactly what your trying to do but #GAG for #ONINPUT stops it from being sent. If this isn't what you wanted post exactly what your trying to do we can help figure it out.

Cheers, Jesse
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 1:53 am   
 
basically I'm trying to make a universal die alias where I type in whatever that starts with a number immediatly is followed by the letter d and then another number, ie:

1d6
2d20
6d100
etc.. whatever, but I want to do it in one alias, and I've almost got it, I'll give the #gag a shot and see if that'll do it, which I'm expecting it will, I'll let you know how it goes
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 1:55 am   
 
Yep that did it, I just have to write the function and I'm in business, thanks for everything :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 27, 2004 2:17 am   
 
You might want to have a look at the dice functions, %dice, %dicemin, %dicemax, %diceavg, and %dicedev.
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 4:47 pm   
 
Alright I'll take a look at them, Thanks :)
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