|
Nyojin Beginner
Joined: 05 Nov 2005 Posts: 18
|
Posted: 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! |
|
|
|
Pseudo Wanderer
Joined: 25 Oct 2005 Posts: 99
|
Posted: 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}} |
|
|
|
Nyojin Beginner
Joined: 05 Nov 2005 Posts: 18
|
Posted: Wed Nov 09, 2005 10:05 am |
Works like a charm and it was so obvious. Thanks a million!
|
|
|
|
|
|