sps999
01-01-2010, 03:14 AM
I was wondering if there was (and I'm very confident there is) any specific way your really expected to make something for a frame countdown. I've looked at a couple of scripts and have seen something like counter-- and stuff like that, but I couldn't figure it out. To work around that, I used a Random Number.
ffc script Norfair_Room {
void run() {
while(true) {
if (!Link -> Item[17] && (Rand(60) == 30)) { //BAM! There it is.
Link -> HP = Link -> HP - 4;
}
Waitframe();
}
}
}
But I just wanted to kow what the real way to countdown time was. When I tried waitframes(); I would always get a bunch of compiler errors that I didn't feel like trying to figure out, and I couldn't undertstand the counter-- method, so yeah.
ffc script Norfair_Room {
void run() {
while(true) {
if (!Link -> Item[17] && (Rand(60) == 30)) { //BAM! There it is.
Link -> HP = Link -> HP - 4;
}
Waitframe();
}
}
}
But I just wanted to kow what the real way to countdown time was. When I tried waitframes(); I would always get a bunch of compiler errors that I didn't feel like trying to figure out, and I couldn't undertstand the counter-- method, so yeah.