jaydapie Posted August 13, 2009 Share Posted August 13, 2009 Can anyone see anything wrong with this script? It plays the voice and then the dialogue comes up with the choices, but whatever you choose nothing is added. Thanks for the help : ) scn JAJeremyScript Short WorkingShort playShort ChoiceShort Choosing Begin ScriptEffectStart playsound JAButlerVoice End Begin ScriptEffectFinish set choosing to -1set working to -1set play to 1 End Begin Gamemode If Play == 1If WorkingSet Working to 1 If Choosing == 0Set Working to 0 ElseIf (choosing == -1) MessageBox "Good day sir. Perhaps you would like a drink? Or maybe some food?", "Drink", "Food", "None" Set Choosing to 1 Set Choice to -1 set play to 0 EndIf EndIf EndIf ElseIf (choosing == 1) If (Choice == -1) Set Choice to GetButtonPressed ElseIf (Choice == 0) player.additem "JASkelHeal" 1 Set Choosing to 0 ElseIf (Choice == 1) player.additem "JASkelVenison" 1 Set Choosing to 0 ElseIf (Choice == 2) Set Choosing to 0 EndIf EndIf EndIf EndIfEndIfEndIfEndIfEnd Link to comment Share on other sites More sharing options...
David Brasher Posted August 15, 2009 Share Posted August 15, 2009 This reminds me quite a bit of the skeleton butler in the mod called "The Crazy Scientist." You might download it and see how his script worked. (I didn't finish playing the mod because there seemed to be lots of bugs and the story was just too silly. But the butler worked.) player.additem "JASkelHeal" 1 player.additem "JASkelVenison" 1 Shouldn't these be as follows? player.additem JASkelHeal 1 player.additem JASkelVenison 1 Link to comment Share on other sites More sharing options...
Recommended Posts