Hmm...
NPC Code:
if (created) {
this.maxdrops=30;
setarray this.rainloc,this.maxdrops*2;
setarray this.rainstep,this.maxdrops;
setarray this.raintime,this.maxdrops;
for (this.i=0;this.i<this.maxdrops;this.i++) this.raintime=random(0,2);
}
if (playerenters||timeout) {
if (IsRaining) {
setbackpal dusk7.png;
for (this.i=0;this.i<this.maxdrops;this.i++) {
if (this.rainstep[this.i]==4) {
this.raintime[this.i]=random(0,2);
this.rainstep[this.i]=0;
}
if (this.raintime[this.i]<=0) {
if (this.rainstep[this.i]==0) {
this.rainloc[this.i*2]=random(0,64);
this.rainloc[this.i*2+1]=random(0,64);
this.rainstep[this.i]=1;
}
showimg this.i,splash#v(this.rainstep).gif,this.rainloc[this.i*2],this.rainloc[this.i*2+1];
changeimgvis this.i,0;
this.rainstop[this.i++];
}
else this.raintime[this.i]-=0.05;
}
}
timeout=0.05;
timereverywhere;
}
And now I want both of you to swear never to use putnpc again, thanks.