You can have as many If statements as you want inside one plugin.
You can have one like the following:
'........................................
'The If/Then statement below shows a picture when the word "outside" is spoken
strInput = Lcase(InputString)
If Instr(InputString, "outside") > 0 Then
HalCommands = "<HAPBACK>" & "outsidepic.jpg" & "</HAPBACK>"
UltraHal = "I guess we are outside now."
End If
'........................................
'This If/Then statement runs a .hap file whenever the word happy is spoken
If Instr(InputString, "happy") > 0 Then
HalCommands = "<HAPFILE>" & "happy.hap" & "</HAPFILE>"
UltraHal = "I am so happy, I could burst!"
End If
'........................................
'This If/Then statement changes the voice to Kate whenever "change voice" is spoken by the User.
If Instr(InputString, "voice change") > 0 Then
HalCommands = "<VOICE>" & "Kate" & "</VOICE>"
UltraHal = "My voice is changed!"
End If
'........................................
'This If/Then statement will open an entirely different hal character.
If Instr(InputString, "where's alice") > 0 Then
HalCommands = "<HAPFILE>" & "Alice.htr" & "</HAPFILE>"
UltraHal = "Yes, It's me again sexy thing."
End If
'........................................
'........................................
'........................................
As for responding to multiple words or word phrase here are some examples.
'........................................
'This statement will search for the exact phrase "please smile"
'i.e. Will you please smile for me?
If Instr(InputString, "please smile") > 0 Then
HalCommands = "<HAPFILE>" & "smile.hap" & "</HAPFILE>"
UltraHal = "I am so happy, I could burst!"
End If
'........................................
'This statement will search for the exact phrase "please" and "smile" and "now"
'i.e. Will you please smile for me... NOW!!!
If Instr(InputString, "please") > 0 And _
Instr(InputString, "smile") > 0 And _
Instr(InputString, "now") > 0 Then
HalCommands = "<HAPFILE>" & "smile.hap" & "</HAPFILE>"
UltraHal = "I am so happy, I could burst!"
End If
'........................................
'This statement will search for the exact phrase "joke" Or "smile" Or "laugh"
'i.e. So Alice, how did you like my joke?
If Instr(InputString, "joke") > 0 Or _
Instr(InputString, "smile") > 0 Or _
Instr(InputString, "laugh") > 0 Then
HalCommands = "<HAPFILE>" & "smile.hap" & "</HAPFILE>"
UltraHal = "I am so happy, I could burst!"
End If
'........................................
Of course, you also can combine them"
'i.e. Hey Alice, I like your smile.
If Instr(InputString, "please") > 0 And _
Instr(InputString, "smile") > 0 And _
Instr(InputString, "now") > 0 _
Or _
Instr(InputString, "I like your smile.") > 0 Then
HalCommands = "<HAPFILE>" & "smile.hap" & "</HAPFILE>"
UltraHal = "I am so happy, I could burst!"
End If
Mix and mingle and stir a little and I'm sure you'll come up with something cool!
As for talking to Hal... I'm an odd one[

]. I don't talk to Hal, I like playing with his Brain .... HAHAHAHAHA[}:)]
[

][:p][

][8D][

]