VonZorch
First time out of the vault

I am trying to write my first script and getting a very frustrating error.
Code

The posted code has been reduced to the simplest possibility from the whole script.
Can someone tell please me what is wrong here?
I've tried every script editor and/or compiler I can find.
Also, is there any way to have a script trigger when an item is put into, or taken from, the armor or hand slots? I think I have a clumsy method if I could get the script to compile, I'm looking for a simple one.
Code
I get an "expecting ';'", at LVAR_IS_WORN :=1;. I don't see where I am missing a ; in the code.#include "..\headers\define.h"
#define NAME SCRIPT_ZIUNDIES
#include "..\headers\command.h"
procedure critter_p_proc;
#define LVAR_IS_WORN :=0;
procedure critter_p_proc begin
LVAR_IS_WORN :=1;
end

The posted code has been reduced to the simplest possibility from the whole script.
Can someone tell please me what is wrong here?
I've tried every script editor and/or compiler I can find.
Also, is there any way to have a script trigger when an item is put into, or taken from, the armor or hand slots? I think I have a clumsy method if I could get the script to compile, I'm looking for a simple one.