Tremulous Forum

General => General Discussion => Topic started by: [Doh] on February 15, 2007, 01:56:37 am

Title: Binds according to stage?
Post by: [Doh] on February 15, 2007, 01:56:37 am
Well, Blazeraid set me out to make him some binds, for his whole gameplay and he came across the idea to make scrolling up and down go through the list of things to build and it works great, but I want to improve it.  In stage 1, it goes through the things, which includes the DC, Repeater, and Tesla's etc, and it takes extra time to get through those parts.

So...


Question:  Is there anyway I can make a bind occur if it's a certain stage, automatically, without any buttons being pressed to set a seta saying is is that stage?

Something like

bind P "STAGE1: say "Stage 1!";STAGE2: say "Stage 2";"

?

Any help is appreciated.
Title: Binds according to stage?
Post by: kevlarman on February 15, 2007, 01:58:38 am
it can't be done with the current scripting system.
Title: Binds according to stage?
Post by: Paradox on February 15, 2007, 02:49:56 am
Hence why i want a client side scripting language, so a bind could be:
/bind s "Stage $teamstage$"

Would produce
Paradox|SST+Op|: Stage 1


And so on.
Title: Binds according to stage?
Post by: Stof on February 15, 2007, 09:29:57 am
Quote from: "Paradox"
Hence why i want a client side scripting language, so a bind could be:
/bind s "Stage $teamstage$"

Would produce
Paradox|SST+Op|: Stage 1


And so on.

That can hardly be called a client side scripting engine :-?
Title: Binds according to stage?
Post by: David on February 15, 2007, 11:55:48 am
why cant we just get bash embedded into the console?
(with a ton or variables pre-set of course...)
Title: Binds according to stage?
Post by: [Doh] on February 15, 2007, 03:42:15 pm
Okay thanks for the replies.
Title: Binds according to stage?
Post by: Smokey on February 15, 2007, 04:29:22 pm
Sadly you would need and if () { then system :(
Title: Binds according to stage?
Post by: David on February 15, 2007, 06:44:00 pm
Quote from: "Smokey"
Sadly you would need and if () { then system :(


Why bother?
Just use ((bool) ? true : false )
Title: Binds according to stage?
Post by: next_ghost on February 15, 2007, 08:08:37 pm
Why don't you just bind a few keys to exec the right config file? :roll: Isn't it a little too early to talk about writing it in the scripting language which hasn't even been agreed upon yet?