Get your own free workspace
View
 

DialogOutput

Page history last edited by Gamemaster 3 years, 11 months ago

 

DialogOutput

Usage:

                DialogOutput(Actor, Dialog, Message, Red, Green, Blue)

Description:

The DialogOutput adds a message to a dialog in the colour specified. The Red, Green and Blue parameters should be between 0 and 255.

Example:

                Function Main()
                        Player = Actor()
                        D = OpenDialog(Player, ContextActor(), "Blacksmith")
                                DialogOutput(Player, D, "Welcome to my shop! Which item do you require?", 255, 255, 255)
                                Result = DialogInput(Player, D, "A mace (40 gold)", "Nothing")
                                If (Result == 1)
                                        GiveItem(Player, "Razor mace", 1)
                                ElseIf (Result == 2)
                                        DialogOutput(Player, D, "Right you are, bye then!", 255, 255, 255)
                                        DialogInput(Player, D, "Bye")
                                        CloseDialog(Player, D)
                                        Return()
                                EndIf
                                DialogOutput(Player, D, "Thank you! Come back when you want something else...", 255, 255, 255)
                                DialogInput(Player, D, "Bye")
                        CloseDialog(Player, D)
                        Return()
                End Function

 

Comments (0)

You don't have permission to comment on this page.