How to Script and bind?

Post Reply
LooseCannnon
Member
Posts: 7
Joined: Sat Nov 21, 2009 10:28 pm

How to Script and bind?

Post by LooseCannnon » Sat Nov 21, 2009 10:51 pm

I realize that you dont want people using afk scripts on your server but im curious as to how to make and read scripts. For example how to bind a key to select a certain ammo for my bow. A link to an in depth guide to scripting would be nice.

User avatar
phantom
Site Admin
Posts: 623
Joined: Mon Dec 13, 2004 8:16 pm
Location: Canadia
Contact:

Post by phantom » Wed Nov 25, 2009 8:28 am

I don't know of any such guides, but there is this scripting document originally made by Sierra, detailing many individual functions built into Tribes:

http://www.beatme101.com/tribes/scripting%20document/

If you want to make a key-press for selecting a type of ammo for your bow:

Close Tribes
Open config/config.cs
Find:
NewActionMap("playMap.sae");

On a new line after that, add:
bindCommand(keyboard0, make, "n", TO, "use(\"Basic Arrow\");");

Change "n" with the key you want to set, and change "Basic Arrow" with the full name of the projectile you want to equip.

User avatar
phantom
Site Admin
Posts: 623
Joined: Mon Dec 13, 2004 8:16 pm
Location: Canadia
Contact:

Post by phantom » Thu Apr 21, 2011 5:01 pm

I was going through old threads and I figured I'd post a better way to do this, since things have been updated:

You can use #set to bind a key to do this:
#set numpad7 #use basicarrow

To see if a key can be #set, simply press it. The server will tell you if it can be #set, and what to type.

Post Reply