Discussion EDDI + Voice Attack How to use variables

Hello everyone guys!
My name is Alessio Bardaro, I am Italian, and I returned to playing Elite Dangerous a short time ago. I play Elite Dangerous using a hotas. I would very much like to make the game more immersive, especially if I think of the possibility of being able to play in VR. To do this I decided to create a voice assistant using Voice Attack.
As everyone knows, Voice Attack does not automatically communicate with the game, but through macros, but I learned about EDDI as a program that allows you to read the game states from the Player Journal. I have the Voice Attack license and i installed EDDI correctly, but what I can't understand is the syntax I have to use to call up variables within the Voice Attack code.
For example if I wanted to create a command that allows me to extract and retract the landing gear, how do I check if this has already been extracted or retracted?
EDDI's documentation says that there's the {BOOL:Status landing gear down} variable that gives me a boolean value (true/false) if the landing gear si down or up, so how i use it in the Voice Attack code?
So logically the code would be the following:
when i say "deploy landing gear" (obviously using italian language, otherwise i would have used HCS Voicepacks)

Code:
Begin Boolean Compare : [{BOOL:Status landing gear down}] Equals False
    Press L key and hold for 0,1 seconds and release
    "Than it plays a self-recorded voice affermative response"
else
    "It plays another self-recorded voice negative response"
End Condition
or
Code:
Begin Boolean Compare : [Status landing gear down] Equals False
    Press L key and hold for 0,1 seconds and release
    "Than it plays a self-recorded voice affermative response"
else
    "It plays another self-recorded voice negative response"
End Condition
I take this opportunity to thank all the developers of the Elite Dangerous external tools that allow all players to enjoy the game better than the developers of the game themselves have imagined! ;)

P.S. I'm sorry for my English!!! I admit that i used google translate sometimes!!!! :D
 
Here's what I'm using...
View attachment 141460
o7 commander. :)
Thanks for sharing this. I've used VA for years but only downloaded EDDI last night, I've been meaning to do it for a very long time. Would you mind sharing the code for this command please?

If there's any other commands like this which you could share, it'd be very appreciated. o7

Thanks a lot! Evo
 
Another example to study...

Code:
Begin Condition : ([Status docked] Equals False AND [Status landed] Equals False AND [Status supercruise] Equals False)
    Begin Text Compare : [{LASTSPOKENCMD}] Ends With 'down'
        Set Boolean [~status] to False
        Set Text [Script] to 'Deploying landing gear.;Landing gear is down and locked.;Lowering landing gear.'
    Else If Text Compare : [{LASTSPOKENCMD}] Ends With 'up'
        Set Boolean [~status] to True
        Set Text [Script] to 'Landing gear coming up.;Landing gear is up.;Retracting landing gear.'
    End Condition
    
    Begin Boolean Compare : [Status landing gear down] Equals [~status]
        Execute command, '((Landing Gear))' (by name) (and wait until it completes)
        Set small int (condition) [~i] value to 20
        Start Loop While : ([Status landing gear down] Equals [~status] AND [~i] Is Greater Than 0)
            Pause 0.1 seconds
            Set small int (condition) [~i] value as decremented by 1
        End Loop
        Begin Small Integer Compare : [~i] Equals 0
            Set Text [Script] to 'No response.'
        End Condition
        Execute external plugin, 'EDDI 3.5.2-b1'
    End Condition - Exit when condition met
    
End Condition
Set Text [Script] to 'Unable to comply.'
Execute external plugin, 'EDDI 3.5.2-b1'
 
Top Bottom