Release EDDI Scripts and EDDI enabled VA Commands Thread

Hi. I am looking for a EDDI script that will automatically send command by voiceattack "dismisS ship" when i am not onboard (on foot/SRV) on the damage detected event. Can you please help with?

1682691076871.png
 
I hope I understood you correctly (sorry). You want to be informed that your ship is under attack when you are on foot or in SRV. Correct ?
There are the events "Hull damaged" and "Under Attack". Corresponding EDDI variables are also available for VA (if everything runs without problems,
currently there are problems with variables concerning the ship).

 
Last edited:
Oh no i am sorry for my english. I want that the ship goes automatically off at very moment the damage received while i am not onboard. I get informed about damage (about 70% hull damage) but had no time enough to dismiss the ship. I already read the event variables but i am not sure how to do this along.
For now i have this: ((Hull damaged))
C++:
{if event.vehicle = vehicle:
    {if event.health < 41:
        Danger:
    |elif event.health < 71:
        Warning:
    |elif event.health < 91:
        Caution:
    }
    
    {F("Honorific")}
    
    {_ check if damaged vehicle has pilot _}
    
    {if event.piloted = true:
        {ship.phoneticname}    
        {OneOf("- Hull", "- Hull integrity", "- Integrity", "- Structural integrity")} 
        {Occasionally(3, "is")} at {event.health}%.
    |elif event.piloted = false:    
    
        {_ prevent to execte dismiss while damaged vehicle is SRV or player on foot _}
        {if event.vehicle = "Ship":
            {ship.phoneticname} in danger sending into orbit.
            {OneOf("- Hull", "- Hull integrity", "- Integrity", "- Structural integrity")} 
            {Occasionally(3, "is")} at {event.health}%.
         
            {_ do the VA dismiss thing _}
            
        }
      
    }
    
}
 
Last edited:
My English is not good either. DeepL helps me very well.
I think it is not possible to send or summon the ship away when you are on foot. There should be a command in the ELITE settings/options that you can set.
But I don't know this command.
If you are sitting in the SRV, you can use the menu in the SRV to send or summon the ship. There is also a command for this,
see screenshot (sorry, in German)
1682719610556.png
 
Last edited:
The ship can be dismissed/recalled via the Insight Hub (Q menu, so called as the default key to bring it up is Q).

If you use VoiceAttack it's simple to create a command to bring up the Hub and then select the item you wish and press the appropriate key to active the selection. So using the EDDI event for damage you could dismiss the ship based on the damage being taken or even if any damage is taken.
 
ahhh , I did not know ... here is the corresponding section of the options ...
1682729488648.png

... but that means you have to navigate through the menu to get to the function (selection) Send Ship Away/Retrieve Ship. So it's similar to the SRV.
Navigating through the menu and pressing the button at the right time, or having VA press it, is unfortunately not very easy. Maybe bindED is a help ...

 
Unfortunately i am unfamiliar with VA thing. There are already dissmis commands in VA from singularity profile
I do not knew if i can use them from EDDI , or maybe this works in different way.
What i am trying to achieve is do this automatically without player interaction.
How to execute existing VA command from EDDI script? Is this even possible?

Created a new script in EDDI called "TOOrbit"
C++:
{_ TOOrbit _}

{F("Honorific")} {ship.phoneticname} is in danger sending into orbit.

{_ do the VA dismiss command _}

This is called from "Hull damaged" by:
C++:
{if stastus.landed = true:
        {if event.piloted = false:
            {if status.srv_under_ship = false:
                {_  call TOOrbit _}
                {F("TOOrbit")}
            }
 
        }

    }
 
Last edited:
Short explanation interaction EDDI and VA:
EDDI reads a value from the API or the journal and fills a variable with it. This variable is also made available for VA. In VA, you can then evaluate this variable and perform an action. Example: Event "Hull damaged" EDDI has generated 3 variables for this event. If the event occurs, these variables are filled. EDDI uses its variables e.g. for announcements and passes adapted variables with the same content to VA. In VA you can now further evaluate these variables.

To your problem. You can use the variable {DEC:EDDI hull damaged health} in VA. It corresponds with the EDDI variable {event.health}. Just test it.
Take the event ((EDDI hull damaged)) in VA and display the variable {DEC:EDDI hull damaged health} in the log window of VA. And as you can display the variables in the log window, you can also cause commands to press keys.
1682766196009.png

You are using a HCS voice package, if I saw that correctly. HCS comes with a .vap file (file with commands for VA). Unfortunately I don't know anything about HCS.
 
Last edited:
Unfortunately i am unfamiliar with VA thing. There are already dissmis commands in VA from singularity profile
Use this event in VA: https://github.com/EDCD/EDDI/wiki/Under-attack-event you can then check to see if it's the ship that's being attacked and if it is, fire off the dismiss ship command.

Edit: Just tried and the event is not firing in 4.0.1 or 4.0.2 with ship parked on a planet and me in the SRV and someone shooting at my ship.
 
Last edited:
Unfortunately i am unfamiliar with VA thing. There are already dissmis commands in VA from singularity profile
I do not knew if i can use them from EDDI , or maybe this works in different way.
What i am trying to achieve is do this automatically without player interaction.
How to execute existing VA command from EDDI script? Is this even possible?

Created a new script in EDDI called "TOOrbit"
C++:
{_ TOOrbit _}

{F("Honorific")} {ship.phoneticname} is in danger sending into orbit.

{_ do the VA dismiss command _}

This is called from "Hull damaged" by:
C++:
{if stastus.landed = true:
        {if event.piloted = false:
            {if status.srv_under_ship = false:
                {_  call TOOrbit _}
                {F("TOOrbit")}
            }
 
        }

    }
EDDI cannot currently be used to invoke VoiceAttack commands (as far as I'm aware no one has asked for that before).

You can create a VoiceAttack command to do as you wish (using the ((EDDI hull damaged)) command), but it would involve opening a command wheel at a time when you might not be prepared for that to happen. I'd suggest using a VoiceAttack command like this instead:
1682765166418.png


Please note that I am using key bindings from the BindED VoiceAttack plugin like @nepomuk suggested.
 
Just tried it and the event is not being fired in either 4.0.1 or 4.0.2 with my ship parked on a planet and me in the SRV and someone shooting my ship.

Just tried it and the event is not being fired in either 4.0.1 or 4.0.2 with my ship parked on a planet and me in the SRV and someone shooting my ship.
Is the command not being invoked or are the specific conditions within the command not being met? Or in other words did the VoiceAttack log record Plugin command : '((EDDI under attack))'?
Please try again and record the state of the EDDI under attack target variable?
Please also check the latest entries in your player journal (at [your Saved Games Folder]/Frontier Developments/Elite Dangerous) to verify that a UnderAttack event was generated?
o7
 
Last edited:
Is the command not being invoked or are the specific conditions within the command not being met? Or in other words did the VoiceAttack log record Plugin command : '((EDDI under attack))'?
Please try again and record the state of the EDDI under attack target variable?
Please also check the latest entries in your player journal (at [your Saved Games Folder]/Frontier Developments/Elite Dangerous) to verify that a UnderAttack event was generated?
o7
When an event is fired you normally see Plugin command: ((EDDI music)) or the name of the EDDI event that wsa fired but for this test I'm not seeing anything, and nothing in the Journal files but you do get the notification upper right that the ship is under attack. I've also got;
Code:
Write [Blue] 'UA Target = {TXT:EDDI under attack target}' to log
within the event and nothing is showing in the VA log as the event is not firing.

Edit: Even got another player to come and shoot my ship and still no event firing yet you do get the upper right notice about the ship being under attack.
 
Last edited:
When an event is fired you normally see Plugin command: ((EDDI music)) or the name of the EDDI event that wsa fired but for this test I'm not seeing anything, and nothing in the Journal files but you do get the notification upper right that the ship is under attack. I've also got;
Code:
Write [Blue] 'UA Target = {TXT:EDDI under attack target}' to log
within the event and nothing is showing in the VA log as the event is not firing.

Edit: Even got another player to come and shoot my ship and still no event firing yet you do get the upper right notice about the ship being under attack.
I wonder if this is a limitation from when FDev choose to write that event to the journal.
In your tests has it always been yourself or another commander firing on the ship? Or have your tests involved being attacked by NPCs as well?
 
I wonder if this is a limitation from when FDev choose to write that event to the journal.
In your tests has it always been yourself or another commander firing on the ship? Or have your tests involved being attacked by NPCs as well?
Either me or another CMDR.
 
Either me or another CMDR.
I've assumed it would trigger for all attacks but I've never actually tested that. It's possible that FDev only write that event when you come under attack from an NPC. If so then that would probably considered be a bug since it should be written any time the "Under attack" voice message / UI alert is triggered.
1682806086815.png
 
Last edited:
I've assumed it would trigger for all attacks but I've never actually tested that. It's possible that FDev only write that event when you come under attack from an NPC. If so then that would probably considered be a bug since it should be written any time the "Under attack" voice message / UI alert is triggered.
View attachment 354257
If I get the chance today I'll go and see about upsetting some locals ;)
 
Back
Top Bottom