EDCD / EDDI

Companion application for Elite Dangerous
Other
452 stars 82 forks source link

I want to be able to refer to gravity in variables. #2620

Closed Menon-F closed 5 months ago

Menon-F commented 5 months ago

The 'Glide' script allows gravity to be spoken in EDDI, but it would be very helpful if this could be treated as a variable that can be used in the VA.

Darkcyde13 commented 5 months ago

If it doesn't get added by the team, or can't be added, you can always set it as a State variable and then access that in VA. So something like this...

Add this line somewhere after the set reportBody to line in the Glide event script: {SetState('eddi_body_gravity', reportBody.gravity)}

Then in VA you can access that by using: {DEC: EDDI state eddi_body_gravity} It's a decimal because the .gravity property on reportBody is a decimal number.

This is usually how I send data to VA to be used.

Tkael commented 5 months ago

Please use the SetState() function to share the variable value with VoiceAttack. https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration#setstate https://github.com/EDCD/EDDI/wiki/Help#setstate