how to use OpenHtmlWindow

Discussion in 'Questions, Discussions & Feedback' started by dionis, Apr 1, 2022.

  1. dionis

    dionis Ensign

    Joined:
    Apr 27, 2016
    Messages:
    22
    Likes Received:
    2
    Once again, I ran into a problem. How to write the dialog code correctly so that a window with a website or video opens?
    { +Dialogue Name: videogey
    NPCName: Laura
    Output: "txt_lvl"
    Option_1: "start"
    OptionExecute_1: OpenHtmlWindow('Google', 'https://google.com', 0.9f, 0.9f)
    OptionNext_1: End
    }
    What is the mistake here? Tell me please.
     
    #1
    Germanicus likes this.
  2. Taelyn

    Taelyn Administrator Staff Member Community Manager

    • Developer
    • Administrator
    Joined:
    Oct 4, 2021
    Messages:
    897
    Likes Received:
    1,393
    Because of your "end" it wont work
    the dialogue needs to stay open
    "end" closes it so the window wont be opened either

    So use answers to do it


    Option_1: xxxxx
    OptionNext_1: NextDialogueState
    Execute_1: "OpenHtmlWindow('Official Discord', 'https://discord.gg/empyrion', 0.9f, 0.9f)"

    Then close it in this NextDialogueState
     
    #2
    Germanicus likes this.
  3. dionis

    dionis Ensign

    Joined:
    Apr 27, 2016
    Messages:
    22
    Likes Received:
    2
    Thank u it works!
     
    #3
    Taelyn likes this.

Share This Page