Jump to content

ibutton scripting, help please


Recommended Posts

I know this script is wrong because it doesn't work even though it does compile and save. So please help me fix this.

 

 

MiscObject Property EmptyBottle Auto
MiscObject Property FullBottle Auto
Message Property Fill Auto
Message Property NoCont Auto

Event OnActivate(ObjectReference akActionRef)
Int iButton = Fill.Show()

If iButton == 0 && (Game.GetPlayer().GetItemCount(EmptyBottle) >= 1)
Game.GetPlayer().RemoveItem(EmptyBottle, 1)
Game.GetPlayer().AddItem(FullBottle, 1)

If iButton == 0 && (Game.GetPlayer().GetItemCount(EmptyBottle) < 1)
NoCont.show()

EndIf

EndIf

EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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