I don't think cubescript uses booleans, so you would do this using something like this:
this will allow you to press a key and toggle between 1 (on) and 0 (off)
there is also a way to save variables to saved.cfg, so it will remember your toggle after closing AC, but i don't know it.
EDIT: wow, i should really concentrate on one thing at a time.
	
	
	
	
 [SELECT ALL] Code:
bind <KEY> [ if (= $talk 1) [ talk = 0 ]  [ talk = 1 ] ]there is also a way to save variables to saved.cfg, so it will remember your toggle after closing AC, but i don't know it.
EDIT: wow, i should really concentrate on one thing at a time.

 
 

