Frictional Games Forum (read-only)

Full Version: Script that checks AMOUNT of an item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I really need help with a script.
I want to create a function that checks the AMOUNT of an item (say: check if inventory has 10 of laudanum or if there is <10 of laudanum) in inventory.
Is it even possible in HPL2?
I don't think this is currently possible. You can hack a way to count how many have been picked up, but it would be hard to know if the player has used any. Technically with a looping timer, you could compare player health over time to see if it jumps by 25 at any points, and assume one has been used, but this is a lot of fiddling.
(04-07-2020, 05:38 PM)Mudbill Wrote: [ -> ]I don't think this is currently possible. You can hack a way to count how many have been picked up, but it would be hard to know if the player has used any. Technically with a looping timer, you could compare player health over time to see if it jumps by 25 at any points, and assume one has been used, but this is a lot of fiddling.

Alright thanks! Smile