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


Joined: 05 Nov 2005
Posts: 18

PostPosted: Tue Nov 08, 2005 9:35 pm   

Macro recognizing a variable
 
I have a variable which changes between two states off two trigger lines. I am trying to create a macro that recognizes the state of that variable as to whether or not to execute an alias or a game command. Here is what I have:

Code:
#if @command=0 {execute}


I know there's more to it then that but I'm just missing it.

Thanks for any help!
Reply with quote
Pseudo
Wanderer


Joined: 25 Oct 2005
Posts: 99

PostPosted: Tue Nov 08, 2005 10:31 pm   
 
This will allow you to execute an alias or a game command based on the variable "command" value using an alias. Remember to change all lowercase items to fit your needs.

#ALIAS macro {#IF (@command=0) {#EXEC alias} {gamecommand}}
Reply with quote
Nyojin
Beginner


Joined: 05 Nov 2005
Posts: 18

PostPosted: Wed Nov 09, 2005 10:05 am   
 
Works like a charm and it was so obvious. Thanks a million! Very Happy
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