Sample script file (using selectors for multiple game actions on a button)


This file shows how multiple game actions can be assigned to buttons through labeled [CONFIG] blocks and the SELECTOR statement. The example has been simplified somewhat by showing only a few button assignments and by not using macros. If you wish to see a more realistic example of a script file that uses the dogfight switch for selecting game actions, click here.

[VERSION] 1.0

[SETUP]
Back To Scappoose: Looks Like War
by The-Devil's-In-The-Details Software Co., Ltd.
BTS.TMM script written by Terri "The Geek" MacTamagochi 11/30/97

[END]

[MACROS]

// no macros in this version of the script file

[END]

[CONFIG] ATTACK
// This button is assigned only one game action in this script.

S1 SENDS ENT . // joystick trigger button fires primary weapon

// Assign config blocks of game actions to each dogfight switch position.
'Selector_Dogfight_Switch'

ASSIGN 'Selector_Dogfight_Forward' TO ForwardGroup
ASSIGN 'Selector_Dogfight_Middle' TO MiddleGroup
ASSIGN 'Selector_Dogfight_Backward' TO BackGroup .

[END]

[CONFIG] ForwardGroup FOR ATTACK
// game action issued by the first throttle button when the
// dogfight switch in in the forward position.
S5 SENDS F1. // toggle afterburners
[END]

[CONFIG] MiddleGroup FOR ATTACK
// game action issued by the first throttle button when the
// dogfight switch in in the middle position.
S5 SENDS F1 . // next waypoint
[END]

[CONFIG] BackGroupFOR ATTACK
// game action issued by the first throttle button when the
// dogfight switch in in the back position.
S5 SENDS F6 . // toggle through available targets
[END]


home