Welcome to the foruns Walter,
You can find a lot in the help file.
MESSAGE BOXES
A message box displays a message in a dialog box, waits for the user to click a button, and returns an integer indicating which button the user clicked.
The syntax is:
return_value = msgbox ( PROMPT, BUTTONS, TITLE )
where PROMPT is the text you want to be displayed in the dialog box, TITLE is the dialog box title and BUTTONS is an integer indicating the number and type of buttons to display, the icon style to use and the identity of the default button. Instead of specifying an integer for the BUTTONS argument, you can use the following VBScript constants:
NUMBER AND TYPE OF BUTTONS:
vbOKOnly = 0 Display OK button only.
vbOKCancel = 1 Display OK and Cancel buttons.
vbAbortRetryIgnore = 2 Display Abort, Retry, and Ignore buttons.
vbYesNoCancel = 3 Display Yes, No, and Cancel buttons.
vbYesNo = 4 Display Yes and No buttons.
vbRetryCancel = 5 Display Retry and Cancel buttons.
ICON STYLE TO USE:
vbCritical = 16 Display Critical Message icon.
vbQuestion = 32 Display Warning Query icon.
vbExclamation = 48 Display Warning Message icon.
vbInformation = 64 Display Information Message icon.
IDENTITY OF THE DEFAULT BUTTON:
vbDefaultButton1 = 0 First button is default.
vbDefaultButton2 = 256 Second button is default.
vbDefaultButton3 = 512 Third button is default.
vbDefaultButton4 = 768 Fourth button is default.
You can combine the constants above by using the "+" operator.
The following example shows how to ask the player if he wants a hint:
return_value = msgbox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")
The return value depends on the button that the player has clicked. Here is the list of all the possible values:
vbOK = 1
vbCancel = 2
vbAbort = 3
vbRetry = 4
vbIgnore = 5
vbYes = 6
vbNo = 7
The following example shows how to ask the player if he wants a hint and then give it to him he clicked "OK":
return_value = msgbox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")
if return_value = vbOK then msgbox "You have clicked OK. Here is the hint..."
http://www.adventuremaker.com/help/vbsc ... htm#msgbox
Hope that helps you out.