You can also put this in an alias.
if ($chan !isin %chan.list) { halt }
if (%digibattle == $null) { notice $nick you're not in a battle | halt }
if (%digimon == $null) { notice $nick who are you trying to attack? use !digimon first | halt }
if (%digibattle != $nick) { notice $nick you're not in a battle! | halt }
if ($hget(digimon,$nick) != Ankylomon) { notice $nick only Ankylomon can use that attack! | halt }
everything in it was necessary I didn't I suppose I could've made a alias for the end thing though... i'll shorten it up by doing that real quick