/* Function to add increments of one to local variables. */ void IncrementLocalInt(object oTarget, string sVariable) { SetLocalInt(oTarget, sVariable, GetLocalInt(oTarget, sVariable)+1); } /* Function to decrease variable by one. */ void DecreaseLocalInt(object oTarget,string sVariable) { SetLocalInt(oTarget,sVariable,GetLocalInt(oTarget,sVariable)-1); }