PDA

View Full Version : Script that removes all of Link's items



Dart Zaidyer
07-01-2008, 02:35 PM
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.

Joe123
07-01-2008, 03:16 PM
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.

beefster09
07-01-2008, 03:25 PM
Change Link->MaxHP and Link->HP to equal 48. Otherwise, he'll have 4 hearts instead of 3.

Joe123
07-01-2008, 05:24 PM
Oops, my bad.

Dart Zaidyer
07-01-2008, 06:08 PM
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!