Author Topic: Equivalent WhenISay() with composite command ?  (Read 783 times)

Ciryan

  • Newbie
  • *
  • Posts: 14
Equivalent WhenISay() with composite command ?
« on: January 10, 2020, 06:06:49 PM »
Hello there !

I was playing with inline function and I wanted to try WhenISay() with composite command. Saddly, the result isn't the same as it is with full command.
Is there a solution the know how a composite command is written in the "When I say" part when I speak it ?
I tried PrefixPart() and SuffixPart() but it doesn't work.

Thank you.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Equivalent WhenISay() with composite command ?
« Reply #1 on: January 11, 2020, 08:39:28 AM »
There is no method for retrieving that information that I know of.

You could set variables inside each half of the composite command to the contents of their "When I say" values manually, then retrieve that value, but that is of course much less practical.

Ciryan

  • Newbie
  • *
  • Posts: 14
Re: Equivalent WhenISay() with composite command ?
« Reply #2 on: January 11, 2020, 10:33:21 AM »
Thanks for the answer.
Your solution wouldn't do it sadly. I need to know the full structure of the command (prefix + suffix) before the command leaves the prefix to run the suffix.
Well, guess I'm gonna have to find something else.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Equivalent WhenISay() with composite command ?
« Reply #3 on: January 11, 2020, 10:35:43 AM »
You can actually jump into a suffix from a prefix and back again, though that's even less practical.