Question, what can these constants be used for

const int WPN_SWORD = 1;
const int WPN_BEAM = 2;
const int WPN_BRANG = 3;
const int WPN_BOMB = 4;
const int WPN_SBOMB = 5;
etc..

these are Link's weapons if I am not mistaken. So what can you do with them, I know that Link's onscreen weapons cannot be affected via script(yet). I've been reading the std_zh and the zscript.txt and trying to find out what every function / constant does, can't figure this one out.