Alright, y'all thanks to your help this is my first draft. Forgive any horrible spaghetti. I'm not a programmer/scripter. X3
First, EDDI scripts.
"ship interdicted"
"entered normal space"
Now the VA stuff:
"Occasional Honorific" (voice disabled) As Tkael stated above, external plugin context is "speech".
"((EDDI ship interdicted))" (voice disabled)
First, EDDI scripts.
"ship interdicted"
Code:
{if event.submitted: {SetState('eddi_context_interdicted', 'yes')}
|elif event.succeeded:
{SetState('eddi_context_interdicted', 'yes')}
}
{Pause(3000)}
{if !event.succeeded:
Interdiction evaded.
{SetState('eddi_context_interdicted', 'no')}
}
"entered normal space"
Code:
{if state.eddi_context_interdicted != "yes":
{_ Context }
{SetState('eddi_context_last_subject', 'fsd')}
{SetState('eddi_context_last_action', 'disengage')}
{SetState('eddi_context_system_name', event.system)}
{SetState('eddi_context_body_name', event.body)}
{SetState('eddi_context_body_system', event.system)}
{Pause(5000)}
{OneOf("{ShipName()} has", "")} {OneOf("left supercruise", "{OneOf(\"entered\", \"returned to\", \"dropped to\")} normal space")}
{if event.bodytype = 'Planet':
{OneOf("near", "close to", "in the vicinity of")} planet {P(event.body)}
|elif event.bodytype = 'Star':
{OneOf("near", "close to", "in the vicinity of")} star {P(event.body)}
|elif event.bodytype = 'Station':
{OneOf("near", "close to", "in the vicinity of")} {P(event.body)}
}.
}
{SetState('eddi_context_interdicted', 'no')}
Now the VA stuff:
"Occasional Honorific" (voice disabled) As Tkael stated above, external plugin context is "speech".
Code:
Set small int (condition) [Occasionally] value as random from 1 to 2Set Text [Script] to 'Honorific'
Begin Small Integer Compare : [Occasionally] Equals 1
Execute external plugin, 'EDDI 2.4.1'
End Condition
"((EDDI ship interdicted))" (voice disabled)
Code:
Begin Text Compare : [eddi_context_interdicted] Equals 'yes' Begin Small Integer Compare : [vocal-disable] Equals 0
Set small int (condition) [random-speech] value as random from 1 to 4
Begin Small Integer Compare : [random-speech] Equals 1
Say, 'I've got a bad feeling about this.'
End Condition
Begin Small Integer Compare : [random-speech] Equals 2
Say, 'Interdiction!'
End Condition
Begin Small Integer Compare : [random-speech] Equals 3
Say, '{TXT:Ship name} was interdicted.'
End Condition
Begin Small Integer Compare : [random-speech] Equals 4
Say, 'We have been successfully interdicted '
Execute command, 'Occasional Honorific'
End Condition
Set small int (condition) [random-speech] value to [Not Set]
End Condition
Set small int (condition) [vocal-disable] value to 1
Set small int (condition) [left-panel-status] value to 0
Set small int (condition) [hardpoint] value to 0
Set small int (condition) [cargo-scoop] value to 0
Set small int (condition) [landing-gear] value to 0
Set small int (condition) [right-panel-status] value to 0
Set small int (condition) [galaxy-map] value to 0
Set small int (condition) [comms] value to 0
Set small int (condition) [sys-map] value to 0
Pause 1 second
Execute command, '[Battle;Combat;Get] [Mode;Ready];Weapons Hot' (and wait until it completes)
Execute command, 'Target Previous Ship - [Numpad /]' (and wait until it completes)
Begin Small Integer Compare : [vocal-response] Equals 1
Set small int (condition) [vocal-disable] value to 0
End Condition
End Condition
Begin Text Compare : [eddi_context_interdicted] Equals 'no'
Begin Small Integer Compare : [vocal-disable] Equals 0
Set small int (condition) [random-speech] value as random from 1 to 2
Begin Small Integer Compare : [random-speech] Equals 1
Say, 'Evaded!'
End Condition
Begin Small Integer Compare : [random-speech] Equals 2
Say, 'We have successfully escaped interdiction '
Execute command, 'Occasional Honorific'
End Condition
End Condition
Set small int (condition) [random-speech] value to [Not Set]
End Condition
Begin Small Integer Compare : [voice-response] Equals 1
Set small int (condition) [voice-disable] value to 0
End Condition
Last edited: