a bind toggling two optionset values? Possible?


FlashToo

 

Posted

I can't find anywhere how to toggle an optionset value on one key via a bind.

I want to be able to press a button and have it go to optionset showvillainnames 1, then on a second press go to optionset showvillainnames 6 [the default.]

From what I understand of how binds work, it would execute both commands, last listed first, and would effectively only give you the first listed as your option setting.

This is to toggle between seeing all enemy names, which is great for hunting or avoiding certain enemies, and going back to normal when that gets confusing, such as standing on piles of dead bodies, as the name still show.

Any help would be appreciated. Thanks.


 

Posted

i dont think you could make 1 bind or macro for toggling like that

you could however just make 2 macro buttons one to toggle to see everything and one to toggle to normal, it would save keys for other binds


 

Posted

You could use the popmenu command to pull up a custom menu with "togle off" and "toggle on." That would save you from searching through the whole Options window.


,'&#
{}... .-
01234
"*_
?;!hgfauirebcew

 

Posted

You can do it with rotating binds. Have one bind set your first choice and load the other bindfile. This contains the commands that will change back to default and re-laod the first bind.

You'll need to look at a guide to get the exact commands, I don't recall them off-hand.


"Trust me, it worked in the Simpsons." - Calash

 

Posted

Quote:
Originally Posted by Postagulous View Post
From what I understand of how binds work, it would execute both commands, last listed first, and would effectively only give you the first listed as your option setting.
That's what happens when executing *powers* because they interrupt eachother, the latter interrupting the former. Then when the bind is executed again, the former goes off because the latter is recharging and no longer interrupting the former.

You'd be better off using a bind that calls a file to redefine the bind key so that one press turns on the first option and the second press turns on the second option.


Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides

 

Posted

You could also just bind a key to the first option, and Shift+Same key to the second.


@Roderick

 

Posted

Quote:
Originally Posted by Roderick View Post
You could also just bind a key to the first option, and Shift+Same key to the second.
Ah, I'll do this. Simplest thing.

Thanks to all though.


 

Posted

Quote:
Originally Posted by Jasra View Post
You can do it with rotating binds. Have one bind set your first choice and load the other bindfile. This contains the commands that will change back to default and re-laod the first bind.

You'll need to look at a guide to get the exact commands, I don't recall them off-hand.
^ This. I have the following two files in my data\binds\state directory, that I use for binds that keep state (have some for toggling the map between big / small also):

data\binds\state\platesoff.txt:
Code:
SHIFT+V "optionset ShowVillainName 1$$optionset ShowVillainBars 1$$bindloadfilesilent binds\state\plateson.txt"
data\binds\state\plateson.txt:
Code:
SHIFT+V "optionset ShowVillainName 6$$optionset ShowVillainBars 6$$bindloadfilesilent binds\state\platesoff.txt"
Then just load platesoff.txt and press the key to get started. After that each press will toggle it.