name Exit
type none
antigravity 100
setlayer 100
offscreenkill 3000
anim idle # arrow pointing right
@script
void self = getlocalvar("self");
void P1 = getplayerproperty(0, "entity");
void P2 = getplayerproperty(1, "entity");
void P3 = getplayerproperty(2, "entity");
void P4 = getplayerproperty(3, "entity");
float x = getentityproperty(self, "x");
float z = getentityproperty(self, "z");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
float Tx3 = getentityproperty(P3, "x");
float Tz3 = getentityproperty(P3, "z");
float Tx4 = getentityproperty(P4, "x");
float Tz4 = getentityproperty(P4, "z");
float Disx1 = Tx1 - x;
float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;
float Disx3 = Tx3 - x;
float Disz3 = Tz3 - z;
float Disx4 = Tx4 - x;
float Disz4 = Tz4 - z;
if(Disz1 < 0){
Disz1 = -Disz1;
}
if(Disz2 < 0){
Disz2 = -Disz2;
}
if(Disz3 < 0){
Disz3 = -Disz3;
}
if(Disz4 < 0){
Disz4 = -Disz4;
}
if(frame == 1){
if(Disx1 >= -20 && Disx1 <= 20 && Disz1 <= 10){
jumptobranch(Name, 1);
} else if(Disx2 >= -20 && Disx2 <= 20 && Disz2 <= 10){
jumptobranch(Name, 1);
} else if(Disx3 >= -20 && Disx3 <= 20 && Disz3 <= 10){
jumptobranch(Name, 1);
} else if(Disx4 >= -20 && Disx4 <= 20 && Disz4 <= 10){
jumptobranch(Name, 1);
}
}
@end_script
loop 1
delay 5
offset 18 16
frame data/chars/misc/markers/dir/dirR.png
frame data/chars/misc/markers/dir/dirR.png
anim follow1 # arrow pointing up
@script
void self = getlocalvar("self");
void P1 = getplayerproperty(0, "entity");
void P2 = getplayerproperty(1, "entity");
void P3 = getplayerproperty(2, "entity");
void P4 = getplayerproperty(3, "entity");
float x = getentityproperty(self, "x");
float z = getentityproperty(self, "z");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
float Tx3 = getentityproperty(P3, "x");
float Tz3 = getentityproperty(P3, "z");
float Tx4 = getentityproperty(P4, "x");
float Tz4 = getentityproperty(P4, "z");
float Disx1 = Tx1 - x;
float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;
float Disx3 = Tx3 - x;
float Disz3 = Tz3 - z;
float Disx4 = Tx4 - x;
float Disz4 = Tz4 - z;
if(Disz1 < 0){
Disz1 = -Disz1;
}
if(Disz2 < 0){
Disz2 = -Disz2;
}
if(Disz3 < 0){
Disz3 = -Disz3;
}
if(Disz4 < 0){
Disz4 = -Disz4;
}
if(frame == 1){
if(Disx1 >= -20 && Disx1 <= 20 && Disz1 <= 10){
jumptobranch(Name, 1);
} else if(Disx2 >= -20 && Disx2 <= 20 && Disz2 <= 10){
jumptobranch(Name, 1);
} else if(Disx3 >= -20 && Disx3 <= 20 && Disz3 <= 10){
jumptobranch(Name, 1);
} else if(Disx4 >= -20 && Disx4 <= 20 && Disz4 <= 10){
jumptobranch(Name, 1);
}
}
@end_script
loop 1
delay 5
offset 18 16
frame data/chars/misc/markers/dir/dirU.png
frame data/chars/misc/markers/dir/dirU.png
anim follow2 # arrow pointing down
@script
void self = getlocalvar("self");
void P1 = getplayerproperty(0, "entity");
void P2 = getplayerproperty(1, "entity");
void P3 = getplayerproperty(2, "entity");
void P4 = getplayerproperty(3, "entity");
float x = getentityproperty(self, "x");
float z = getentityproperty(self, "z");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
float Tx3 = getentityproperty(P3, "x");
float Tz3 = getentityproperty(P3, "z");
float Tx4 = getentityproperty(P4, "x");
float Tz4 = getentityproperty(P4, "z");
float Disx1 = Tx1 - x;
float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;
float Disx3 = Tx3 - x;
float Disz3 = Tz3 - z;
float Disx4 = Tx4 - x;
float Disz4 = Tz4 - z;
if(Disz1 < 0){
Disz1 = -Disz1;
}
if(Disz2 < 0){
Disz2 = -Disz2;
}
if(Disz3 < 0){
Disz3 = -Disz3;
}
if(Disz4 < 0){
Disz4 = -Disz4;
}
if(frame == 1){
if(Disx1 >= -20 && Disx1 <= 20 && Disz1 <= 10){
jumptobranch(Name, 1);
} else if(Disx2 >= -20 && Disx2 <= 20 && Disz2 <= 10){
jumptobranch(Name, 1);
} else if(Disx3 >= -20 && Disx3 <= 20 && Disz3 <= 10){
jumptobranch(Name, 1);
} else if(Disx4 >= -20 && Disx4 <= 20 && Disz4 <= 10){
jumptobranch(Name, 1);
}
}
@end_script
loop 1
delay 5
offset 18 16
frame data/chars/misc/markers/dir/dirD.png
frame data/chars/misc/markers/dir/dirD.png