Modifying a Ships Speed or Steering as Simple as.....

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

BabyFace
Posts: 140
Joined: Sat, 24. Jan 04, 23:06
x2

Modifying a Ships Speed or Steering as Simple as.....

Post by BabyFace »

here is a "Simple" sample script to modify the "Engine Tuning" or "Rudder Optimisation" of any "Ship owner by Player"


Script BabyFaces.Engine.Tuning.Script.v1
Version: 1
for Script Engine Version: 23

Description
Add Engine Tuning To Any Ship

Arguments
1: PlayerShip , Var/Ship owned by Player , 'Select Ship To Modify'
2: Amount , Number , 'Input Amount To Add To Ship'

Source Text
001 $PumpMeUp = $PlayerShip -> install $Amount units of Engine Tuning
002 return null

When run the user is prompted for a value (argument 2) of Engine Tuning Units to add to his ship, and is then asked to Select The Ship (argument 1).

Simple huh!, the same applies for Rudder Optimisation, simply change the "Engine Tuning" to "Ruder Optimisation".

This gives you "Total Control" over the "amount" that you want to add to any given ship you own.

BabyFace
BabyFace
Posts: 140
Joined: Sat, 24. Jan 04, 23:06
x2

RE: Modifying a ships speed & Steering...Now for De-Tuni

Post by BabyFace »

In keeping with the same thought as above one can "de-tune" a ships speed (if you already increased it) simply by running the above script and using a "-" (Negitive) number.

EG: if a transport has 130 units of Engine Tuning by running the script and typing in -80, the ship would then have 50 Units of Engine Tuning remaining and the speed would reflect this as well.

it just re-inforces that old saying "K.I.S.S!"

(Keep It Simple Stupid!)

Food for Thought!

BabyFace

Return to “X²: The Threat - Scripts and Modding”