functions are used to eighter make your own commands or to make 1 command of a list of commands.
example of making your own command:
function betterprint(x,y,string$)
set cursor x,y
print string$
endfunction
now you can use your self made command by typing:
betterprint(10,15,"your text here")
this will print "your text here" 10 to the right and 15 pixels down on the screen.
example of making 1 command of a list of commands:
function list()
print "bla"
print "blabla"
print "blablabla"
print "blablablabla"
endfunction
you could yust use the print command every time but when your programming a game you will have to use things multiple times so it's handy if you make a single command for a list of commands which your gonna use multiple times.
i hope this helps.
Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Riva TNT2 Ultra 32mb