Author Topic: Speech options format  (Read 2032 times)

jcdick1

  • Jr. Member
  • **
  • Posts: 55
Speech options format
« on: February 11, 2021, 08:07:50 PM »
I have a speech response to completing a system scan in E:D that has a couple of options using EDDI to feed variables.  It looks like this:

Code: [Select]
[All [{INT:EDDI system scan complete count};] bodies;everything] in [this system;{TXT:System name (spoken)}] have been scanned [with the [F S S;full spectrum scanner];]
But it just says "All bodies" and stops.  It should provide me with I think eighteen different possible variations.

Could a second pair of eyeballs maybe pick out why it doesn't complete?

Thanks!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Speech options format
« Reply #1 on: February 11, 2021, 08:23:55 PM »
Square brackets cannot be nested (E.G. "[a phrase;another phrase] [an optional phrase;]" is correct, "[a phrase;another phrase [an optional phrase;]]" is not)

Your current input generates these phrases:
Code: [Select]
All Not set bodies
All bodies
everything in this system have been scanned with the F S S
everything in this system have been scanned with the full spectrum scanner
everything in Not set have been scanned with the F S S
everything in Not set have been scanned with the full spectrum scanner
"Not set" is where your variable values would go.

You can check which phrases will be generated using this command (as the syntax for dynamic command sections and dynamic responses is identical)


The corrected version would look something like this:
Code: [Select]
[All {INT:EDDI system scan complete count} bodies;All bodies;everything] in [this system;{TXT:System name (spoken)}] have been scanned [with the F S S;with the full spectrum scanner;]

jcdick1

  • Jr. Member
  • **
  • Posts: 55
Re: Speech options format
« Reply #2 on: February 11, 2021, 08:26:59 PM »
Okay, I need to break them out then.  Thanks!