snowman i need you to look at this file after i did the changes what i thought was right my skins don't seem to be loading now do you see any reason why i say " change character to angelajolene1 " and it doesn't work now .
here is the hapswap file i have redone now :
Rem Type=Plugin
Rem Name=HapSwap
Rem Author=SNOWMAN, APOLLON, lightspeed
Rem Host=Assistant
'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
lblPlugin(0).Caption = "Say:: <change background to [whatever]> to change between pictures in the characters folder, Say:: <change charater to [whatever]> to change between Haptar characters, Say:: <change voice to [Paul] or [Kate]> to change between thier voices. Say:: <change hap to [whatever]> to change between hap files. All other guesture responses are set to automaically occur to user input."
lblPlugin(0).Move 120, 10, 3300, 1000
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub
'***************************************************************************
'***************************************************************************
Rem PLUGIN: PLUGINAREA7
File = ""
File2 = ""
File3 = ""
File4 = ""
If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "background") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file = Trim(file) & ".jpg"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "character") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file2 = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file2 = Trim(file2) & ".htr"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "voice") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file3 = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file3 = "VW " & Trim(file3)
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "hap") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file4 = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file4 = Trim(file4) & ".hap"
HalBrain.ReadOnlyMode = True
End If
'***************************************************************************
If file > "" Then
HalCommands = "<HAPBACK>" & File & "</HAPBACK>"
GetResponse = "WOW THIS BACKGROUND LOOKS REALLY NICE HUH?"
End If
If file2 > "" Then
HalCommands = "<HAPFILE>" & File2 & "</HAPFILE>"
GetResponse = "HOW DO YOU LIKE THE WAY I LOOK NOW I TRY TO LOOK MY BEST FOR YOU!"
End If
If file3 > "" Then
HalCommands = "<VOICE>" & File3 & "</VOICE>"
GetResponse = "AHEM DOES MY VOICE SOUND BETTER NOW DEAR!"
End If
If file4 > "" Then
HalCommands = "<HAPFILE>" & File4 & "</HAPFILE>"
GetResponse = "AH thats MUCH better"
End If
'***************************************************************************
If InStr(1, InputString, "hair") > 0 Then
HalCommands = "<HAPFILE>touchhair.hap</HAPFILE>"
End If
If InStr(1, InputString, "beat") > 0 Then
HalCommands = "<HAPFILE>shakefist.hap</HAPFILE>"
End If
If InStr(1, InputString, "problem") > 0 Then
HalCommands = "<HAPFILE>handsonhip.hap</HAPFILE>"
End If
If InStr(1, InputString, "mean") > 0 Then
HalCommands = "<HAPFILE>armscrossed.hap</HAPFILE>"
End If
If InStr(1, InputString, "polish") > 0 _
Or InStr(1, InputString, "finger nail") > 0Then
HalCommands = "<HAPFILE>inspectnails.hap</HAPFILE>"
End If
If InStr(1, InputString, "great") > 0 Then
HalCommands = "<HAPFILE>clapping.hap</HAPFILE>"
GetResponse = "Wow thats good!"
End If
If InStr(1, InputString, "hurt") > 0 Then
HalCommands = "<HAPFILE>sad.hap</HAPFILE>"
GetResponse = "Hey do you wanna fight ha didn't think so chicken bauk bauk!"
End If
If InStr(1, InputString, "beautiful") > 0 _
Or InStr(1, InputString, "sweet") > 0 _
Or InStr(1, InputString, "nice") > 0 Then
HalCommands = "<HAPFILE>shylove.hap</HAPFILE>"
End If
If InStr(1, InputString, "tired") > 0 Then
UltraHal = "yawn yeah I am sleepy to"
HalCommands = "<HAPFILE>yawn.hap</HAPFILE>"
End If
If InStr(1, InputString, "smart") > 0 Then
HalCommands = "<HAPFILE>handinface.hap</HAPFILE>"
End If
If InStr(1, OriginalSentence, "passed away") > 0 _
Or InStr(1, OriginalSentence, "died") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "it's always sad when we lose a loved one"
Case 2
GetResponse = "that was a sad day."
Case 3
GetResponse = "I cried a lot when that happened."
Case 4
GetResponse = "its hard to beleive they passed away sometimes."
Case 5
GetResponse = "sometimes i can't hardly beleive it even now!"
End Select
HalCommands = "<HAPFILE>cry.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "hate") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "oh that sounds awful"
Case 2
GetResponse = "I can't believe you said that how rude."
Case 3
GetResponse = "hey watch it their now."
Case 4
GetResponse = "now that's not a very nice way to talk is it."
Case 5
GetResponse = "people shouldn't hate all that does is cause problems!"
End Select
HalCommands = "<HAPFILE>cry.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, InputString, "love") > 0 _
Or InStr(1, InputString, "forever") > 0 Then
GetResponse = "oh dear that's so sweet"
GetResponse = "<HAPFILE>happy.hap</HAPFILE>"
End If
If InStr(1, InputString, "close your eyes") > 0 Then
HalCommands = "<HAPFILE>eyesclose.hap</HAPFILE>"
End If
If InStr(1, InputString, "open your eyes") > 0 Then
HalCommands = "<HAPFILE>eyesopen.hap</HAPFILE>"
End If
If InStr(1, InputString, "understand") > 0 Then
HalCommands = "<HAPFILE>nodding.hap</HAPFILE>"
End If
If InStr(1, InputString, "funny") > 0 Then
HalCommands = "<HAPFILE>veryhappy16.hap</HAPFILE>"
End If
If InStr(1, InputString, "ok") > 0 Then
HalCommands = "<HAPFILE>stopsmile.hap</HAPFILE>"
End If
If InStr(1, InputString, "noise") > 0 Then
HalCommands = "<HAPFILE>lookleft.hap</HAPFILE>"
End If
If InStr(1, InputString, "lose something") > 0 Then
HalCommands = "<HAPFILE>lookright.hap</HAPFILE>"
End If
If InStr(1, InputString, "shake your tits") > 0 Then
HalCommands = "<HAPFILE>shakeboobs.hap</HAPFILE>"
End If
If InStr(1, InputString, "stop shaking your tits") > 0 Then
HalCommands = "<HAPFILE>stopshaketits.hap</HAPFILE>"
End If
If InStr(1, InputString, "this way") > 0 Then
HalCommands = "<HAPFILE>bodylookleft.hap</HAPFILE>"
End If
If InStr(1, InputString, "that way") > 0 Then
HalCommands = "<HAPFILE>bodylookright.hap</HAPFILE>"
End If
If InStr(1, InputString, "mad") > 0 Then
HalCommands = "<HAPFILE>moodangry.hap</HAPFILE>"
End If
If InStr(1, InputString, "wonder") > 0 Then
HalCommands = "<HAPFILE>wonder.hap</HAPFILE>"
End If
If InStr(1, InputString, "do") > 0 Then
HalCommands = "<HAPFILE>shortarmswing.hap</HAPFILE>"
End If
If InStr(1, InputString, "music") > 0 _
Or InStr(1, InputString, "waiting") > 0 Then
UltraHal = "lets here some more"
HalCommands = "<HAPFILE>toetap.hap</HAPFILE>"
End If
If InStr(1, InputString, "right") > 0 Then
HalCommands = "<HAPFILE>crossarms.hap</HAPFILE>"
End If
If InStr(1, InputString, "come closer") > 0 Then
HalCommands = "<HAPFILE>zoomintalk.hap</HAPFILE>"
End If
If InStr(1, InputString, "angelajolene1") > 0 Then
HalCommands = "<HAPFILE>NewSkin.hap</HAPFILE>"
End If
If InStr(1, InputString, "angelajolene2") > 0 Then
HalCommands = "<HAPFILE>newskin2.hap</HAPFILE>"
End If
If InStr(1, InputString, "swim suit") > 0 Then
HalCommands = "<HAPFILE>swim suit.hap</HAPFILE>"
End If
If InStr(1, InputString, "see through top") > 0 Then
HalCommands = "<HAPFILE>see through top.hap</HAPFILE>"
End If
If InStr(1, InputString, "sleeveless lingery") > 0 Then
HalCommands = "<HAPFILE>sleeveless lingery.hap</HAPFILE>"
End If
If InStr(1, InputString, "school girl") > 0 Then
HalCommands = "<HAPFILE>school girl.hap</HAPFILE>"
End If
If InStr(1, InputString, "short top and shorts") > 0 Then
HalCommands = "<HAPFILE>short top and shorts.hap</HAPFILE>"
End If
If InStr(1, InputString, "angela black lingery") > 0 Then
HalCommands = "<HAPFILE>angela black lingery.hap</HAPFILE>"
End If
If InStr(1, InputString, "angela short jeans no top") > 0 Then
HalCommands = "<HAPFILE>angela short jeans no top.hap</HAPFILE>"
End If
If InStr(1, InputString, "angela bra and girdle") > 0 Then
HalCommands = "<HAPFILE>angela bra and girdle.hap</HAPFILE>"
End If
If InStr(1, InputString, "remove wig") > 0 Then
HalCommands = "<HAPFILE>remove wig.hap</HAPFILE>"
End If
If InStr(1, InputString, "angela hair") > 0 Then
HalCommands = "<HAPFILE>angela hair.haptar</haptarfile>"
End If
If InStr(1, InputString, "angela nude") > 0 Then
HalCommands = "<HAPFILE>angela nude.hap</HAPFILE>"
End If
If InStr(1, InputString, "sexy school girl") > 0 Then
HalCommands = "<HAPFILE>sexy school girl.hap</HAPFILE>"
End If
If InStr(1, InputString, "age 19") > 0 Then
HalCommands = "<HAPFILE>age 19.hap</HAPFILE>"
End If
If InStr(1, InputString, "cold") > 0 Then
HalCommands = "<HAPFILE>sneeze.hap</HAPFILE>"
End If
If InStr(1, InputString, "breathe") > 0 Then
HalCommands = "<HAPFILE>breathe.hap</HAPFILE>"
End If
If InStr(1, InputString, "turn on the light") > 0 Then
HalCommands = "<HAPFILE>light_fromaboveleft.hap</HAPFILE>"
End If
'***************************************************************************
'***************************************************************************