#!/bin/sh

BOTS=`Xdialog 2>&1 --title "Bzflag" --ok-label "Solo" --cancel-label "Multiplayer" --rangebox "After making your selection below Bzflag will launch. For a solo game or if you want to host a network game you will\n have to start the server first. This option is found under the Join Game menu option.\n Please set the number of bots for solo play or click Multiplayer for network play." 0 0 1 20 10`

case $? in
  0)
    /usr/bin/bzflag -solo $BOTS ;;
  1)
    /usr/bin/bzflag ;;
  255)
    echo "Box closed.";;
esac
