Quote:
Originally posted by Kaimetsu
Grim Squeaker:
Almost.
It's actually "for (i=0;i<3;i++)"
|
lol, not necessarily
NPC Code:
for (this.i=5;this.i>=0;this.i--) {
if (this.i==-1) {
message KABOOM!!!!;
} elsif (this.i>=0) {
message #v(this.i);
}
sleep 1;
}
-----------------------------------------
message Your target is 5, say GO to begin rolling;
if (playerchats && strequals(#c,GO)) {
go();
}
function go() {
for (this.i=int(random(0,11));this.i!=5;this.i=int(ran dom(0,11))) {
message Darn, you were only #v(abs(5-this.i)) away;
sleep 1;
}
}
etc, etc
can be used for lots of things