Announcement

Collapse
No announcement yet.

A couple of scripting questions.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A couple of scripting questions.

    Hi. Writing a couple of scripts, and have a couple of questions.

    1. How do I get my voice pack to respond to a running script? Just a simple "ok commander" or such like, so I can recognise that the script is running.

    2. I know that it's possible to trap the exit supercruise event, but how do I do it? Specifically, I'm trying to write a script that can be triggered whether in supercruise or normal space, but won't execute the main body of the script till the ship drops into normal space.

    Cheers.

  • #2
    You can just add the sound file to run at the end of the custom script so that it runs when it executes at that point in time. Pack in a specific role is set by [~~Role] variable matching up with the role you want to answer (Number1, Operations, Helm, Tactical, Science, SRV, Engineering) followed by the appropriate ((RS - XXXXXX)) command (in this case ((RS - Confirmed)) or similar)

    You will need to listen for the text variable [Game state] to equal "normal space" for normal space as a check for commands to run in a certain state
    1) I reject your reality.... and substitute my own
    2) Not to be used when upset... will void warranty
    3) Stoke me a clipper i will be back for dinner
    4) Never tell Gangrel to do anything... he will probably get it wrong
    WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

    Comment


    • #3
      Excellent. Thanks. Is there a syntax reference anywhere?

      Cheers.

      Comment


      • #4
        For variables (and how they work) its in the VA manual
        1) I reject your reality.... and substitute my own
        2) Not to be used when upset... will void warranty
        3) Stoke me a clipper i will be back for dinner
        4) Never tell Gangrel to do anything... he will probably get it wrong
        WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

        Comment

        Working...
        X