Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

I wrote a script!!! but it ain't dun wurk good...

30 replies · 7,236 views · Started 06 August 2007

Well, I took you advice and found that this;

//========================================================
// FFC SCRIPT TRIGGER SECRETS (no pun intended) hah😉
// D0 - D2; Items neccesary. Check std.zh for values
//========================================================
ffc script trig_secret2{

void run(int have_item, int have_item2, int have_item3){

while(true) {

if ( (Link->Item[have_item] == true) && (Link->Item[have_item2] == true) &&
(Link->Item[have_item3] == true) && (Screen->NumNPCs() >= 1) ) {
npc enemy_trig = Screen->LoadNPC(1);
enemy_trig->HP = 0;
Screen->CreateNPC(100);
Waitframe();
}
Waitframe();
}
}
}

Actually created a massive army of windrobes, Meaning the script works....

The problem was, I forgot to load the while loop revision into script slot 2..Hhahahaaha!!

So yeah, it works fine. Thanks. I was getting angered by this guy too..and here it is if anybody wants to use it;


import "std.zh"

//========================================================
// FFC SCRIPT TRIGGER SECRETS (no pun intended) hah😉
// D0 - D2; Items neccesary. Check std.zh for values
//========================================================
ffc script trig_secret2{

void run(int have_item, int have_item2, int have_item3){

while(true) {

if ( (Link->Item[have_item] == true) && (Link->Item[have_item2] == true) &&
(Link->Item[have_item3] == true) && (Screen->NumNPCs() >= 1) ) {
npc enemy_trig = Screen->LoadNPC(1);
enemy_trig->HP = 0;
}
Waitframe();
}
}

}