Message box fix in help file.

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Message box fix in help file.

Postby Candle » Wed Jan 31, 2007 6:28 am

In the help file it tells you to use this code if you want to give the player a hint with a yes/no messagebox.

Code: Select all
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..."

And if you look it is telling you to use OK in the if return_value = vbOK and it should be If return_value = vbYes.

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..."


It should look like this.
return_value = MsgBox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")
If return_value = vbYes then MsgBox "You have clicked Yes. Here is the hint..."

Hope that helps.

Here is how it looks if they click No.
Code: Select all
return_value = MsgBox ( "Do you want a hint?", vbYesNo + vbQuestion, "HINT?")
If return_value = vbYes then MsgBox "You have clicked Yes. Here is the hint..."
If return_value = vbNo then MsgBox "You have clicked No. No hint..."
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby GM-Support » Fri Feb 02, 2007 4:21 pm

You are right! Thanks Candle for reporting the mistake!

GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests