
03-25-2002, 10:36 AM
|
|
GFX Ninja
|
 |
Join Date: Aug 2001
Location: Near a PC
Posts: 1,277
|
|
Scripting problems
|
Im trying to do some script for a NPC that reduces all damage done to in a pattern, first it does 0.5 then nothing then 0.5, so on and so forth my problem is that it only works for the first part of the script then stops. I was wondering if some one could help my and fix my script so that it would follow that pattern. Id really apreciate it.
i havent scipted in a while so that would explane why its so long.
also when the NPC's activated it automaticly sets the players hearts to 3.
if (test && playerhearts > 3 || playerhearts == 3 && this.l33t = 0) { playerhearts = 3; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 1) { playerhearts = 2.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 2) { playerhearts = 2.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 3) { playerhearts = 2; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 4) { playerhearts = 2; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 5) { playerhearts = 1.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 6) { playerhearts = 1.5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 7) { playerhearts = 1; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 8) { playerhearts = 1; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 9) { playerhearts = .5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 10) { playerhearts = .5; this.l33t = this.l33t + 1;
}
if (test && playerhearts > 3 && this.l33t = 11) { playerhearts = 0; this.l33t = this.l33t + 1;
}
if (test && this.l33t = 12) {unset test; this.l33t = 0;} |
|
|
|