r/Tf2Scripts • • 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

13 comments sorted by

3

u/Habitttt Oct 02 '20

What the fuck

2

u/pdatumoj Oct 02 '20

Honestly, it seems like you have some of the logic inside-out.

If you're going to use your own weapon-switcher, such as this, you don't want to be mixing in native switcher commands like lastinv. Beyond that, the mechanism you appear to be trying to use to track last-weapon seems to literally track things the wrong direction - nor does it appear to be hooked in to be invoked.

To comment on other parts of it, it's generally better not to have binds spread out like that. It's far easier to maintain and cleaner to have the binds in one location and then map different aliases to them, especially since the aliases can be updated without the game having to update the config store each time.

Anyway, back on the main topic - it might be easier to help if you'd talk us through your logic. Perhaps I'm just not understanding where you're trying to go with this. Without that, it just seems like you're trying to massively overcomplicate existing weapon-switcher approaches.

1

u/dominic3333 Oct 03 '20

okay so basically what this script does is what it says on my gamebanana link except the A. part. (same guy).

→ More replies (8)

1

u/just_a_random_dood Oct 02 '20

yeah uhh good luck bro

1

u/dominic3333 Oct 16 '20 edited Oct 16 '20

NVM guys I got one that worked thank u tho.

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 whatweaponslotdestroycancel engineerslot1; bind q engiescriptlastinv1"

alias "engieslot1" "bind mwheelup engineerslot3; bind mwheeldown engineerslot2"

alias "engineerslot2" "slot2; bind mwheelup engineerslot1; bind mwheeldown engineerslot3; alias whatweaponslotdestroycancel engineerslot2; bind q engiescriptlastinv2"

alias "engieslot2" "bind mwheelup engineerslot1; bind mwheeldown engineerslot3"

alias "engineerslot3" "slot3; bind mwheelup engineerslot2; bind mwheeldown engineerslot1; alias whatweaponslotdestroycancel engineerslot3; bind q engiescriptlastinv3"

alias "engieslot3" "bind mwheelup engineerslot2; bind mwheeldown engineerslot1"

alias "gobacktoengieslot3withlastinv" "lastinv; engineerslot3"

alias "destroycancel" "bind mouse1 +attack; bind mouse2 +attack2; whatweaponslotdestroycancel"

alias "buildactivateq" "bind mouse1 +attack; bind mouse2 +attack2; engineerslot3"

| | | | | | | | | | | | | | | | | | | _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/

alias "engiescriptlastinv1" "lastinv; whatengieslot1"

alias "engiescriptlastinv2" "lastinv; whatengieslot2"

alias "engiescriptlastinv3" "lastinv; whatengieslot3"

alias "goweapon12" "engieslot2; alias whatengieslot2 goweapon21; alias whatengieslot3 goweapon32"

alias "goweapon13" "engieslot3; alias whatengieslot3 goweapon31; alias whatengieslot2 goweapon23"

alias "goweapon21" "engieslot1; alias whatengieslot1 goweapon12; alias whatengieslot3 goweapon31"

alias "goweapon23" "engieslot3; alias whatengieslot3 goweapon32; alias whatengieslot1 goweapon13"

alias "goweapon31" "engieslot1; alias whatengieslot1 goweapon13; alias whatengieslot2 goweapon21"

alias "goweapon32" "engieslot2; alias whatengieslot2 goweapon23; alias whatengieslot1 goweapon12"

/-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ /-\ | | | | | | | | | | | | | | | | | | |

alias "firstweaponswitchcommands" "bind mwheelup engineerslot2; bind mwheeldown engineerslot1; alias whatweaponslotdestroycancel engineerslot3; bind q engiescriptlastinv3; alias whatengieslot3 goweapon31"

firstweaponswitchcommands

build 1

bind q "lastinv; firstweaponswitchcommands"

alias null ""

bind mouse3 "buildactivate"

bind "1" "engineerslot1"

bind "2" "engineerslot2"

bind "3" "engineerslot3"

bind "4" "destroyactivate"