r/Tf2Scripts • u/Subject-Document-315 • Oct 02 '20
Resolved Help with a part of my script
I'm working on completely rewriting my GameBanana engineer script and fixing it for the switch to last weapon works. But I don't know how this part (Arrow Pointed)still doesn't work. Can you guys help me? I can credit you.
slot3
alias "buildactivate" "bind mouse1 buildsentry; bind mouse2 builddispenser; bind mwheelup buildentrance; bind mwheeldown buildexit; bind q buildactivateq"
alias "buildsentry" "destroy 2; build 2; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "builddispenser" "destroy 0; build 0; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "buildentrance" "destroy 1; build 1; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "buildexit" "destroy 3; build 3; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "+buildattack" "+attack"
alias "-buildattack" "-attack; engieslot3; bind mouse1 +attack"
alias "destroyactivate" "bind mouse1 destroyversentry; bind mouse2 destroyverdispenser; bind mwheelup destroyverentrance; bind mwheeldown destroyverexit; bind q destroycancel"
alias "destroyversentry" "bind mouse3 destroysentry"
alias "destroysentry" "destroy 2; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"
alias "destroyverdispenser" "bind mouse3 destroydispenser"
alias "destroydispenser" "destroy 0; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"
alias "destroyverentrance" "bind mouse3 destroyentrance"
alias "destroyentrance" "destroy 1; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3
alias "destroyverexit" "bind mouse3 destroyexit"
alias "destroyexit" "destroy 3; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"
alias "engineerslot1" "slot1; bind mwheelup engineerslot3; bind mwheeldown engineerslot2; alias checkweaponslotfordestroy engieslot1; alias whatweaponslotdestroycancel engineerslot1; bind q engiescriptlastinv1"
alias "engieslot1" "bind mwheelup engineerslot3; bind mwheeldown engineerslot2"
alias "engineerslot2" "slot2; bind mwheelup engineerslot1; bind mwheeldown engineerslot3; alias checkweaponslotfordestroy engieslot2; alias whatweaponslotdestroycancel engineerslot2; bind q engiescriptlastinv2"
alias "engieslot2" "bind mwheelup engineerslot1; bind mwheeldown engineerslot3"
alias "engineerslot3" "slot3; bind mwheelup engineerslot2; bind mwheeldown engineerslot1; alias checkweaponslotfordestroy engieslot3; alias whatweaponslotdestroycancel engineerslot3; bind q engiescriptlastinv3"
alias "engieslot3" "bind mwheelup engineerslot2; bind mwheeldown engineerslot1"
alias "gobacktoengieslot3withlastinv" "lastinv; engineerslot3; firstslot3switchcmds"
alias "destroycancel" "bind mouse1 +attack; bind mouse2 +attack2; whatweaponslotdestroycancel"
alias "buildactivateq" "bind mouse1 +attack; bind mouse2 +attack2; engineerslot3; firstslot3switchcmds"
| | | | | | | | | | | | | | | | | | |
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
alias "switch31" "engineerslot1; setswitch13; setswitch21"
alias "setswitch31" "alias engiescriptlastinv3 switch31"
alias "switch32" "engineerslot2; setswitch23; setswitch12"
alias "setswitch32" "alias engiescriptlastinv3 switch32"
alias "switch21" "engineerslot1; setswitch12; setswitch31"
alias "setswitch21" "alias engiescriptlastinv2 switch21"
alias "switch23" "engineerslot3; setswitch32; setswitch13"
alias "setswitch23" "alias engiescriptlastinv2 switch23"
alias "switch12" "engineerslot2; setswitch21; setswitch32"
alias "setswitch12" "alias engiescriptlastinv1 switch12"
alias "switch13" "engineerslot3; setswitch31; setswitch23"
alias "setswitch13" "alias engiescriptlastinv1 switch13"
/-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\
| | | | | | | | | | | | | | | | | | |
alias "firstslot3switchcmds" "switch23; bind q engiescriptlastinv3; alias firstslot3switchcmds null"
firstslot3switchcmds
alias null ""
bind "1" "engineerslot1"
bind "2" "engineerslot2"
bind "3" "engineerslot3"
bind "4" "destroyactivate"
5
Upvotes
View all comments
Show parent comment
1
u/Subject-Document-315 Oct 27 '20 edited Oct 28 '20
okay so I made an alias for all the switch combinations
and the first command for each of those was to go to the previous slot
and the second command was to execute an alias that sets the q switch for the weaponslot from the first command (the prev weapon)to be set to execute the lastlast weapon (so like this: "switch31(31 meaning from slot3 to the last slot that is slot1" "engineerslot1(go to lastweapon); setswitch13( setswitch13 is this: alias engiescriptlastinv1(engiescriptlastinv means the alias for the q key for the weaponslot) switch13); setswitch21"
and the third command is basically the same as the second command but for the other weaponslot (so like the switch31 alias is for 3 to go to 1, and the 3rd command is to set the switch from 2 to 1 when you have slot2 after getting from slot3 to 1)
it sort of works but it soon gets the last weapon wrong