Forums » General

Questions about binds and aliases

12»
Nov 16, 2004 TheMiller link
Is the full syntax for keys in the /bind command available somewhere? Simple shifted and unshifted "graphic" keys are pretty obvious. A couple of non-graphic keys can be seen in the default settings in wgaf.cfg -- Tab, Space, PageUp, PageDown, F1, etc. But is there a syntax for chorded keys, e.g. Ctl-A, Shift-Tab, Alt-1? Can such keys be bound at all? The graphical interface doesn't seem to let you assign such -- Shift-Tab is treated as Tab, and any attempt to use the Ctl key just gets you Ctl by itself. (This doesn't bode well for chords that include the Ctl key!)

I was also curious if there's a way to undefine an alias -- this might be useful for cleaning up experimental aliases.
Nov 16, 2004 NoAddedSugar link
/bind unbind "w"
Nov 16, 2004 roguelazer link
/bind w ""
Nov 17, 2004 TheMiller link
Thanks, but that's about unbinding keys, not undefining aliases. Basically, I'd like a way get an alias' definition removed from wgaf.cfg.
Nov 17, 2004 Cam link
You can just open up your wgaf.cfg file and delete the lines that contain aliases you don't want.

You could even delete the whole file, and a fresh default config will be put in place next time you launch the game.
Nov 17, 2004 TheMiller link
Yeah, I knew I could edit the file directly. I was wondering if there was a "programmatic" way to do it. Didn't know about the auto-defaulting of the file, though -- that's a handy fact! Thanks.
Nov 18, 2004 wylfing link
The main question still hasn't been answered. There needs to be a newbie-friendly way to introduce people to binds/aliases. Example audience: me. I see posts about "favorite binds" etc. but I don't understand any of it (aside from cut & paste into my wgaf.cfg). To make matters worse, it seems that some scripts can crash either the client or perhaps the server. That's scary.

Like the thread originator, I need a complete reference manual for messing with this stuff. I would be happy to make it "nice looking" and I'd even consider coding a web to help generate bindcode.
Nov 18, 2004 TheMiller link
Take a look at this page and let me know what you think:

http://www.spookydistance.com/cgi-bin/public-wiki.pl?Vendetta_Online_Customization

It's a work in progress. For instance, I haven't added what I've learned in this thread to it yet.
Nov 19, 2004 twist3r link
While were already at it, is there a way to bin a certain message to the sector to a button?

Like a simple example:

bind "button" "saysector Hello Guys!"
Nov 19, 2004 Viper2560 link
yes there is. Ive done it before but its been awile since ive done it so when i double check the keys ill edit this one and tell ya
Nov 19, 2004 TheMiller link
You were very close, twist3r. It would look like this:

/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys

(Edited to correct obvious stupid brain-dead error.)
Nov 19, 2004 twist3r link
thanks a lot, now i can spam teh sectors and advertise!

j/k
Nov 19, 2004 Eldrad link
miller, bind only takes two arguments:
bind <key> [command]

You describe it often as taking 3 which is not true:
bind <key> [command] [arguments of command]
That doesn't actually work.

bind "G" say_sector "Hello Guys!"
Would give you an error message.

Similarly alias doesn't work as you describe it on your page. It is actually:
alias <name> <command>

Therefore this works:
/alias my-alias "echo 'my very own alias'"

but this does not:
/alias my-alias echo "my very own alias"
Nov 19, 2004 wylfing link
TheMiller, the link http://www.vendetta-online.com/manual/app_commands.htm gives a 404.

The page you referenced gives a fair enough introduction to the concepts, and that's nice. In addition to Eldrad's corrections, it needs to explicitly describe the syntactic role of single quotes, double quotes, semicolons, and what constitutes an EOL signal to the script parser (i.e., the parser obviously does not quit after consuming just the "command" portion of the line or else Eldrad's comment about generating an error would not occur). Handling of whitespace is also something that should be explained.

There is also a presentational concern: users need to be given a context for custom binding. Is it merely a time-saver? Critically important? Just for fun? For example, will you get utterly owned in pvp if your opponent is a good scripter? (If so that sort of bites. I haven't pvp'd yet so I don't know.) To that end one or two concrete teaching examples should be provided showing why the context is true. After that, base the remainder of the tutorial on deconstructing the example(s) to retain continuity.
Nov 19, 2004 TheMiller link
Argh, sorry about that. Fingers working, brain not engaged.

/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys

That oughta work better.

Wylfing: Thanks, I corrected the link.

Eldrad: I though that for a single command you could omit the extra quotes, even if it took an argument, but you're probably right. I'll check tonight when I get home.
Nov 19, 2004 wylfing link
Nice. I edited my previous post to include more (hopefully constructive) criticism. I hit post too quickly last time.
Nov 19, 2004 TheMiller link
Thanks for the comments, wylfing. Regarding the importance of custom bindings: I'll give it a shot, but I'm not yet fit to judge some of your suggested reasons. In particular, do the unwashed masses get owned by customizers in PVP? I haven't got a clue what the answer to that is yet. Opinions from more experienced VO pilots are welcome...
Nov 19, 2004 Spellcast link
miller: No, while bindings are extremely useful for automating some things, they dont make a HUGE difference in combat, with 1 significant exception.

by typing in the following:

/alias name_1 "set autoaim 1;echo 'autoaim on';bind KEY name_2"
/alias name_2 "set autoaim 0;echo 'autoaim off';bind KEY name_1"
/bind KEY name_1

You can create a toggle to easily turn the aiming assist on/off which can be a huge advantage in combat.
Nov 19, 2004 TheMiller link
Thanks, Spellcast. I was wondering how much advantage there is to turning autoaim off. With the bots and the guns I've used so far, I haven't noticed any advantage to turning it off, but I've done virtually no PvP as yet.

BTW, note that, by default, ":" is bound to the alias toggleautoaim, which is defined very much like your example, lacking only the handy echo messages.
Nov 19, 2004 TheReject link
Is there a command to have it pause for a moment during an action? For instance, I want to bind a key to shoot a missile, wait for a few seconds, then say "Heads up!" to my target.