Hail suite bind mk2

Revision as of 04:55, 18 April 2007 by Miharu (talk | contribs) (→‎Code: Removed superfluous commands)

This set of aliases allows the player to support 9 hails each for two individual characters.


Code

alias hailtog "charHailA"
alias charHailA "bind 1 A_hail1; bind 2 A_hail2; bind 3 A_hail3; bind 4 A_hail4; bind 5 A_hail5; bind 6 A_hail6; bind 7 A_hail7; bind 8 A_hail8; bind 9 A_hail9; echo 'Hails for <CharA> activated.'; alias hailtog charHailB"
alias charHailB "bind 1 B_hail1; bind 2 B_hail2; bind 3 B_hail3; bind 4 B_hail4; bind 5 B_hail5; bind 6 B_hail6; bind 7 B_hail7; bind 8 B_hail8; bind 9 B_hail9; echo 'Hails for <CharB> activated.'; alias hailtog hailoff"
alias hailoff "bind 1 Weapon1; bind 2 Weapon2; bind 3 Missile1; bind 4 Missile2; bind 5 Missile3; bind 6 Mine2; bind 7 Mine2; alias hailtog charHailA"
alias hailstd "msg %target% %hailmsg%"
alias A_hail1 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail2 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail3 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail4 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail5 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail6 "hailstd; wait 1 msg %target% <Insert message here>"
alias A_hail7 "msg %target% <Insert message here>"
alias A_hail8 "msg %target% <Insert message here>"
alias A_hail9 "msg %target% <Insert message here>"
alias B_hail1 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail2 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail3 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail4 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail5 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail6 "hailstd; wait 1 msg %target% <Insert message here>"
alias B_hail7 "msg %target% <Insert message here>"
alias B_hail8 "msg %target% <Insert message here>"
alias B_hail9 "msg %target% <Insert message here>"

Aliases

Bind these commands to the keys of your choice:

Command Description
hailtog Switches the mode of your keyboard from weapon groupings to hails and back. Miharu suggests using the 0 (zero) key by typing /bind "0" hailtog in your console, or bind "0" hailtog in your wgaf.cfg file.
charHailA, charHailB Where it says <CharA> or <CharB>, replace that with the name of the character whose hails correspond to the A or B sets.
A_hail1 to B_hail9 Where "<Insert message here>" is typed, put in a message of your choice. Don't worry about binding these to keys, the toggle takes care of that. Also, keep hails prefixed with "A_" for your first character, and those with "B_" for your second.
hailmsg This is your standard, basic hail. To change it, either go into the Controls menu and change it there, or use /set hailmsg <your message> to change it manually within the console.

Notes and Tips

  • If you want your hails to use two messages, then use the template for the first six hails. For a single messages hail, use the last four.
  • Don't use contractions or apostraphes (') in the message of the bind; it will interrupt the hail just before the location of the apostraphe and cut off the rest. Use backticks (`) instead.
  • Have at least one or two single-message hails for use with NPCs and and NPC capital ships; they will respond to both of your messages if they contain more than one line.
  • Use this if you have two characters that need different hails.

Credit

Originally by Miharu.