Hello, I've been working on some profiles recently, and thought it would be really cool if you could have variables for certain commands, such as I have been adding some audial response in the form of .wav files in some of the commands (i.e. in Mount & Blade: Warband, I've been having certain commands respond with "Yes Sir!" or "Orders, Sir?"), and think that if I could have a variable set in one of the other commands, that any other command should be able to read from that variable, and that it should be able to respond different ways based off of other commands (i.e. when I select the "Infantry" troop type with one command, it sets a variable to "1," and then when I give another command such as "Charge," it answers with a battle cry, whereas if I did the same thing with my "Archer" or "Cavalry" troop types, they would just say "Yes Sir!")
does this sound feasible, Gary?
some specifics:
you could have a block of statements inside of a command, and they would act kind of like a tree, if the variable "x" equals "1," then you do this, and if it equals "2," do something else.
you would HAVE to have a statement for what it does when the variable hasn't been set to anything, if the variable "x" isn't initialized, then you do this ALWAYS (if there is nothing set, then it just skips the "if" tree).
you could have a statement that says if variable "x" doesn't meet any of the above requirements, but is initialized, then do this.
in the above cases, "this" is equivalent to any keypresses or other VA commands.
Thanks in advance!
-Suskeyhose