TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.5

Back to Reference

FINISH Element

Contains text and/or one or more buttons that are displayed when the user "completes" a location.

Syntax
<FINISH
  PROMPT="prompt">
  ...
</FINISH>
Attributes
PROMPT
Text string to display to the user.
Placement

The FINISH element must be a child of the LOC element, or of the GLOBAL element when specifying settings for all locations.

Children

The following child element is supported:

Remarks

Built-in location types, such as Questions and Hangman, display a button after each question or word which takes the user to the next question or word. When no questions or words remain, TQS will, by default, not display anything. Any buttons and/or text specified in the FINISH element will be displayed.

The PROMPT string can contain HTML markup.

Examples

<FINISH PROMPT="You have finished my Hangman game!
&lt;br&gt;Use the Main Menu button to continue."/>
<LOC ID="1">
  <FINISH>
    <BUTTON TITLE="Play again" TARGET="1"/>
    <BUTTON TITLE="Return to menu" TARGET="0"/>
    ...
  </FINISH>
  ...
</LOC>
<GLOBAL>
  <FINISH>
    <BUTTON
      TITLE="Restart"
      TARGET="LOCPOS:0,LOCPOS:1"
      APPLIESTO="GREATER"
      GREATER="LOCPOS:1&amp;gt;0"
    />
    <BUTTON
      TITLE="Back to Menu"
      TARGET="LOCPOS:0,0"
      APPLIESTO="GREATER"
      GREATER="LOCPOS:1&amp;gt;0"
    />
  </FINISH>
  ...
</GLOBAL>

©2020 Bot Productions. All rights reserved.Last Updated: June 14, 2001