r/Tf2Scripts • • Jul 02 '21

Question How can I toggle a toggle script?

I want to bind two different weapon bind scripts to be togglable to mouse5. I can't find a way to do so.(sw means switch) My first script is:

alias primarysw secondarysw

alias secondarysw "slot2; alias primarysw primarysw2"

alias primarysw2 "slot1; alias primarysw secondarysw"

bind q primarysw

alias meleeswitch "slot3"

bind mouse4 meleeswitch

This script is for normal soldier gameplay, switching between my primary and secondary with q, and switching to my melee with mouse4. I want this script to be togglable with another script for trolldier gameplay here:

alias primarysw meleeswitch

alias meleeswitch "slot3; alias primarysw primarysw2"

alias primarysw2 "slot1; alias primarysw meleeswitch"

bind q primarysw

alias secondarysw "slot2"

bind mouse4 secondarysw

This script switches between primary and melee with q, and switches to secondary with mouse4. I don't want to leave the game and switch scripts just to play trolldier, so Is there a way to toggle these two binds to mouse5? Like, mouse5 switching between scripts in game?

5 Upvotes

8 comments sorted by

View all comments

Show parent comment

3

u/DeltaTroopa Jul 02 '21

Change the 3rd line from

alias scriptswitcher "script 2"

to

alias scriptswitcher "script2"

3

u/Siouxsie2011 Jul 02 '21

Thank you I don't know how I missed that

3

u/GotchaCyphere11 Jul 02 '21

Thank you guys so much! It finally worked!!