Author Topic: Dynamic Command issue  (Read 439 times)

jjjcabi

  • Newbie
  • *
  • Posts: 3
Dynamic Command issue
« on: December 10, 2024, 12:48:12 PM »
I have this dynamic command:
"[aspen;chaos;cylon;dragon;gunfighter;nightmare][11..14;21..24;][roger;roger wilco;]"

and I get this error (see image) - BUT if I remove the last ";" of the optional end [ ] , the error does NOT come up and saves normally?
Happens to all of my Dynamic Commands with an Optional last bracketed phrases [... ;] ?



Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4800
  • RTFM
Re: Dynamic Command issue
« Reply #1 on: December 10, 2024, 12:50:22 PM »
Have you checked your profile to make sure there are no other commands with that phrase?

If so, export your profile and attach it to a post here, so it can be investigated further.

jjjcabi

  • Newbie
  • *
  • Posts: 3
Re: Dynamic Command issue
« Reply #2 on: December 10, 2024, 01:49:22 PM »
The phrase does exist in other commands within the same Profile. However, why does the Dynamic Command line work when I remove the last semi-colon making the last bracket set "non-optional", and does NOT work with the semi-colon when I want it to be Optional?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4800
  • RTFM
Re: Dynamic Command issue
« Reply #3 on: December 10, 2024, 01:52:24 PM »
Because without the semicolon at the end, the phrase "aspen 11" would not be generated.

When you're confused about which phrases your input in the "When I say" field will generate, this command can help provide clarity.

jjjcabi

  • Newbie
  • *
  • Posts: 3
Re: Dynamic Command issue
« Reply #4 on: December 10, 2024, 02:10:43 PM »
Thanks for the info.

What would be a better / more efficient way to implement every command in the same profile to be listening for a certain phrase of multiple callsigns ( [aspen;chaos;cylon;dragon;gunfighter;nightmare][1..4;11..14;21..24;] ) without having to copy/paste the whole string into each and every command's "When I say" block?  I couldn't really find anything like this in the .pdf file (manual)
« Last Edit: December 10, 2024, 04:24:32 PM by jjjcabi »