Jump to content

Recommended Posts

Posted

How can you add a message box to a script like the one shown below? I want the player to be able to walk up to the activator, activate it, and then get a message box that will allow them to say yes or no. If they say yes, the toggle script runs, if they say no, nothing happens.

 

 

ObjectReference Property HFOff Auto
ObjectReference Property HFON Auto

Event OnActivate(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer()
If HFON.IsDisabled()
HFOff.Disable()
HFON.Enable()
Else
HFON.Disable()
HFOff.Enable()

Endif
Endif

Endevent

 

Posted

Create a Message record

Add a message property

Assign the message you created

 

Assuming Yes is the first button (value 0) and No is the second button (value 1)

Put inside the OnActivate event:

 

  Reveal hidden contents

 

 

FYI - It has been a while since I messed with message boxes. If I got something wrong, hopefully someone can point out the flaws.

Posted (edited)
Adding a little more detail to IsharaMeradin post. ( If it's alright with you, i don't mean to intrude ).
First create a message MENU, here is video tutorial :
Then your script should look something like this, or this one if you like :
  Reveal hidden contents

 

EDIT : Grammar mistake...

Edited by maxarturo
Posted (edited)

Awesome! Thanks to the both of you. I'll check this out and see if it works.

 

Edit: Just tried it out and it worked perfectly! Thanks again!

Edited by KiokothePirate
  • Recently Browsing   0 members

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