#!/bin/bash case `kdialog --radiolist "JFDuke3D Multi-player" "host" "Host" 0 "join" "Join" 0` in host) players=`kdialog --inputbox "Number of players" 2` if test -z $players; then exit; fi jfduke3d /net /n0 $players ;; join) hostip=`kdialog --inputbox "The host's IP address" "0.0.0.0"` if test -z $hostip; then exit; fi jfduke3d /net /n0 $hostip ;; esac