Author Topic: Need a little help with a bind  (Read 4273 times)

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Need a little help with a bind
« on: June 11, 2008, 03:51:35 pm »
I used to have a set of four binds to cycle through different weapons and item configurations at the armoury, but everytime I pressed the button to cycle through weapons, I'd get a dialogue box from the armoury which slowed me down a little. So instead I decided to make a new setup. I've been trying to set up four buttons to cycle through the available equipment but not actually change items until I press another button. So far I can change my selection, but when I try to change items with this, I just get a console message saying: "weaponbuy is set to bpsaw, default is brifle", or similar.

This is the bind list so far, could anyone help me out with this please?

Code: [Select]
// Full Item Customisation //

bind F9 "sell weapons;sell upgrades;vstr weaponbuy;vstr armourbuy;vstr backbuy;vstr helmetbuy"

seta brifle "buy rifle"
seta bpsaw "buy psaw"
seta bshotgun "buy shotgun"
seta blgun "buy lgun"
seta bmdriver "buy mdriver"
seta bchaingun "buy chaingun"
seta bprifle "buy prifle"
seta bflamer "buy flamer"
seta blcannon "buy lcannon"

seta bnoarmour "sell larmour"
seta blarmour "buy larmour"
seta bbsuit "buy bsuit"

seta bnoback "sell battpack"
seta bbattpack "buy battpack"
seta bjetpack "buy jetpack"

seta bnohelmet "sell helmet"
seta bhelmet "buy helmet"

seta weaponcycle1 "echo ^4Rifle;bind F5 vstr weaponcycle2;set weaponbuy brifle"
seta weaponcycle2 "echo ^4Painsaw;bind F5 vstr weaponcycle3;set weaponbuy bpsaw"
seta weaponcycle3 "echo ^4Shotgun;bind F5 vstr weaponcycle4;set weaponbuy bshotgun"
seta weaponcycle4 "echo ^4Las Gun;bind F5 vstr weaponcycle5;set weaponbuy blgun"
seta weaponcycle5 "echo ^4Mass Driver;bind F5 vstr weaponcycle6;set weaponbuy bmdriver"
seta weaponcycle6 "echo ^4Chaingun;bind F5 vstr weaponcycle7;set weaponbuy bchaingun"
seta weaponcycle7 "echo ^4Pulse Rifle;bind F5 vstr weaponcycle8;set weaponbuy bprifle"
seta weaponcycle8 "echo ^4Flamethrower;bind F5 vstr weaponcycle9;set weaponbuy bflamer"
seta weaponcycle9 "echo ^4Lucifer Cannon;bind F5 vstr weaponcycle1;set weaponbuy blcannon"

seta armourcycle1 "echo ^2No Armour;bind F6 vstr armourcycle2;set armourbuy bnoarmour"
seta armourcycle2 "echo ^2Light Armour;bind F6 vstr armourcycle3;set armourbuy blarmour"
seta armourcycle3 "echo ^2Battlesuit;bind F6 vstr armourcycle1;set armourbuy bbsuit"

seta backcycle1 "echo ^3No Backpack;bind F7 vstr backcycle2;set backbuy bnoback"
seta backcycle2 "echo ^3Battery Pack;bind F7 vstr backcycle3;set backbuy bbattpack"
seta backcycle3 "echo ^3Jetpack;bind F7 vstr backcycle1;set backbuy bjetpack"

seta helmetcycle1 "echo ^1No Helmet;bind F8 vstr helmetcycle2;set helmetbuy bnohelmet"
seta helmetcycle2 "echo ^1Helmet;bind F8 vstr helmetcycle1;set helmetbuy bhelmet"


Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Need a little help with a bind
« Reply #1 on: June 11, 2008, 09:26:21 pm »
1) I wouldn't use seta, it could cause problems later on.
2) Lots of redundancy here, too lazy to figure it all out but I recommend simplifying.
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

E-Mxp

  • Posts: 722
  • Turrets: +27/-10
Re: Need a little help with a bind
« Reply #2 on: June 13, 2008, 11:36:11 am »
You have to use another vstr like this:
Code: [Select]
set weaponcycle1 "echo ^4Rifle;bind F5 vstr weaponcycle2;set weaponbuy [i]vstr[/i] brifle"
Then it should work :D
-------------------------------------------------------------------------------
Edit:
Tested, and it's a working!
Code: [Select]
bind F5 vstr weaponcycle1
bind F6 vstr armourcycle1
bind F7 vstr backcycle1
bind F8 vstr helmetcycle1

bind F9 "sell weapons;sell upgrades;vstr weaponbuy;vstr armourbuy;vstr backbuy;vstr helmetbuy"

seta brifle "buy rifle"
seta bpsaw "buy psaw"
seta bshotgun "buy shotgun"
seta blgun "buy lgun"
seta bmdriver "buy mdriver"
seta bchaingun "buy chaingun"
seta bprifle "buy prifle"
seta bflamer "buy flamer"
seta blcannon "buy lcannon"

seta bnoarmour "sell larmour"
seta blarmour "buy larmour"
seta bbsuit "buy bsuit"

seta bnoback "sell battpack"
seta bbattpack "buy battpack"
seta bjetpack "buy jetpack"

seta bnohelmet "sell helmet"
seta bhelmet "buy helmet"

seta weaponcycle1 "echo ^4Rifle;bind F5 vstr weaponcycle2;set weaponbuy vstr brifle"
seta weaponcycle2 "echo ^4Painsaw;bind F5 vstr weaponcycle3;set weaponbuy vstr bpsaw"
seta weaponcycle3 "echo ^4Shotgun;bind F5 vstr weaponcycle4;set weaponbuy vstr bshotgun"
seta weaponcycle4 "echo ^4Las Gun;bind F5 vstr weaponcycle5;set weaponbuy vstr blgun"
seta weaponcycle5 "echo ^4Mass Driver;bind F5 vstr weaponcycle6;set weaponbuy vstr bmdriver"
seta weaponcycle6 "echo ^4Chaingun;bind F5 vstr weaponcycle7;set weaponbuy vstr bchaingun"
seta weaponcycle7 "echo ^4Pulse Rifle;bind F5 vstr weaponcycle8;set weaponbuy vstr bprifle"
seta weaponcycle8 "echo ^4Flamethrower;bind F5 vstr weaponcycle9;set weaponbuy vstr bflamer"
seta weaponcycle9 "echo ^4Lucifer Cannon;bind F5 vstr weaponcycle1;set weaponbuy vstr blcannon"

seta armourcycle1 "echo ^2No Armour;bind F6 vstr armourcycle2;set armourbuy vstr bnoarmour"
seta armourcycle2 "echo ^2Light Armour;bind F6 vstr armourcycle3;set armourbuy vstr blarmour"
seta armourcycle3 "echo ^2Battlesuit;bind F6 vstr armourcycle1;set armourbuy vstr bbsuit"

seta backcycle1 "echo ^3No Backpack;bind F7 vstr backcycle2;set backbuy vstr bnoback"
seta backcycle2 "echo ^3Battery Pack;bind F7 vstr backcycle3;set backbuy vstr bbattpack"
seta backcycle3 "echo ^3Jetpack;bind F7 vstr backcycle1;set backbuy vstr bjetpack"

seta helmetcycle1 "echo ^1No Helmet;bind F8 vstr helmetcycle2;set helmetbuy vstr bnohelmet"
seta helmetcycle2 "echo ^1Helmet;bind F8 vstr helmetcycle1;set helmetbuy vstr bhelmet"
« Last Edit: June 13, 2008, 11:42:05 am by E-Mxp »

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Re: Need a little help with a bind
« Reply #3 on: June 13, 2008, 12:33:15 pm »
Ah, I see. I didn't get exactly what the vstr command did before, thanks!

E-Mxp

  • Posts: 722
  • Turrets: +27/-10
Re: Need a little help with a bind
« Reply #4 on: June 13, 2008, 08:35:02 pm »
Your welcome! :D