The problem with a version() function is that sometimes it would return a release number and other times it would return a revision number. It's rather troublesome, but I suppose that decoding the meaning of the output could be left to teh script writer.
Easier to "decode" than you might think
Revision responses always contain an r before the number, major versions always have a v, so you can determine what kind of build it is that way pretty easily.
ie. "KoLmafia r7643" or "KoLmafia v13.5"
You don't even have to do that though, because major versions are most likely going to always have lower numbers than a revision build.
A really simple version check could be done with:
Code:
if (to_int(version()) < 135) {
abort("Please update to version 13.5");
} else if (to_int(version()) < 7643) {
abort("Please update to revision 7543);
}