![]() |
RemoveItem on Custom Items? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: RemoveItem on Custom Items? (/thread-12519.html) |
RemoveItem on Custom Items? - Thiefnuker - 01-10-2012 Hello Folks, We are developing a CS atm (what else?) and added a custom item: Coins We just took the laundanum.ent, copied it, renamed it and changed the icon and SubItemName. In a script we had the command "GiveItemFromFile("Coin" "Coin.ent");" and it worked perfectly. It added the wanted Item to the inventory. BUT: We can NOT remove the item anymore. (We tried "RemoveItem("Coin");") If this line is triggered, nothing happens (No script errors). We also tried writing it with a GiveItem command. But instead of adding a Coin that has the SubType "Health", it adds a Coin that has the SubType "Puzzle" so its not stackable :/ How can we remove those "Health" Coins? Isn't there a possibility without creating a TC? Ty for any help! Greetz, Thiefnuker Measuring Devin RE: RemoveItem on Custom Items? - RedMser - 03-31-2012 (01-10-2012, 07:02 PM)Thiefnuker Wrote: Hello Folks,I tried myself, and I don't know... For me it doesn't work either. I think you can't remove stackable items. Did you try using the type "Puzzle" and then remove it. Also a problem could be not even running that script, so try adding a debug message and see if it gets displayed. RE: RemoveItem on Custom Items? - Your Computer - 03-31-2012 This is a pretty old topic: the answer is stackable items can't be removed. |