Quick question, is there any EDDI variable that detects when you kill an NPC?
You could use either of these events depending on the NPC ships you're shooting at wanted status;
Companion application for Elite Dangerous. Contribute to EDCD/EDDI development by creating an account on GitHub.
github.com
Companion application for Elite Dangerous. Contribute to EDCD/EDDI development by creating an account on GitHub.
github.com
On a side note, I've read the online EDDI Github document several times and I can't wrap my head around how to use the "Variables" (specifically the "Status" variables) in VA.
I've lucked out and "guessed" at a couple of them (for example: "fsd_status" I figured out was used in "EDDI Ship fsd fsd_status" was kinda easy), but I really can't figure out the prefixes for most of them (for example: "in_dager"???)
As mentioned this:
https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration is a great resource for information. In the Wiki article all the variables are prefixed with the type of the variable so;
TXT is a text variable and therefore requires a text comparison to test it's value
BOOL is a boolean variable and requires a boolean comparison to test it's value
INT an integer value
DEC a decimal value
When using the variables in VA you don't need the prefix or the {} unless you're outputting the value to the log then you'd use something like this;
Code:
Write [Blue] 'bindED active VA plugin (v{TXT:bindED.version}) detected.' to log
I use the following in a command that is called via another command, i.e. the
When I ...
options are all unticked in VA, so it kind of acts like a function/subroutine. This is called before the FSD is toggled, jumping to SC or Hyperspace ... the message along the lines of
you cannot do that as something is deployed
annoyed me.
Code:
Begin Boolean Compare : [Status landing gear down] Equals True
Set text [~log.message] to 'Retracting landing gear'
Execute command, 'Log.in.Purple' (by name) - passing values (and wait until it completes)
Execute command, 'retract landing gear' (by name) (and wait until it completes)
Pause 0.05 seconds
End Condition
Begin Boolean Compare : [Status hardpoints deployed] Equals True
Set text [~log.message] to 'Retracting Hardpoints'
Execute command, 'Log.in.Purple' (by name) - passing values (and wait until it completes)
Execute command, 'retract weapons' (by name) (and wait until it completes)
Pause 0.05 seconds
End Condition
Begin Boolean Compare : [Status cargo scoop deployed] Equals True
Set text [~log.message] to 'Retracting Cargo Scoop'
Execute command, 'Log.in.Purple' (by name) - passing values (and wait until it completes)
Execute command, 'retract scoop' (by name) (and wait until it completes)
Pause 0.05 seconds
End Condition
The
Log.in.Purple
command is simply this, again with the
When I ...
options unticked and
>ed.logging.active
is a profile variable that can be made true or false via a voice command.
Code:
Begin Text Compare : [~passedText1] Has Been Set
Set text [~log.message] to [~passedText1]
End Condition
Begin Boolean Compare : [>ed.logging.active] Equals True
Write [Purple] '{TXT:~log.message}' to log
End Condition
Edit: Another example is this code with forms part of my
leave now
command which does the following;
- All power to engines
- Retract Everything
- and as long as the ship is mass locked ... Boost the Engines
- Once ship is out of mass lock the ship jumps to SuperCruise
this is the bit that does the engine boosting;
Code:
-- Boost the engines
Execute command, 'boost engine' (by name) (and wait until it completes)
Start Loop While : [Status fsd status] Equals 'masslock'
-- Determine how long to wait for the engine cap to recharge before boosting again
Begin Condition : ([Ship model] Equals 'Federal Corvette' AND [Ship name] Equals 'cerberus')
Pause 6.5 seconds
Else If : ([Ship model] Equals 'Imperial Cutter' AND [Ship name] Equals 'transporter')
Pause 10 seconds
Else If : ([Ship model] Equals 'Imperial Cutter' AND [Ship name] Equals 'cargo cutter')
Pause 10 seconds
Else
Set text [~log.message] to 'Tweak the pause time! Based on ship type and how long cap takes to recharge'
Execute command, 'Log.in.Pink' (by name) - passing values (and wait until it completes)
Pause 15 seconds
End Condition
Set text [~log.message] to 'Boosting engines ...'
Execute command, 'Log.in.Gray' (by name) - passing values (and wait until it completes)
-- Boost the engines
Execute command, 'boost engine' (by name) (and wait until it completes)
End Loop