Forums » General
A problem with my bind.
Ok so I'm trying to get this bind working. It's a loop for hailmsg. it works, except it doesn't go back to the first hailmasg, and instead skips back to hailmsg2. Help?
alias hailmsg1 "set hailmsg 'Greetings! Need a deliveryZ? Gimmie a buzz! Need someone dead? I can do that too! :D'"
alias hailmsg2 "set hailmsg 'Hey there! I'm Ryan Statis, and what lay before you is the mightiest vessle ye ever seen! Good day to you, from TGFT!'"
alias hailmsg3 "set hailmsg 'Don't let me looks fool you, I can put up a pretty good fight, so don't mess! Have a nice day! ~[TGFT] Ryan Statis'"
alias hailmsg4 "set hailmsg 'Hey, hey, hey, it's [TGFT] Ryan Statis here! Just givin' ya a shout! Remember, if ya need a delvery, someone to trade with, anything, just gimmie a buzz! See ya 'round!'"
alias hailmsgnext "hailmsg1; hailmsgnext2"
alias hailmsgnext2 "hailmsg2; alias hailmsgnext 'set hailmsg hailmsg3; hailmsgnext3'"
alias hailmsgnext3 "hailmsg3; alias hailmsgnext 'set hailmsg hailmsg4; hailmsgnext4'"
alias hailmsgnext4 "hailmsg4; alias hailmsgnext 'set hailmsg hailmsg1; hailmsgnext2'"
alias hailmsg1 "set hailmsg 'Greetings! Need a deliveryZ? Gimmie a buzz! Need someone dead? I can do that too! :D'"
alias hailmsg2 "set hailmsg 'Hey there! I'm Ryan Statis, and what lay before you is the mightiest vessle ye ever seen! Good day to you, from TGFT!'"
alias hailmsg3 "set hailmsg 'Don't let me looks fool you, I can put up a pretty good fight, so don't mess! Have a nice day! ~[TGFT] Ryan Statis'"
alias hailmsg4 "set hailmsg 'Hey, hey, hey, it's [TGFT] Ryan Statis here! Just givin' ya a shout! Remember, if ya need a delvery, someone to trade with, anything, just gimmie a buzz! See ya 'round!'"
alias hailmsgnext "hailmsg1; hailmsgnext2"
alias hailmsgnext2 "hailmsg2; alias hailmsgnext 'set hailmsg hailmsg3; hailmsgnext3'"
alias hailmsgnext3 "hailmsg3; alias hailmsgnext 'set hailmsg hailmsg4; hailmsgnext4'"
alias hailmsgnext4 "hailmsg4; alias hailmsgnext 'set hailmsg hailmsg1; hailmsgnext2'"
First, I'm wondering why you're not using the hail suite that was posted on the Wiki.
Second, here's your issue: Setting the hailmsg variable is not a wise (or efficient) method. You should do something like this instead:
set hailmsg "Some random standard hail message."
alias hailmsg1 "msg %target% 'Greetings! Need a delivery? Gimmie a buzz! Need someone dead? I can do that too! :D'"
alias hailmsg2 "msg %target% 'Hey there! I`m Ryan Statis, and what lay before you is the mightiest vessel ye ever seen! Good day to you, from TGFT!'"
alias hailmsg3 "msg %target% 'Don`t let me looks fool you, I can put up a pretty good fight, so don`t mess! Have a nice day! ~[TGFT] Ryan Statis'"
alias hailmsg4 "msg %target% 'Hey, hey, hey, it`s [TGFT] Ryan Statis here! Just givin` ya a shout! Remember, if ya need a delivery, someone to trade with, anything, just gimmie a buzz! See ya `round!'"
alias hailmsgtoggle "hailmsgnext"
alias hailmsgnext "hailmsg1; alias hailmsgtoggle hailmsgnext2"
alias hailmsgnext2 "hailmsg2; alias hailmsgtoggle hailmsgnext3'"
alias hailmsgnext3 "hailmsg3; alias hailmsgtoggle hailmsgnext4'"
alias hailmsgnext4 "hailmsg4; alias hailmsgtoggle hailmsgnext'"
bind key hailmsgtoggle
Here's what your problem was: you never aliased back to the original hail. The above fixes that, but it would really be easier to just use one of the hail suites I wrote and posted on the Wiki. On top of that, you had hails that contained apostraphes in them--something that would cut the hail off at the first contraction--so I replaced non-syntactical apostraphes with back-ticks (`). Using ' in aliases is a bit annoying. I also corrected some spelling errors, but this should be serviceable.
Second, here's your issue: Setting the hailmsg variable is not a wise (or efficient) method. You should do something like this instead:
set hailmsg "Some random standard hail message."
alias hailmsg1 "msg %target% 'Greetings! Need a delivery? Gimmie a buzz! Need someone dead? I can do that too! :D'"
alias hailmsg2 "msg %target% 'Hey there! I`m Ryan Statis, and what lay before you is the mightiest vessel ye ever seen! Good day to you, from TGFT!'"
alias hailmsg3 "msg %target% 'Don`t let me looks fool you, I can put up a pretty good fight, so don`t mess! Have a nice day! ~[TGFT] Ryan Statis'"
alias hailmsg4 "msg %target% 'Hey, hey, hey, it`s [TGFT] Ryan Statis here! Just givin` ya a shout! Remember, if ya need a delivery, someone to trade with, anything, just gimmie a buzz! See ya `round!'"
alias hailmsgtoggle "hailmsgnext"
alias hailmsgnext "hailmsg1; alias hailmsgtoggle hailmsgnext2"
alias hailmsgnext2 "hailmsg2; alias hailmsgtoggle hailmsgnext3'"
alias hailmsgnext3 "hailmsg3; alias hailmsgtoggle hailmsgnext4'"
alias hailmsgnext4 "hailmsg4; alias hailmsgtoggle hailmsgnext'"
bind key hailmsgtoggle
Here's what your problem was: you never aliased back to the original hail. The above fixes that, but it would really be easier to just use one of the hail suites I wrote and posted on the Wiki. On top of that, you had hails that contained apostraphes in them--something that would cut the hail off at the first contraction--so I replaced non-syntactical apostraphes with back-ticks (`). Using ' in aliases is a bit annoying. I also corrected some spelling errors, but this should be serviceable.
That wuz kindof obvious. :D Ty so much. :)
No problem.