To start off, I haven't taken though too much into this.
However I have taken into account on how this can be done.
The idea is... Well just imagine this for a moment. You probably know how r_drawviewmodel has two settings, 0 and 1.
0 to turn it off, and 1 to turn it on.
Well I had the idea where the alias command could have an extension on allowing the user to have a similar command.
Here's just a little bit of code that I have:
alias vm_on "r_drawviewmodel 1;viewmodel_fov 100"
alias vm_off "r_drawviewmodel 0;viewmodel_fov 100"
alias *tr_map (
1 = "map pl_badwater;exec regen"
2 = "map pl_upward;exec regen"
3 = "map tr_walkway_fix"
_define = "This is a command to set for opening certain maps in the maps folder."
//_define would define the command.
// Meaning it would tell the player what the command would do.
// For example:
// help tr_map
// - This is a command to set for opening certain maps in the maps folder.
// That's it.
// If there isn't a _define command, then it wouldn't say anything in the help command.
//_name would define how many different commands there are.
// Aka, it would tell how many numbers to use in the command. Simular to a "endif" statement.
alias *vm_set (
0 = "vm_off"
1 = "vm_on"
//This would load up pl_badwater and turn on the rocket jumping practice stript.
When this is active in a .cfg file, it allows the user to use the commands, vm_set, to have two different settings. 0 to turn it off, and 1 to turn it on. You can also use this kind of alias to allow for multiple commands as explained above.
I hope you can at least understand this. If you have any suggestions to change this or maybe add more features to this, then please do tell me and others.