December 22, 2024, 06:32:09

Author Topic: Commands  (Read 7510 times)

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Commands
« on: July 26, 2010, 21:39:01 »
A question, where are the variables that set thre prerequisites for each command (F1-13) to be selectable?

For example, F2, and F10-13, if I'm not mistaken, needs to have at least one engine operational, f7-9 require one weapon of the given purpose, and so on.

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
(No subject)
« Reply #1 on: July 26, 2010, 22:41:49 »
Good question, I wondered that myself. Didn't find anything related to that in any file, though :(

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
(No subject)
« Reply #2 on: July 26, 2010, 22:52:53 »
Yet an other thing hardcoded, I fear. Just wondering, because it feels rather silly that the "Special Menu" command I've just created (inspired in the one made for the Solar Bandits mod) won't work when your engines are offline... (I replaced the jump to wormwhole command with this new one)

Offline The Old Dragon

  • Ensign
  • ***
  • Posts: 362
  • Karma: 6
    • View Profile
    • http://
(No subject)
« Reply #3 on: July 27, 2010, 01:34:14 »
Sorry if I seem a bit daft here... but what exactly do you mean by 'Selectable'?

The scripting for these commands is held in the tactics/commands folder.

My own work (inspired by the same mod ;) ) replaced the longrange command with a script that handles various aspects. It works for the most part, just your ship stops when you activate it :(
So if I can be of assistance, let me know.
Better to look the fool by asking, then prove them right with ignorance.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
(No subject)
« Reply #4 on: July 27, 2010, 01:53:42 »
Well, by "selectable", I meant, selectable. :P For example, try firing a long-range torpedo with a ship without any of those and you'll see what I'm talking about :P
same thing about trying to use the F2 icon to move to someplace after you've had both your engines disabled.