name    	Marker
type    	none
nolife  	1
score   	0 -1
antigravity  	100
candamage  	player
setlayer   	2

alternatepal	data/chars/misc/go/gem2.gif
alternatepal	data/chars/misc/go/gem3.gif
alternatepal	data/chars/misc/go/gem4.gif
alternatepal	data/chars/misc/go/gem5.gif
alternatepal	data/chars/misc/go/gem6.gif
alternatepal	data/chars/misc/go/gem7.gif
alternatepal	data/chars/misc/go/gem.gif


anim spawn
@script
    void self = getlocalvar("self");
    char Name = getentityproperty(self,"name");
    int Map = getentityproperty(self,"map");

    if(frame == 1){
      setlocalvar("Map", Map);
    }
@end_script
	delay	10
	offset	4 4
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif

anim idle
@script
    void self = getlocalvar("self");
    char Name = getentityproperty(self,"name");
    int Remap = getlocalvar("Map");
    int Status;

    if(frame == 1 || frame == 3 || frame == 5){
      Status = getglobalvar(Name);

      if(Status < 1 || Status == NULL()){
        changeentityproperty(self, "map", 7);
      }
    } else {
      changeentityproperty(self, "map", Remap);
    }
@end_script
	loop	1
	delay	80
        followanim 1
        followcond 1
	offset	4 4
	attack	2 2 5 4 0 0 1 1
	noreflect	1
        hitfx   data/sounds/block.wav
	frame	data/chars/misc/go/gem1.gif
	delay	4
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gem1.gif

anim follow1
@script
    void self = getlocalvar("self");
    char Name = getentityproperty(self,"name");

    if(frame == 7){
      jumptobranch(Name, 1);
    }
@end_script
	delay	5
	offset	4 4
	frame	data/chars/misc/go/gemB.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gemB.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gemB.gif
	frame	data/chars/misc/go/gem1.gif
	frame	data/chars/misc/go/gemB.gif
	frame	data/chars/misc/go/gem1.gif
