Java script question - help, please!
Posted: Fri Jun 26, 2009 3:55 pm
I have hacked/created two equipment items with which's java scripts I am partially unhappy because I want them to be sellable and this is not working as intended.
The first .js should do the following:
If the player ship has "EQ_COMBAT_COMP" installed then "player.ship.reticleTargetSensitive = true" should be the case.
If the player ship has the above not installed (because it was never bought, is damaged or was re-sold), then "player.ship.reticleTargetSensitive = false" should be the case.
The second .js should do:
If the player ship has "EQ_GALACTIC_HYPERDRIVE_2" installed, then ...
"this.defaultGalacticHyperspaceBehaviour = player.ship.galacticHyperspaceBehaviour
player.ship.galacticHyperspaceBehaviour = "BEHAVIOUR_ALL_SYSTEMS_REACHABLE"
... should be the case.
If the player ship doesn't have this installed (same as above, because it was never bought, is damaged or was re-sold), then ...
"this.defaultGalacticHyperspaceBehaviour = player.ship.galacticHyperspaceBehaviour
player.ship.galacticHyperspaceBehaviour = "BEHAVIOUR_STANDARD"
... should be the case.
Could someone help me with this or even provide simple java scripts that do this for me?
Would be very grateful for any help
Cheers
L