'HAL'S SLOT MACHINE VERSION 1.1
If InStr(1, UserSentence, "GAME", 1) > 0 Then
GetResponse = "If you'd like to play slot machine v.1.1 then just say: Pull Handle, If you get three like characters in a row then I'll say you win! "
End If
If InStr(1, UserSentence, "THE ODDS", 1) > 0 Then
GetResponse = "There are no odds in slot machines, It's all random. "
End If
Spinwheel = Int(Rnd * 100)
If InStr(1, UserSentence, "PULL HANDLE", 1) > 0 Then
SlotOne = HalBrain.ChooseSentenceFromFile(WorkingDir & "Slot_Machine_One.brn")
SlotTwo = HalBrain.ChooseSentenceFromFile(WorkingDir & "Slot_Machine_Two.brn")
SlotThree = HalBrain.ChooseSentenceFromFile(WorkingDir & "Slot_Machine_Three.brn")
If Spinwheel > 0 Then SlotMachine = SlotOne & SlotTwo & SlotThree
If Spinwheel < 99 Then SlotMachine = SlotOne & SlotTwo & SlotThree
If Spinwheel > 40 Then SlotMachine = SlotOne & SlotTwo & SlotThree
GetResponse = SlotMachine & " "
End If
If InStr(1, GetResponse, "| =-O || =-O || =-O |", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "| >

|| >

|| >

|", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "| ;-) || ;-) || ;-) |", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "| :-D || :-D || :-D |", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "| 8-) || 8-) || 8-) |", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "|

||

||

|", 1) > 0 Then GetResponse = GetResponse & " You Win! "
If InStr(1, GetResponse, "|

||

||

|", 1) > 0 Then GetResponse = GetResponse & " You Win! "
Download Attachment:
Slot_Machine_one.brn568 Bytes
Download Attachment:
Slot_Machine_Two.brn570 Bytes
Download Attachment:
Slot_Machine_Three.brn572 Bytes