|
(Tyne)
I'm having a problem with the Providence ships. They seem to get stuck on levels ending with -10 such as Providence_A-10.nw, or B-10, C-10, etc. I've tried fooling with the warping part of the script but I haven't been able to get it to work. Can someone help me please?
if (levxmove!=0 || levymove!=0) {
// Level warp
if (startswith(providence,#L)) {
levx = indexof(#e(11,1,#L),#s(this.warp))+1;
levy = strtofloat(#e(14,2,#L));
if (levx>=1 && levy>=1 &&
(levx+levxmove in |1,16|) && (levy+levymove in |1,16|)) {
setstring this.dest,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
setstring this.test,providence_#e(levx+levxmove-1,1,#s(this.warp))-;
if (levy+levymove<10) setstring this.dest,#s(this.dest)0;
setstring this.dest,#s(this.dest)#v(levy+levymove).nw;
warpto #s(this.dest),(levxmove<0? 54 : levxmove>0? -4 : x), (levymove<0? 52 : levymove>0? -4 : y);
warped = true;
}
}
}
.. Thanks! |