Author Topic: Im kinda stuck :)  (Read 4885 times)

Cassan0va

  • Posts: 8
Im kinda stuck :)
« on: June 20, 2016, 02:17:59 PM »
I want to be able to answer the same thing but for different actions.

Example:

Start music please
-- Anything special you want to listen to? Or should i pick?
You pick
-- Okay Latest Hits it is

Example 2:

I want to watch a movie
-- Anything special you want to watch? Or should i pick?
You pick
-- Okay Lets watch a comedy.

Now the use i want to tie to both actions or even multiple would be "you pick, you decide" etc.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4755
  • RTFM
Re: Im kinda stuck :)
« Reply #1 on: June 20, 2016, 09:29:25 PM »
"Start music please"
Code: [Select]
Set Text [PickCMD] to 'Music'
Say, 'Anything special you want to listen to? Or should i pick?'

"I want to watch a movie"
Code: [Select]
Set Text [PickCMD] to 'Movie'
Say, 'Anything special you want to watch? Or should i pick?'

"You pick"
Code: [Select]
Begin Text Compare : [PickCMD] Equals 'Music'
    Say, 'Okay Latest Hits it is'
Else If Text Compare : [PickCMD] Equals 'Movie'
    Say, 'Okay Lets watch a comedy.'
Else
    Say, 'Wait, what did you want to do?'
End Condition
Set Text [PickCMD] to [Not Set]

Cassan0va

  • Posts: 8
Re: Im kinda stuck :)
« Reply #2 on: June 22, 2016, 12:43:26 PM »
Thanks ill give it a whack :)

foxpur

  • Newbie
  • *
  • Posts: 24
Re: Im kinda stuck :)
« Reply #3 on: June 22, 2016, 01:24:53 PM »
Ooooh... that will save me some issues