Frictional Games Forum (read-only)
New item - 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: New item (/thread-18500.html)



New item - ooadrianoo - 09-25-2012

I've been thinking about to create a new item.
But I don't know how to make a function if the item is used.
E.g. If item is used then FadeRadialBlurTo...


RE: New item - Statyk - 09-25-2012

Are you asking when it is used in the inventory? Such as health or sanity potion. Combination? Such as a hammer to a chipper. or when an item is used in the environment, such as a key on a door or acid on an entity, etc?


RE: New item - ooadrianoo - 09-25-2012

Yes used in the inventory.
Its a potion and when it be used, the effect should be FadeRadialBlurTo


RE: New item - Statyk - 09-25-2012

As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.


RE: New item - ooadrianoo - 09-25-2012

(09-25-2012, 05:29 PM)Statyk Wrote: As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change it in a script?

(09-25-2012, 05:39 PM)ooadrianoo Wrote:
(09-25-2012, 05:29 PM)Statyk Wrote: As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change the effect it in the a script?



RE: New item - Statyk - 09-25-2012

Sure, it's possible. Just know that it has to be one of the item types and it will still affect the same way. Just have a timer that checks for something such as health increase or sanity increase, etc.