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

Removing one item from the screen?

3 replies · 2,220 views · Started 28 August 2008

So say I have item 'I'.
I want to get rid of him.
I->isValid() = false; or something would be nice =P

How do I do it 😕
I can't seem to find a function for it in ZScript.txt
The only option I have so far is Screen->ClearSprites(1);, but I'd prefer not to remove all other items on the screen aswell if I don't have to...

Well, if the item is in Link's inventory:

Link->Item[whatever] = false;

And if its on the screen:

itemwhatever->X = -16;
itemwhatever->Y = -16;

Yeah, what if you had a rupee that you didn't want within a box on the screen, but all other rupees outside of that box were irrelevant?

Are you talking about items like the sort found inside slashable bushes? Or special items?

Ah, put it at (-16,-16).
Thanks C-.

I meant an item that Link could acquire, that I'd created myself via scripting ST.
So more like a special item.
The only problem with my previous method was that it was getting rid of items like the ones found in slashable bushes.