//set spider variable "x" on enter void main() { SetLocalInt(GetObjectByTag("Acolyte"),"x",1); }