Thank you.
Scriptname SomeKindOfNameHere extends ObjectReferenceMessage Property Popup Auto ;Sets up a property of the type Message. The exact message this refers to has to be defined in the script's Properties window.Event OnActivate(ObjectReference akActionRef) ;An event sent when for example a container, like a barrel, is opened. akActionRef is the reference that activated the object.if(akActionRef == Game.GetPlayer()) ;If the reference that activates the object is the player, then do the following. int Menu = Popup.Show() ;Create a variable (Menu) that receives the value of the button pressed when showing the message (Popup). if(Menu == 0) ;If the first button is pressed. ;Do something here. elseif(Menu == 1) ;If the second button is pressed. ;Do something else here. endifendifEndEvent