This example script will compare two weapons using standard AD&D mathematics and then echoing or sending the result.
NOTE: If you already have a script file, you can just append the code to the end of the script.
Instructions for use are inside the script. Click here to download the script.