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
dazed-n-confused
Novice


Joined: 14 Jan 2004
Posts: 31

PostPosted: Wed Jan 14, 2004 10:14 am   

variables to ailiases
 
Dose anyone have a clue how to get a variable that is redefined from several different triggers to point to the ailias that needs to be done? I keep the variable in the value of a button and a macro key as well. I cant seem to get past the variable being a single command, like sip potion. If I try to force the variable to point to one of my ailiases it just acts like nothing happened. Someone please help so that I can get some sleep again.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Jan 14, 2004 12:41 pm   
 
You can put several commands in a list variable, then do a Forall:
#forall @variable {%i}

Or, you could put the name of an alias in the variable, then execute the variable: [@variable]
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 14, 2004 5:52 pm   
 
Use the %exec function.
Reply with quote
dazed-n-confused
Novice


Joined: 14 Jan 2004
Posts: 31

PostPosted: Thu Jan 15, 2004 8:25 pm   
 
Those are some good ideas, and get me thinking. I did find the problem sort of accidently. MY code was like this the trigger "Hi there" sets var = ailias %null. It was the %null messin everything up. Deleted that and it seems to work fine.
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