you have a sub in your first include file, right there is your error,
if you have a include file that is a sub place it at the bottom of the program.
'$include: 'lordwrite.bas' <----- guy right here is a SUB!!!
'$include: 'moblist.bi'
'$include: 'equipment.bi'
just as Fellippe has been saying.
Kinda neat that you want to remake LORD though, i've thought about it a few times.. I love remaking or cloning old games.
can't wait to see how this turns out.