I create the new level in wed, and then I use the main.c script from your code. I build the level but when I run the level. I got some error like this:
Error in 'inventory.c' line 1678:'REAR' undeclared identifier <if((ui_equip_slot_array[0]=0)&&(player.ITEM_TYPE != REAR))