Here's my code so far:
const int CMB_AUTOWARPA = 0; //Only include this once in the script file
ffc script NoWin {
void run(int critical, int fail) {
Waitframes(4);
npc en = Screen->LoadNPC(1);
int maxHP = en->HP;
while(true) {
en->HP = maxHP;
if (Link->HP <= critical){
Screen->Message(fail);
Waitframe();
this->Data = CMB_AUTOWARPA;
}
Waitframe();
}
}
}
Unfortunately, I get some error when I try to compile this... but the compile popup is so small I can only read the words "...File! Press a Key". This is the latest Windows build, by the way... anyone want to fix that?
Edit: Corrected by Plissken
Edit 2: Enemy regeneration provided by Blaman
Edited by MoscowModder, 26 September 2010 - 09:49 AM.