Heres the problematic script, whenever i have it in the animation - "d = spawn(); " gets removed .
So to reproduce try to add this to animtion, save, reopen, modify, save , reopen, eventually it will remove d = spawn.
It is convoluted script that i plan to make more compact but still, it does remove the line and shouldnt.So im kinda afraid what other things already got removed and i did not noticed.
Multiple characters have this script and everytime i save the character - this line with d spawn is removed , so it cant be just coincidence, something is triggering it.
So to reproduce try to add this to animtion, save, reopen, modify, save , reopen, eventually it will remove d = spawn.
It is convoluted script that i plan to make more compact but still, it does remove the line and shouldnt.So im kinda afraid what other things already got removed and i did not noticed.
Multiple characters have this script and everytime i save the character - this line with d spawn is removed , so it cant be just coincidence, something is triggering it.
Code:
anim pain3
loop 0
bbox 0 0 0 0
sound data/chars/skelswo/pain.wav
@script
void self = getlocalvar("self");
void opp = getentityproperty(self, "opponent");
void a;
void b;
void c;
void d;
void e;
void f;
void g;
void h;
void i;
void j;
void k;
void l;
void m;
void n;
int x = getentityproperty(self,"x");
int z = getentityproperty(self,"z");
if ( opp && (frame == 1)){
changeentityproperty(self, "a", 0 );
changeentityproperty(self, "z", getentityproperty(opp, "z" ) -2 );
changeentityproperty(self, "velocity", 5, 0, 0);
clearspawnentry();
setspawnentry("name", "harpon");
a = spawn();
changeentityproperty(a, "animation", openborconstant("ANI_FOLLOW1"));
bindentity(a, self, 0, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
b = spawn();
changeentityproperty(b, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(b, self, 0, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
c = spawn();
changeentityproperty(c, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(c, self, 70, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
d = spawn();
changeentityproperty(d, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(d, self, 140, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
e = spawn();
changeentityproperty(e, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(e, self, 210, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
f = spawn();
changeentityproperty(f, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(f, self, 280, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
g = spawn();
changeentityproperty(g, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(g, self, 350, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
h = spawn();
changeentityproperty(h, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(h, self, 420, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
i = spawn();
changeentityproperty(i, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(i, self, 490, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
j = spawn();
changeentityproperty(j, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(j, self, 560, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
k = spawn();
changeentityproperty(k, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(k, self, 630, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
l = spawn();
changeentityproperty(l, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(l, self, 700, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
m = spawn();
changeentityproperty(m, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(m, self, 770, 0, 0, -1, 0,1);
clearspawnentry();
setspawnentry("name", "harpon");
n = spawn();
changeentityproperty(n, "animation", openborconstant("ANI_FOLLOW2"));
bindentity(n, self, 840, 0, 0, -1, 0,1);
}
if ( opp && (getentityproperty(self, "direction")==1)&&(frame == 1)){
changeentityproperty(self, "a", 0 );
changeentityproperty(self, "z", getentityproperty(opp, "z" ) -2 );
changeentityproperty(self, "velocity", 5, 0, 0);
}
if(frame == 3){
changeentityproperty(self, "velocity", 0, 0, 0);
}
if ( frame == 9){
changeentityproperty(self, "velocity", -12, 0, 0);
bindentity(a, self, 60, 0, 0, -1, 0,1);
bindentity(b ,self, 60, 0, 0, -1, 0,1);
bindentity(c ,self, 130, 0, 0, -1, 0,1);
bindentity(d, self, 200, 0, 0, -1, 0,1);
bindentity(e, self, 270, 0, 0, -1, 0,1);
bindentity(f, self, 340, 0, 0, -1, 0,1);
bindentity(g, self, 410, 0, 0, -1, 0,1);
bindentity(h, self, 480, 0, 0, -1, 0,1);
bindentity(i, self, 550, 0, 0, -1, 0,1);
bindentity(j, self, 620, 0, 0, -1, 0,1);
bindentity(k, self, 690, 0, 0, -1, 0,1);
bindentity(l, self, 760, 0, 0, -1, 0,1);
bindentity(m, self, 830, 0, 0, -1, 0,1);
bindentity(n, self, 900, 0, 0, -1, 0,1);
}
if ((getentityproperty(self, "direction")==1)&&(frame == 9)){
changeentityproperty(self, "velocity", 12, 0, 0);
}
if ((getentityproperty(self, "direction")==0)&&(frame == 9)){
changeentityproperty(self, "velocity", -12, 0, 0);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(n , "x") -40)&&( getentityproperty(n, "name") == "harpon" )){
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(m , "x") -40)&&( getentityproperty(m, "name") == "harpon" )){
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(l , "x") -40)&&( getentityproperty(l, "name") == "harpon" )){
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(k , "x") -40)&&( getentityproperty(k, "name") == "harpon" )){
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(j , "x") -40)&&( getentityproperty(j, "name") == "harpon" )){
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(i , "x") -40)&&( getentityproperty(i, "name") == "harpon" )){
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(h , "x") -40)&&( getentityproperty(h, "name") == "harpon" )){
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(g , "x") -40)&&( getentityproperty(g, "name") == "harpon" )){
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(f , "x") -40)&&( getentityproperty(f, "name") == "harpon" )){
killentity(f);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(e , "x") -40)&&( getentityproperty(e, "name") == "harpon" )){
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(d , "x") -40)&&( getentityproperty(d, "name") == "harpon" )){
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(c , "x") -40)&&( getentityproperty(c, "name") == "harpon" )){
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(b , "x") -40)&&( getentityproperty(b, "name") == "harpon" )){
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(a , "x") -40)&&( getentityproperty(a, "name") == "harpon" )){
killentity(a);
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(self , "x") -120)&&( getentityproperty(a, "name") == "harpon" )){
killentity(a);
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(n , "x") +40)&&( getentityproperty(n, "name") == "harpon" )){
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(m , "x") +40)&&( getentityproperty(m, "name") == "harpon" )){
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(l , "x") +40)&&( getentityproperty(l, "name") == "harpon" )){
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(k , "x") +40)&&( getentityproperty(k, "name") == "harpon" )){
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(j , "x") +40)&&( getentityproperty(j, "name") == "harpon" )){
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(i , "x") +40)&&( getentityproperty(i, "name") == "harpon" )){
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(h , "x") +40)&&( getentityproperty(h, "name") == "harpon" )){
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(g , "x") +40)&&( getentityproperty(g, "name") == "harpon" )){
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(f , "x") +40)&&( getentityproperty(f, "name") == "harpon" )){
killentity(f);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(e , "x") +40)&&( getentityproperty(e, "name") == "harpon" )){
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(d , "x") +40)&&( getentityproperty(d, "name") == "harpon" )){
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(c , "x") +40)&&( getentityproperty(c, "name") == "harpon" )){
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(b , "x") +40)&&( getentityproperty(b, "name") == "harpon" )){
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(a , "x") +40)&&( getentityproperty(a, "name") == "harpon" )){
killentity(a);
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(self , "x") +120)&&( getentityproperty(a, "name") == "harpon" )){
killentity(a);
killentity(b);
killentity(c);
killentity(d);
killentity(e);
killentity(f);
killentity(g);
killentity(h);
killentity(i);
killentity(j);
killentity(k);
killentity(l);
killentity(m);
killentity(n);
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
delay 2
@cmd changeentityproperty getlocalvar("self") "subject_to_hole" 0
shadowcoords 48 228
offset 174 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 48 228
offset 170 299
bbox 0 0 0 0
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
delay 7
shadowcoords 48 228
offset 174 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 44 228
offset 170 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 48 228
offset 174 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 44 228
offset 170 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 48 228
offset 174 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 44 228
offset 170 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 48 228
offset 174 299
alphamask data/chars/skelswo/pain_003-mask.png
frame data/chars/skelswo/pain_003.png
shadowcoords 37 237
offset 171 296
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
@cmd changeentityproperty getlocalvar("self") "subject_to_hole" 1
@cmd changeentityproperty getlocalvar("self") "subject_to_gravity" 1
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
alphamask data/chars/skelswo/fall_001-mask.png
frame data/chars/skelswo/fall_001.png
shadowcoords 44 228
offset 174 299
bbox 139 75 76 224
delay 7
alphamask data/chars/skelswo/pain_001-mask.png
frame data/chars/skelswo/pain_001.png
offset 170 299
alphamask data/chars/skelswo/pain_001-mask.png
frame data/chars/skelswo/pain_001.png