Toggle/cycle variable values
Hi, I want to map D to toggle the variable
1:2. I.e. if
1:1 on pressing D it'll change to
1:2, if I press D again it'll change to
This doesn't seem to be possible or very difficult with the current scripting capabilities. If I'm not wrong, I propose that the command
set should be changed. This is the grammar:
set <option> <value> [value 2] [value 3]...
set first-page-column "1:1" "1:2"
Set cycles the variable between the provided arguments. The toggle command in source engine games behaves in a similar way I'm describing, its wiki page has longer definition that you may want to see if I'm not being clear.