Release EDDI Scripts and EDDI enabled VA Commands Thread

Have you looked into the ReportStation() function yet? It allows you to query the server for information about a station even when you are not docked.

Uff, couldn't do that. I just learned Basic language there in the '80s, and didn't see more than C basic concepts, so can't go deeper into scripting. So, which code should I add in order to trigger the station report outside of the station, just targetting it?

Btw, saw some videos of HCS voice packs with the "On my mark" script that makes voiceattack to start a timer waiting for a command to trigger. Loved that, it would be possible make one saying "On my mark... disengage", and triggering with the order "Now"?. I got some examples but not exactly what I pretend and besides they were incompletes.
Thanks in advance.

Edit: Ok, with some help in the voiceattack forum I managed to do the "On my mark" stuff. Sorry if this forum is more Eddi concerned, but this is such a cool feature that I need to share it ^^ Note that you can make all "(x order on my mark)" you want and just 1 general trigger, even having one command and same command adding "on my mark" has no conflicts and works fine, recognizing both of them separately. Here goes my own commands:

- General trigger:
When I say: [dissengage; now]

Set Boolean [mark] to True

- Optimal impulse on my mark (I use this one when going max supercruise speed approaching to a station/planet, so when I reach 0:07 I say the trigger order and speed goes to 75% -blue zone-. Note that my 75% speed is set to key F2):
When I say: [optimal impulse] [on my mark;]

Begin Text Compare: [{CMD}] Contains 'on my mark'
Set Boolean [mark] to False
Set Text[Script] to '[Acknowledge]'
Execute external plugin, 'EDDI 2.4.5'
Start Loop While: [mark] Does Not Equal True
End Loop
Set Boolean [mark] to False
End Condition
Press F2 key and hold for 0.1 seconds and release
Set Text[Script] to '[Approach speed set]'
Execute external plugin, 'EDDI 2.4.5'

- Disengage on my mark (similar to previous example, I use this one approaching to station/planet/signal etc on supercruise, and triggering when distance and speed bars reach blue zone. Supercruise binded to key J)

When I say: [disengage] [on my mark;]

Begin Text Compare: [{CMD}] Contains 'on my mark'
Set Boolean [mark] to False
Set Text[Script] to '[Acknowledge]'
Execute external plugin, 'EDDI 2.4.5'
Start Loop While: [mark] Does Not Equal True
End Loop
Set Boolean [mark] to False
End Condition
Press J key and hold for 0.1 seconds and release
Set Text[Script] to '[Entering normal space]'
Execute external plugin, 'EDDI 2.4.5'

As you see the "disengage on my mark" is obviously the same code as "optimal impulse on my mark", the only things that change are the command initial phrase, the key to press (or external command/action to trigger) and the say responses, so you can make all "on my mark" commands you like, just simply copy/pasting and changing those things.

Hope you find this useful. Original voiceattack thread here if you want to investigate or see other variations.
 
Last edited:
VA/EDDI ASKS TO RAISE THE LANDING GEAR!

It worked ! I hit Launch from a landing pad, the station flight controller tells me docking clamps have released, I slowly drift upwards and a few seconds later my VA/EDDI profile asks me if I'd like the landing gear raised !! [big grin]

I say Yes thank you, and up comes the landing gear !! :D:D:D

It's so awesome ! This is how I went about doing it:

Code:
[HR][/HR][B]
VA script called ((undocked)) :[/B]

Set small int (condition) [random] value as random from 1 to 2                    //[I]I only wanted a 1 in 2 chance of her using her initiative, so it's not the same all the time, and I still feel like I'm in control of the ship[/I]
[B]Begin Small Integer Compare : [random] Equals 2[/B]
    Pause 5 seconds
    Execute command, 'Ask to retract landinggear'
[B]End Condition[/B]

[HR][/HR]
[B]VA script called Ask to retract landinggear :
[/B]
Set small int (condition) [random] value as random from 1 to 2                  // [I]Another roll of the dice here, value of 1 makes her ask me to raise gear, value of 2 and she just tells me she is doing it. [/I]
[B]Begin Small Integer Compare : [random] Equals 1[/B]
    Set Boolean [Request] to True                                                //[I]This value will be compared later so that nothing happens when I say [B]Yes[/B] unless she has actually asked me[/I]
    Set Text [Script] to 'rs_request_landing_gear'                               //[I]This EDDI script simply generates some random ways of asking "Would you like me to raise the gear?"[/I]
    Execute external plugin, 'EDDI 2.4.5' and wait for return                   //[I]Execute the above named script[/I]
    Set Text [CMDExecute] to 'Raise landing gear'                                //[I]This sets the name of the script to execute once I say [B]Yes[/B], because I am going to have her ask me a lot of other things later.[/I]
    Pause 8 seconds                                                                      // [I]Wait for 8 seconds[/I]
    Set Boolean [Request] to False                                                        // [I]after 8 second, set Request to false, so saying Yes after this will not trigger landing gear[/I]
[B]End Condition - Exit when condition met[/B]
[B]Begin Small Integer Compare : [random] Equals 2[/B]
    Set Boolean [Request] to False
    Set Text [Script] to 'rs_command_landing_gear'                               //[I]I did another randomly generated speech script in EDDI for telling me, instead of asking me, named rs_command instead of rs_request[/I]
    Execute external plugin, 'EDDI 2.4.5' and wait for return
    Press G key and hold for 0.03 seconds and release                           //[I]and just lift the gear[/I]
[B]End Condition[/B]

[HR][/HR][B]
EDDI script called rs_request_landing_gear :[/B]

{OneOf('Shall I','Would you like me to')}
{OneOf('raise','retract')}
the landing gear {OneOf(' sir',' captain',' commander','','')}?

[B]EDDI script called rs_command_landing_gear :[/B]

{Occasionally(2, 'I am')}
{OneOf('raising','retracting', 'bringing up')}
the landing gear
{Occasionally(2, 'now')}
{OneOf(' sir',' captain',' commander','','')}.


[HR][/HR]
[B]VA command Yes :[/B]

[B]Begin Boolean Compare : [Request] Equals True[/B]                                                  //[I]When I say yes, first check that a request has been made, and if so[/I]
    Execute command, '{TXT:CMDExecute}' (by name) (and wait until it completes)       //[I]Execute the command by name, which was set as a text value earlier, and is simply the words (as if spoken) "Raise landing gear" [/I]
    Set Boolean [Request] to False                                                   //[I]Finish the request[/I]
[B]Else[/B]
    Set Text [Script] to 'rs_clarify'                                                 //[I]If a request has not been made and I say Yes, she will randomly say something along the lines of "Please clarify"[/I]
    Execute external plugin, 'EDDI 2.4.5' and wait for return
[B]End Condition[/B]


[B]VA command No :[/B]

[B]Begin Boolean Compare : [Request] Equals True[/B]
    Set Boolean [Request] to False
    Set Text [Script] to 'rs_no'                                                 //[I]Give a random speech response along the lines of "Awaiting further instructions"[/I]
    Execute external plugin, 'EDDI 2.4.5' and wait for return
[B]Else[/B]
    Set Text [Script] to 'rs_clarify'                                            //otherwise ask for clarification, as per the Yes command
    Execute external plugin, 'EDDI 2.4.5' and wait for return
[B]End Condition[/B]


Thank you kindly Brigetiol1 for your help and for putting up with my PMs asking noob questions! and Josh Calvert for providing me with your example of an alternative way to achieve the same result. It's very much appreciated gentlemen!

Hope this helps someone else.
 
Last edited:
I noticed that EDDI doesn't have a "Ship interdicted" script, does anyone know where can I find one?

Thanks.

I've used a lot of scripts from the illustrious Darkcyde who kindly shares a link to his scripts in his signature block. You will find many comments from him in this thread, in fact I believe there's one on the previous page if you want the link (via dropbox).

This is the Ship interdicted script (credit to Darkcyde):

Code:
{Pause(1000)}


{if event.submitted:
   You have submitted to the interdiction
|elif event.succeeded:
   Evasion failed, systems have been damaged.
   You have been interdicted
}


{set shiptype to event.interdictor}
{F("TargetType")}


{if !event.succeeded:
  Interdiction {OneOf("evasion successful","successfully evaded")}
|else:
   {SetState('eddi_context_interdicted', 'yes')}
   by {shiptype}


   {if event.iscommander:
      This is a human player, of {event.rating} rating!
   |else:
      , a {event.rating} {OneOf("pilot", "ship", "vessel")}
   }


   {if event.faction = null:
      who {OneOf("is unaligned","has no allegiance")}
   |else:
      {Occasionally(2,"who is")} aligned with {P(event.faction)},
   }


   {if event.power = "Indpendent":
      {Occasionally(2,"and is a member of the Alliance")}
   |elif event.power = "Pirate":
      and is a free-booter of the Pirate Clans
   |elif event.power = "Empire":
      {Occasionally(2,"and is a servitor of the Empire")}
   |elif event.power = "Federation":
      {Occasionally(2,"and is a recruit of the Federation")}
   }
}
.

and here is the TargetType script that the one above refers to:
Code:
{_ Get real target name}
{_ to use this function, set a variable to shiptype in the calling event}


{if shiptype = "Cobra Mk. III":
   {set shiptype to "Cobra Mark 3"}


|elif shiptype = "Cobra Mk. IV":
   {set shiptype to "Cobra Mark 4"} {_ this works}


|elif shiptype = "Viper Mk. III":
   {set shiptype to "Viper Mark 3"}


|elif shiptype = "Viper Mk. IV":
   {set shiptype to "Viper Mark 4"} {_ this works}


|elif shiptype = "$ShipName_Military_Empire;":
   {set shiptype to "the Imperial Navy"}


|elif shiptype = "$ShipName_Military_Federation;":
   {set shiptype to "the Federal Navy"}


|elif shiptype = "$ShipName_Military_Independent;":
   {set shiptype to "the System Defence Force"}


}


Darkcyde has some great scripts in his profile and he has also been kind enough to help me develop a script in the past. I'm sure you will find a lot of great ideas to include in your own profile.

Hope that helps.
 
Last edited:
Thanks Cmdr. I found Darkcyde's post where he posted his personality. I downloaded it and will test it now. Thank you to you both.

o7
 
Hi Everyone!

OK, with ED v3 in our hands, it's time to release the new Darkcyde's Defaults. ;)

However, there is a large caveat with this one. Due to the changes in ED for Crime & Punishment, there is a part that (currently) cannot work. This is 'Paying Off Bounties Incurred'. This is because with EDDI 2.4.6-b2 (the latest one I have used) there is no event to do this. You can still pay them off by getting killed, just not if you pay them at Interstellar Factors, they will remain in the database. Sorry about this, but until EDDI gets an event for it, it just won't work. However, I have included a script idea for that event for when it gets implemented in EDDI. It's listed as 'Bounty paid'.

Please read the change log. This has a large section at the top detailing all that I have tested for Crime & Punishment so far. Please note that these were all tested in the Beta and have yet to be properly tested in the Live version of the game. Real life happened and I've not actually done anything to my personality for about a month, so this is a month-old snapshot of what I was doing at the end of January. Still, apart from a couple of things, this should be all ok.

It's also worth noting that I've not tried any of the wing missions to see if they work at all with my missions system. They could be ok, or they could be totally borked.

Once real life calms down a bit I'm hoping to get back into Elite, then I can look at my personality with fresh eyes and see what I can do to it.

Anyway, here's the link. This version is designed for EDDI v2.4.6-b2 :-
https://www.dropbox.com/s/znxk9q3gaawndi5/Darkcydes_Defaults_28-02-18.rar?dl=0

Have fun Commanders! :D

-=] Darkcyde [=-
 
Hi Everyone!

OK, with ED v3 in our hands, it's time to release the new Darkcyde's Defaults. ;)

However, there is a large caveat with this one. Due to the changes in ED for Crime & Punishment, there is a part that (currently) cannot work. This is 'Paying Off Bounties Incurred'. This is because with EDDI 2.4.6-b2 (the latest one I have used) there is no event to do this. You can still pay them off by getting killed, just not if you pay them at Interstellar Factors, they will remain in the database. Sorry about this, but until EDDI gets an event for it, it just won't work. However, I have included a script idea for that event for when it gets implemented in EDDI. It's listed as 'Bounty paid'.

Please read the change log. This has a large section at the top detailing all that I have tested for Crime & Punishment so far. Please note that these were all tested in the Beta and have yet to be properly tested in the Live version of the game. Real life happened and I've not actually done anything to my personality for about a month, so this is a month-old snapshot of what I was doing at the end of January. Still, apart from a couple of things, this should be all ok.

It's also worth noting that I've not tried any of the wing missions to see if they work at all with my missions system. They could be ok, or they could be totally borked.

Once real life calms down a bit I'm hoping to get back into Elite, then I can look at my personality with fresh eyes and see what I can do to it.

Anyway, here's the link. This version is designed for EDDI v2.4.6-b2 :-
https://www.dropbox.com/s/znxk9q3gaawndi5/Darkcydes_Defaults_28-02-18.rar?dl=0

Have fun Commanders! :D

-=] Darkcyde [=-


Thanks Darkcyde. I noticed that when asking for damage report it says "Hull at 0%" even when I have no damage and hull is at 100% (sent you a PM about it but guess you didn't check it yet). Any way to fix this?

Thanks.
 
Hi Everyone!

OK, with ED v3 in our hands, it's time to release the new Darkcyde's Defaults. ;)

However, there is a large caveat with this one. Due to the changes in ED for Crime & Punishment, there is a part that (currently) cannot work. This is 'Paying Off Bounties Incurred'. This is because with EDDI 2.4.6-b2 (the latest one I have used) there is no event to do this. You can still pay them off by getting killed, just not if you pay them at Interstellar Factors, they will remain in the database. Sorry about this, but until EDDI gets an event for it, it just won't work. However, I have included a script idea for that event for when it gets implemented in EDDI. It's listed as 'Bounty paid'.

Please read the change log. This has a large section at the top detailing all that I have tested for Crime & Punishment so far. Please note that these were all tested in the Beta and have yet to be properly tested in the Live version of the game. Real life happened and I've not actually done anything to my personality for about a month, so this is a month-old snapshot of what I was doing at the end of January. Still, apart from a couple of things, this should be all ok.

It's also worth noting that I've not tried any of the wing missions to see if they work at all with my missions system. They could be ok, or they could be totally borked.

Once real life calms down a bit I'm hoping to get back into Elite, then I can look at my personality with fresh eyes and see what I can do to it.

Anyway, here's the link. This version is designed for EDDI v2.4.6-b2 :-
https://www.dropbox.com/s/znxk9q3gaawndi5/Darkcydes_Defaults_28-02-18.rar?dl=0

Have fun Commanders! :D

-=] Darkcyde [=-


Thanks Darkcyde. I noticed that when asking for damage report it says "Hull at 0%" even when I have no damage and hull is at 100% (sent you a PM about it but guess you didn't check it yet). Any way to fix this?

Thanks.
 
Thanks Darkcyde. I noticed that when asking for damage report it says "Hull at 0%" even when I have no damage and hull is at 100% (sent you a PM about it but guess you didn't check it yet). Any way to fix this?

Thanks.

I've replied to your PM. Let me know if it's fixed.

-=] Darkcyde [=-
 
Thanks Darkcyde. I noticed that when asking for damage report it says "Hull at 0%" even when I have no damage and hull is at 100% (sent you a PM about it but guess you didn't check it yet). Any way to fix this?

Thanks.

I just fixed a bug that erroneously set ship.health to 0% instead of 100%. Fix is in EDDI 3.0.0-b1.
 
Cheers. Going forward EDDI 3.0 will be the supported version obviously, so please try the beta and report any issues!

Hi VerticalBlank,

I reported an issue where EDDI 3.0.0-b1 doesn't detect some of my ships as flying or docked in the 2.4 thread. Hope you can help.

Thanks.

Edit: I deleted the shipmonitor.json and let it recreate it and it fixed this. Now I have another problem. I ask to lower landing gear and it says I cannot lower gear in supercruise, but I'm not in supercruise...
 
Last edited:
Can eddi activate a command in voice attack? Like when it detects lift off from a station it retracts my landing gear.
 
Can eddi activate a command in voice attack? Like when it detects lift off from a station it retracts my landing gear.
If I'm not wrong, Eddi can't activate anything in VA, on the contrary, is VA the one who can trigger effects on any Eddi event. If you're asking for landing gear retracting when lift off, just create a new VA command, on the "When I say" field type ((EDDI liftoff)) including the brackets and in the sequence list add the key press for the landing gear.
 
Last edited:
What Kroiden described is actually EDDI triggering a VA command. For example if you have instructions to ‘raise landing gear’ in your ((EDDI Liftoff)) VA command, when EDDI detects a ‘lift off’ event it will tell VA which will then trigger the action command you have in VA.
 
Oh, ok now I get it. And how do I find the event name to use the method for other eddi events as well?
Edit: Found it, THX for the help ^^
 
Last edited:
Back
Top Bottom