I want to supersede an in-game command, "pose" with an alias of the same name, that does some additional processing. The details of the added stuff probably don't matter for this question.
I've developed a script called fn_pose that works fine. The problem occurs in the calling of the script.
I have defined an alias, pose *
If on the in-game command line I type,
pose <space> <enter>
then the function runs.
If on the command line I type,
pose Several words <enter>
then the function runs fine
However, if I type just
pose <enter>
then the function does not run at all. Rather, the in-game command runs.
I've got a workaround, in that I now have 2 aliases, called pose
pose *
They both call the same function. (I test for nil as a wildcard, and then process OK.)
Now my question: Is there a more elegant solution than using two aliases like this?
I've developed a script called fn_pose that works fine. The problem occurs in the calling of the script.
I have defined an alias, pose *
If on the in-game command line I type,
pose <space> <enter>
then the function runs.
If on the command line I type,
pose Several words <enter>
then the function runs fine
However, if I type just
pose <enter>
then the function does not run at all. Rather, the in-game command runs.
I've got a workaround, in that I now have 2 aliases, called pose
pose *
They both call the same function. (I test for nil as a wildcard, and then process OK.)
Now my question: Is there a more elegant solution than using two aliases like this?