Jump to content

Script won't work


jaydapie

Recommended Posts

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 Working

Short play

Short Choice

Short Choosing

 

Begin ScriptEffectStart

 

playsound JAButlerVoice

 

End

 

Begin ScriptEffectFinish

 

set choosing to -1

set working to -1

set play to 1

 

End

 

Begin Gamemode

 

If Play == 1

If Working

Set Working to 1

 

If Choosing == 0

Set 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

EndIf

EndIf

EndIf

EndIf

End

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...