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

Script that removes all of Link's items

4 replies · 1,947 views · Started 01 July 2008

I need a script that will completely remove every item Link has, revert him to zero rupees and bombs, and three heart containers. This is so I can start off a quest where the player has everything, but it is taken from him and he must get it all back.

ffc script itemremover{
void run(){
int i;
for(i=0;i<115;i++) Link->Item[i] = false;
for(i=1;i<7;i++) Game->Counter[i] = 0;
Link->MaxHP = 48;
Link->HP = 48;
}
}

If it misses anything, let me know.
Won't do any level items or magic at present.
I can add that if you like.

I'm a little hazy on how to use this. Am I missing some sort of argument that needs to be declared? I've added it to an FFC in a room, but I'm not sure how it's supposed to work exactly. Nothing happens.

EDIT: I set it up wrong. Works now, and does exactly what I wanted it to do. Thank you very much!